Centos 7 防火墙(firewall-cmd)添加端口访问
时间:2020-03-31 12:20:38
收藏:0
阅读:499
firewall-cmd添加端口访问操作:
1.查看开放端口
firewall-cmd --zone=public --list-ports
2.添加端口
#永久添加80端口,协议为tcp
firewall-cmd --add-port=80/tcp --permanent
#重新加载
firewall-cmd --reload
3.移除端口
#删除tcp下的80端口
firewall-cmd --zone=public --remove-port=80/tcp --permanent
具体详细参数命令请移步-> https://www.cnblogs.com/zqifa/p/linux-firewall-1.html
原文:https://www.cnblogs.com/dawnlz/p/12603180.html
评论(0)