GithubHelp home page GithubHelp logo

285432769 / baota_release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weiwang3056/baota_release

0.0 0.0 0.0 269.42 MB

宝塔历史版本,宝塔linux历史版本存档,宝塔降级,宝塔linux破解版及教程

Python 100.00%

baota_release's Introduction

宝塔Linux历史版本存档

由于宝塔官方的历史版本下载链接失效,故收集了一波历史版本以供使用,可通过降级到历史版本绕过强制绑定手机号以及免费使用专业版插件

版本说明

  • 7.4.2版本有pma漏洞
  • 7.4.5之后的版本(不包括7.4.5)需要强制绑定手机号
  • 7.2.0之前的版本不推荐使用,因为代码改动过大,降级后无法正常使用

使用方法

宝塔回退7.4.5之前版本教程

宝塔回退7.7.0版本,修改js绕过登陆限制

宝塔免费使用专业版插件教程

安装宝塔

先使用宝塔官方的安装脚本安装最新版宝塔

  • Centos安装命令:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
curl -sSO http://download.bt.cn/install/install_6.0.sh && bash install_panel.sh 
  • Ubuntu/Deepin安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh 
  • Debian安装命令:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh 
  • Fedora安装命令:
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

降级

下载指定版本降级包

curl -L https://githubfast.com/285432769/baota_release/blob/main/LinuxPanel/LinuxPanel-7.7.0.zip\?raw\=true > LinuxPanel-7.7.0.zip

###演示宝塔降级:8.0.2 --> 7.7.0

  • (1)、下载curl包
yum install curl
  • (2)、下载离线包
curl -L https://githubfast.com/285432769/baota_release/blob/main/LinuxPanel/LinuxPanel-7.7.0.zip\?raw\=true > LinuxPanel-7.7.0.zip
  • (3)、解压
unzip LinuxPanel-*
  • (4)、切换到降级包目录
cd panel
  • (5)、执行脚本
bash update.sh
  • (6)、删除降级包
cd .. && rm -f LinuxPanel-*.zip && rm -rf panel

解压对应的降级包,运行panel文件夹中的update.sh脚本即可

删除进入面板需要账号密码

rm -f /www/server/panel/data/bind.pl

避免官方搞小动作

echo '127.0.0.1 bt.cn' >> /etc/hosts

手动解锁宝塔所有付费插件为永不过期

sed -i 's/"endtime": -1/"endtime": 999999999999/g' /www/server/panel/data/plugin.json

给plugin.json文件上锁防止自动修复为免费版

chattr +i /www/server/panel/data/plugin.json

净化面板

下载文件

wget -O /tmp/bt.zip https://githubfast.com/285432769/baota_release/blob/main/LinuxPanel/bt.zip

解压文件并合并到目标目录

unzip -uo /tmp/bt.zip -d /www/server/panel/BTPanel/templates/default

删除下载的压缩文件

rm /tmp/bt.zip

重启宝塔面板

bt restart

echo "操作完成"

注意事项

  • 宝塔降级后会出现密码不正确的情况,修改密码即可(bt 5)
  • 降级成功后建议将宝塔修改为离线模式,进入宝塔面板,选择面板设置 -> 离线模式即可

宝塔降级常见问题

  • Q:降级后显示宝塔无法启动,但无任何报错

    S:需要将markupsafe==2.0.1添加到panel目录下的requirements.txt文件中并执行

/www/server/panel/pyenv/bin/pip3 install -r requirements.txt

安装python库后重启面板即可

  • Q:降级后登录宝塔面板时提示密码错误

    S:需要在终端修改宝塔密码

  • Q:降级后登录宝塔面板时无法显示验证码图片或无法下载文件

    S:需要将/www/server/panel/BTPanel/__init__.py文件中的send_file函数中的cache_timeout参数名改为max_age

baota_release's People

Contributors

285432769 avatar weiwang3056 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.