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

The centos system cannot access the remote port

王林
王林Original
2020-03-21 16:25:312970browse

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

Check port 80 access permissions

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

Close 80 access permissions

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

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!

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