博客信息

centos 7 添加永久放开某个端口

发布时间:『 2019-12-22 21:33』  博客类别:Linux  阅读(1539) 评论(0)

每次在网络上找放开某个端口的,一些博客会教你添加如下:

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

但总是忘记告诉你永久添加,比如:

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

不过记得先开启防火墙哦

service firewalld start


关键字:   linux     firewall  
评论信息
暂无评论
发表评论
验证码: 
Powered by IMZHANGJIE.CN Copyright © 2015-2025 粤ICP备14056181号