Home > Article > Operation and Maintenance > What should I do if the centos7 port cannot be accessed?
After starting external services on the centos7 listening port, you may encounter port access denial.
When the service ensures normal operation, everyone usually thinks that the firewall is responsible.
The firewall that comes with centos7 is no longer iptables
, but has been changed to firewalld
.
If you are just using the development environment, you may consider turning off the firewall directly:
systemctl disable firewalld systemctl stop firewalld
After running the above two commands, the firewall will be turned off and will not start automatically at boot.
Note: Remember not to turn off the firewall at will in the production environment
Recommended tutorial: "CentOS Tutorial"
The above is the detailed content of What should I do if the centos7 port cannot be accessed?. For more information, please follow other related articles on the PHP Chinese website!