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?

王林
王林Original
2020-03-31 14:06:374882browse

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

Disable it at boot:

systemctl disable firewalld

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!

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
Previous article:centos6 startup processNext article:centos6 startup process