宝塔Linux面板 降级教程

本教程针对的情况,是直接退回版本update安装,安装后面板报错;如果不报错,不适用;帖主已经成功从最新版8.0.1退回到7.7.0

会用到的命令

先贴一些会用到命令

1.宝塔的 Centos安装脚本

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

其他版本:https://www.bt.cn/new/download.html

2.面板安装后,如果出现密码不正确的情况

cd /www/server/panel && python tools.py panel yourpasswd

/www/server/panel 是宝塔面板安装的位置

运行结果

[root@iZwz91icgillhkpshlj0fwZ panel]# cd /www/server/panel && python tools.py panel yourpasswd
s90dz11h
[root@iZwz91icgillhkpshlj0fwZ panel]#

s90dz11h是面板的账号,yourpasswd是面板的密码

3.面板的卸载相关
下载卸载脚本

wget http://download.bt.cn/install/bt-uninstall.sh

执行脚本

sh bt-uninstall.sh

正片

github安装包:
https://github.com/wei/baota/releases/download/7.7.0/LinuxPanel-7.7.0.zip
宝塔官方安装包:
https://download.bt.cn/install/update/LinuxPanel-7.7.0.zip

这里使用的宝塔安装包是github的,如果问为什么不使用宝塔官方的包
当你使用官方包安装成功后,启动后老是报面板错误,你就明白了
这两个包的大小还不一样

首先请确保面板里软件商店的插件已经全部卸载,要是不担心兼容性问题可以不卸

下载:

[root@iZwz91icgillhkpshlj0fwZ wwwroot]# wget https://github.com/wei/baota/releases/download/7.7.0/LinuxPanel-7.7.0.zip
100%[======================================>] 5,553,285   xx.xKB/s   in xm xs

20xx-xx-xx xx:xx:xx (xx.x KB/s) - ‘LinuxPanel-7.7.0.zip’ saved [5553285/5553285]

[root@iZwz91icgillhkpshlj0fwZ wwwroot]# 

解压并运行

[root@iZwz91icgillhkpshlj0fwZ wwwroot]# unzip LinuxPanel-7.7.0.zip
Archive:  LinuxPanel-7.7.0.zip
   creating: panel/
  inflating: panel/BT-Panel
...
  inflating: panel/BTPanel/templates/default/panel_error.html
  inflating: panel/BTPanel/templates/default/plugin_error.html

[root@iZwz91icgillhkpshlj0fwZ wwwroot]# cd panel/
[root@iZwz91icgillhkpshlj0fwZ panel]# ls
BTPanel   config       install      requirements.txt  script     vhost
BT-Panel  data         license.txt  rewrite           task.py
BT-Task   __init__.py  logs         runconfig.py      tools.py
class     init.sh      plugin       runserver.py      update.sh
[root@iZwz91icgillhkpshlj0fwZ panel]# bash update.sh
Stopping Bt-Tasks...    done
Stopping Bt-Panel...    done
Starting Bt-Panel....   done
Starting Bt-Tasks...    done
====================================
已完成升级!
[root@iZwz91icgillhkpshlj0fwZ panel]# 


在把软件商店里的东西安装完成后,记得去面板设置里打开离线模式,可以让面板与云端断开连接

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值