详情页

常用宝塔命令之宝塔关闭防火墙命令记录

时间:2024年03月01日

编辑:佚名

命令禁止防火墙进行调试。这里简单的把宝塔面板的防火墙关闭看看。顺带记录下宝塔面板的防火墙处理脚本。
Centos 6.x
service iptables stop #停止
chkconfig iptables off #禁用
Centos 7:
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
Ubuntu/Debian:
ufw disable #方法1
sudo ufw disable #方法2
非特殊需求建议用宝塔自带的防火墙开启端口。开启方法:替换stop/disable为start/enable。
相关文章
猜你需要