宝塔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]# 

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

相关推荐
皓月盈江29 分钟前
Linux电脑本机使用小皮面板集成环境开发调试WEB项目
linux·php·web开发·phpstudy·小皮面板·集成环境·www.xp.cn
深井冰水34 分钟前
mac M2能安装的虚拟机和linux系统系统
linux·macos
leoufung1 小时前
内核内存锁定机制与用户空间内存锁定的交互分析
linux·kernel
菜菜why2 小时前
AutoDL租用服务器教程
服务器
IT专业服务商2 小时前
联想 SR550 服务器,配置 RAID 5教程!
运维·服务器·windows·microsoft·硬件架构
忧虑的乌龟蛋3 小时前
嵌入式Linux I2C驱动开发详解
linux·驱动开发·嵌入式·iic·i2c·读数据·写数据
I_Scholar3 小时前
OPENSSL-1.1.1的使用及注意事项
linux·ssl
Johny_Zhao4 小时前
K8S+nginx+MYSQL+TOMCAT高可用架构企业自建网站
linux·网络·mysql·nginx·网络安全·信息安全·tomcat·云计算·shell·yum源·系统运维·itsm
稳联技术4 小时前
Ethercat转Profinet网关如何用“协议翻译术“打通自动化产线任督二脉
linux·服务器·网络
烟雨迷4 小时前
Linux环境基础开发工具的使用(yum、vim、gcc、g++、gdb、make/Makefile)
linux·服务器·学习·编辑器·vim