#命令行修改面板端口,如要改成8881(centos 6)
- echo '8881' > /www/server/panel/data/port.pl && service bt restart
- iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT
- service iptables save
- service iptables reload
复制代码
#命令行修改面板端口,如要改成8881(centos 7)
- echo '8881' > /www/server/panel/data/port.pl && service bt restart
- firewall-cmd --permanent --zone=public --add-port=8881/tcp
- firewall-cmd --reload
复制代码 |