Home > Article > Operation and Maintenance > What to do if port 80 cannot be accessed under centos7
Under normal circumstances, when the service ensures normal operation, everyone will usually think that the firewall is responsible. The firewall that comes with centos7 is no longer iptables, but changed to firewalld.
So, if you only use the development environment, you can choose to turn off the firewall directly:
The command is as follows:
systemctl disable firewalld systemctl stop firewalld
The firewall will be turned off after running the above two commands. , and will not start automatically at boot.
Note: Remember not to turn off the firewall at will in the production environment.
Related tutorial recommendations: centos tutorial
The above is the detailed content of What to do if port 80 cannot be accessed under centos7. For more information, please follow other related articles on the PHP Chinese website!