1. 程式人生 > >CentOS 7 firewalld新增開放埠及重啟apache、nginx、mysql、php-fpm命令 & CentOS 6.5開放埠方法

CentOS 7 firewalld新增開放埠及重啟apache、nginx、mysql、php-fpm命令 & CentOS 6.5開放埠方法

How to resolve the error message below
Failed to issue method call: Unit firewalld.service is masked.

The main reason a service is masked is to prevent accidental starting or enabling of a serive.
For example firewalld can be masked with the following commad
#systemctl mask firewalld

If you ever want to start the firewalld service. you may get the error message
Failed to issue method call: Unit firewalld.service is masked.

To resolve this, unmask the firewall with the following command
#systemctl unmask firewalld

Source:http://theurbanpenguin.com/wp/?p=338