Home > Operation and Maintenance > CentOS > The centos system cannot access the remote port

The centos system cannot access the remote port

王林
Release: 2020-03-21 16:25:31
Original
3053 people have browsed it

The centos system cannot access the remote port

Problem:

centOS7 firewall is turned off but the remote port is inaccessible.

Solution:

Just enable the remote access permission of the port through the firewall.

(Recommended tutorial: centos usage tutorial)

The specific method is as follows:

Add access rights to port 80, which will take effect permanently after being added here

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

Check port 80 access permissions

#firewall-cmd --zone= public --query-port=80/tcp
Copy after login

Close 80 access permissions

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

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of The centos system cannot access the remote port. 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