宝塔Linux面板 降级教程

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

会用到的命令

先贴一些会用到命令

1.宝塔的 Centos安装脚本

javascript 复制代码
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.面板安装后,如果出现密码不正确的情况

javascript 复制代码
cd /www/server/panel && python tools.py panel yourpasswd

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

运行结果

javascript 复制代码
[root@iZwz91icgillhkpshlj0fwZ panel]# cd /www/server/panel && python tools.py panel yourpasswd
s90dz11h
[root@iZwz91icgillhkpshlj0fwZ panel]#

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

3.面板的卸载相关

下载卸载脚本

javascript 复制代码
wget http://download.bt.cn/install/bt-uninstall.sh

执行脚本

javascript 复制代码
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的,如果问为什么不使用宝塔官方的包

当你使用官方包安装成功后,启动后老是报面板错误,你就明白了

这两个包的大小还不一样

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

下载:

javascript 复制代码
[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]# 

解压并运行

javascript 复制代码
[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]# 

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

相关推荐
筑梦之路20 分钟前
linux 系统找出磁盘IO占用元凶 —— 筑梦之路
linux·运维·服务器
LiQiang332 小时前
Ubuntu2404修改国内镜像
linux
杰哥技术分享2 小时前
Ubuntu 22.04安装SQL Server指南
linux·运维·ubuntu·sqlserver
遇见火星2 小时前
ubuntu18.04 升级Ubuntu 20.04
linux·运维·ubuntu·系统升级
x县豆瓣酱2 小时前
【第四节】ubuntu server安装docker
linux·ubuntu·docker
Gene_20222 小时前
【TOOL】ubuntu升级cmake版本
linux·运维·ubuntu
宇钶宇夕2 小时前
S7-200 SMART CPU 密码清除全指南:从已知密码到忘记密码的解决方法
运维·服务器·数据库·程序人生·自动化
思序 LogicFlow2 小时前
关于在Linux上部署 SecretFlow --- P2P部署模式
linux·服务器
YC运维3 小时前
网络配置综合实验全攻略(对之前学习的总结)
linux·服务器·网络
平凡灵感码头4 小时前
什么是 Bootloader?怎么把它移植到 STM32 上?
linux·soc