Home > Article > Operation and Maintenance > 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!