误操作防火墙导致宝塔面板无法进入或者网站打不开,可以尝试以下操作。
进入服务器输入以下代码回车:
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。
Copyright © 1998 - Gworg, Inc. All Rights Reserved. 江苏光网数字认证有限公司版权所有
苏ICP备15058404号 苏公网安备32058202010008号