Home  >  Article  >  Operation and Maintenance  >  What to do if port 80 cannot be accessed under centos7

What to do if port 80 cannot be accessed under centos7

王林
王林Original
2020-04-03 09:15:342340browse

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!

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