centos7 The default firewall is firewalld So check the firewall status command: systemctl status firewalld.service
You can see the green words after execution The marked "active (running)" indicates that the firewall is on.
Use the command: systemctl stop firewalld.service to close the running firewall
After closing, Use the command systemctl status firewalld.service to view the firewall status
You can see the words disavtive (dead), indicating that the firewall has been closed
Related video tutorial recommendations:linux video tutorial
The above is the detailed content of How to turn off the firewall in centos7. For more information, please follow other related articles on the PHP Chinese website!