What to do if port 80 cannot be accessed under centos7

王林
Release: 2020-04-03 09:15:34
Original
2334 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template