centos7对外开放端口

xiaoxiao2021-02-28  28

centos查询端口是不是开放的 firewall-cmd –permanent –query-port=8080/tcp

添加对外开放端口 firewall-cmd –permanent –add-port=8080/tcp

重启防火墙 firewall-cmd –reload 查看网络端口情况 netstat -ntlp

关闭防火墙 //临时关闭 systemctl stop firewalld //禁止开机启动 systemctl disable firewalld

转载请注明原文地址: https://www.6miu.com/read-2800013.html

最新回复(0)