宝塔安装
Centos安装脚本:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
Ubuntu/Deepin安装脚本:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
Debian安装脚本:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec
万能安装脚本:
if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec
国产龙芯架构安装脚本:
wget -O install_panel.sh http://download.bt.cn/install/0/loongarch64/loongarch64_install_panel.sh && bash install_panel.sh ed8484bec
国际版aapanel的安装代码
Centos :
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh forum
Ubuntu/Deepin :
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum
Debian :
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum
官网:https://forum.aapanel.com/d/9-aapanel-linux-panel-6812-installation-tutorial
如果你不喜欢aapanel,那么目前最好的解决方法就是降级到7.7版本,具体命令如下:
wget http://download.bt.cn/install/update/LinuxPanel-7.7.0.zipunzip LinuxPanel-*cd panelbash update.shcd .. && rm -f LinuxPanel-*.zip && rm -rf panelecho '127.0.0.1 bt.cn' >>/etc/hosts
如果提示绑定手机号,请输入如下命令:
rm -f /www/server/panel/data/bind.pl
宝塔纯净版 7.6.0版本 [稳定版本/推荐]
Centos全新安装命令:根据系统执行框内命令开始安装(大约2分钟完成面板安装)升级后可能需要重启面板
yum install -y wget && wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh && sh install.sh
Debian全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && bash install.sh
Ubuntu/Deepin全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh
Fedora全新安装命令:
wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh && bash install.sh
升级代码/修复面板:已经安装官方面板,执行下列命令升级到7.6.0纯净版:
curl http://v7.hostcli.com/install/update6.sh|bash
其他非官方版本含开心版、快乐版、纯净版等 7.4.5至7.6.0版本之间所有版本均可,执行下列命令升级到7.6.0纯净版:
curl http://v7.hostcli.com/install/update6.sh|bash
任意非官方版本还原到官方最新版:
curl http://download.bt.cn/install/update6.sh|bash
宝塔面板反代
location / {
proxy_pass http://127.0.0.1:8090/;
rewrite ^/(.*)$ /$1 break;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade-Insecure-Requests 1;
proxy_set_header X-Forwarded-Proto https;
}
评论区