无名 发表于 2022-5-8 20:04:57

【Max】赶紧收藏 全网最全的宝塔命令大全

大家好,我是用心

关注我,带你飞

禁止盗贴,理性吃瓜

下面是详细的SHH 的命令

安装宝塔
Centos安装脚本
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.shUbuntu/Deepin安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

Debian安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

Fedora安装脚本wget -O install.sh http://download.bt.cn/install/install.sh && bash 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.py root 123456

修改面板密码,如要改成123456
cd /www/server/panel && python tools.py 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查看面板授权IP
cat /www/server/panel/data/limitip.conf

关闭访问限制
rm -f /www/server/panel/data/limitip.conf

查看许可域名cat /www/server/panel/data/domain.conf

关闭面板SSL
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
查看面板错误日志
cat /tmp/panelBoot
查看数据库错误日志
cat /www/server/data/*.err站点配置文件目录(nginx)
/www/server/panel/vhost/nginx
站点配置文件目录(apache)
/www/server/panel/vhost/apache
站点默认目录
/www/wwwroot
数据库备份目录
/www/backup/database
站点备份目录
/www/backup/site
楼下继续更新[呵呵][呵呵]
http://cdn.u1.huluxia.com/g3/M01/80/45/wKgBOV5c4CaARuevAABdb6yYBoc073.png
页: [1]
查看完整版本: 【Max】赶紧收藏 全网最全的宝塔命令大全