Fir站长导航 > 站长资讯 > 教程分享 >

centos 添加防火墙端口

2022-08-11

 

背景:

安装宝塔面板后,在虚拟机里添加 8888端口到安全组。

防火墙添加端口:

firewall-cmd --zone=public --add-port=8888/tcp --permanent    (--permanent永久生效,没有此参数重启后失效)

重新载入:

firewall-cmd --reload

相关标签: Linux教程

We use cookies in our website to improve our customer experience, we will not share these information to third party. By using this website you need to accept our Cookies and Privacy Policy. If you don't want to accept these Cookies, please change your browser setting. Find more.