RedHat 7 turn off the firewall method

1, turn off the firewall and other services in the previous version of the command is

service iptables stop

/etc/init.d/iptables stop

2, RHEL7 start using systemctl tools to manage service program, including the service and chkconfig

systemctl list-unit-files|grep enabled

 

Check firewall status.
systemctl status firewalld

Temporarily turn off the firewall command. After rebooting the computer, automatic firewall up.
systemctl stop firewalld

Permanently turn off the firewall command. After the restart, the firewall will not start automatically.
systemctl disable firewalld

Open firewall command.
systemctl enable firewalld

Guess you like

Origin www.cnblogs.com/tiandi/p/11770333.html