linux开启防火墙指定端口

时间:2021-08-30 00:28:45   收藏:0   阅读:14

 

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

查看啊防火墙状态

systemctl status firewalld

技术分享图片

 

停用防火墙

systemctl stop firewalld 

启动重启防火墙

systemctl restart firewalld

原文:https://www.cnblogs.com/ymlyxp/p/15200137.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!