Home > Operation and Maintenance > CentOS > What should I do if port 80 cannot be accessed under centos7?

What should I do if port 80 cannot be accessed under centos7?

王林
Release: 2020-03-31 14:06:37
Original
4860 people have browsed it

What should I do if port 80 cannot be accessed under centos7?

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

Disable it at boot:

systemctl disable firewalld
Copy after login

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!

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