centos cannot access port 80

王林
Release: 2020-03-18 16:54:10
Original
3170 people have browsed it

centos cannot access port 80

The solution steps are as follows:

Key point: CentOS cannot access port 80 without opening the firewall! ! ! There’s nothing you can do if you open it! ! You need to add the port! !

Check the firewall status

firewall-cmd --state
Copy after login

Open the firewall

systemctl start firewalld
Copy after login

Recommended tutorial: centos usage tutorial

View the current firewall open Port

firewall-cmd --list-ports
Copy after login

Add port 80

firewall-cmd --zone=public --add-port=80/tcp --permanent
Copy after login

Restart the firewall

firewall-cmd --reload
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of centos cannot access port 80. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!