Record the method for CentOS 7 to close the system default firewall

We used to use CentOS's iptables firewall function before, but since CentOS 7, the default firewall is firewall, not iptables. If we need to close the firewall, after all, some projects will fail when using the firewall, so we can close it.

1、 Check whether the firewall is running

 firewall-cmd --state

SSH executes the above command. If running is prompted, it means running. If not running, it means not running.

2、 Turn off firewall

 Systemctl stop firewalld. service # Stop firewall Systemctl disable firewalld. service # Disable firewall startup

SSH executes the above command, turns off the firewall, and cancels the automatic startup after power on.

Vote for you

Source: Lao Jiang Tribe » Record the method for CentOS 7 to close the system default firewall |Welcome to share (public account: Chiang's circle of friends)

Get new information from webmaster/add QQ group from the public account "Chiang Kai shek's circle of friends"【 one billion twelve million four hundred and twenty-three thousand two hundred and seventy-nine 】Get preferential promotion from merchants