Home  >  Article  >  Operation and Maintenance  >  What should I do if the centos7 port cannot be accessed?

What should I do if the centos7 port cannot be accessed?

hzc
hzcOriginal
2020-06-17 11:15:363616browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn