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