CentOS 开放端口 – MasterH's Grocery Store

开启永久端口

firewall-cmd --add-port=8888/tcp --permanent

出现success代表操作成功

重新载入配置

firewall-cmd --reload

出现success代表操作成功

查看端口是否已打开

firewall-cmd --query-port=8888/tcp

出现yes代表操作成功

移除端口

firewall-cmd --remove-port=8888/tcp

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *