Problem:
After the centos7 listening port starts external services, the port denies access.
Solution:
If you are just using a development environment, you may consider turning off the firewall directly.
(Recommended tutorial: centos tutorial)
Turn off the firewall:
systemctl stop firewalld
Disable it at boot:
systemctl disable firewalld
Run the above After two commands, the firewall is closed and will not start automatically at boot.
Note: Remember not to turn off the firewall at will in the production environment.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of What should I do if port 80 cannot be accessed under centos7?. For more information, please follow other related articles on the PHP Chinese website!