管理宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
/etc/init.d/bt stop
/etc/init.d/bt start
/etc/init.d/bt restart
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
cat /www/server/panel/data/port.pl
- 修改面板端口,如要改成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
service iptables restart
- 修改面板端口,如要改成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
- 强制修改MySQL管理(root)密码,如要改成123456
cd /www/server/panel && python tools.pyc root 123456
cd /www/server/panel && python tools.pyc panel 123456
cat /tmp/panelBoot.pl
cat /tmp/panelExec.log
/www/server/panel/vhost
rm -f /www/server/panel/data/domain.conf
rm -f /www/server/panel/data/*.login
cat /www/server/panel/data/limitip.conf
rm -f /www/server/panel/data/limitip.conf
cat /www/server/panel/data/domain.conf
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
cat /tmp/panelBoot
cat /www/server/data/*.err
/www/server/panel/vhost/nginx
/www/server/panel/vhost/apache
/www/wwwroot
/www/backup/database
/www/backup/site
/www/wwwlogs