Git Product home page Git Product logo

baota7.7's Introduction

BTinstall_6.0

宝塔面板7.7原版安装脚本

宝塔面板7.8版本使用各种方法均无法绕过绑定账号,并且不绑定账号无法下载安装插件。

因此这里分享一下7.7版本的安装脚本,是官方免费版的。

wget -O install.sh https://raw.githubusercontent.com/insoxin/baota7.7/main/install_6.0.sh && bash install.sh

升级到7.7版本命令: curl http://f.cccyun.cc/bt/update6.sh|bash

建议配合下面文章中的优化脚本使用: 这个是自用的宝塔面板一键优化补丁,主要有以下优化项目:

1.去除宝塔面板强制绑定账号

2.去除各种删除操作时的计算题与延时等待

3.去除创建网站自动创建的垃圾文件(index.html、404.html、.htaccess)

4.关闭未绑定域名提示页面,防止有人访问未绑定域名直接看出来是用的宝塔面板

5.关闭活动推荐与在线客服

6.去除自动校验文件与上报信息定时任务

7.去除面板日志与网站绑定域名上报

wget -O optimize.sh https://raw.githubusercontent.com/insoxin/baota7.7/main/optimize.sh && bash optimize.sh

适用宝塔面板版本:7.7

其他备份

开ipv6

echo “True” > /www/server/panel/data/ipv6.pl

开启ssl


echo “True” > /www/server/panel/data/ssl.pl

限制日志

sudo journalctl --vacuum-size=1M

删除木马检测

systemctl stop oneavd
systemctl disable oneavd
rm -rf /opt/threatbook

限制日志1M

wget https://raw.githubusercontent.com/insoxin/baota7.7/main/panelPlugin.py

chmod 755 panelPlugin.py

mv panelPlugin.py /www/server/panel/class/panelPlugin.py

全部使用补丁的方式,而不是替换文件的方式,方便后续升级版本的修改。

解决软件商店无法加载

curl https://download.bt.cn/tools/auto_node.sh | bash

适用宝塔面板7.9版本的命令(7.9版本不支持去除强制绑定账号): wget -O optimize.sh http://f.cccyun.cc/bt/optimize_new.sh && bash optimize.sh

解决aarch64  编译安装PHP5.x 报错
修改PHP安装包Zend/zend_multiply.h第65、66行左右(“+”为修改后内容),PHP5.x 版本通用。

 	__asm__("mul %0, %2, %3\n"										\
 		"smulh %1, %2, %3\n"										\
 		"sub %1, %1, %0, asr #63\n"									\
-			: "=X"(__tmpvar), "=X"(usedval)							\
-			: "X"(a), "X"(b));										\
+			: "=&r"(__tmpvar), "=&r"(usedval)						\
+			: "r"(a), "r"(b));										\
 	if (usedval) (dval) = (double) (a) * (double) (b);				\
 	else (lval) = __tmpvar;											\
 } while (0)
修改完之后就可以正常编译了。

 

宝塔面板修改:

php包安装路径/www/server/php/56/src,已经解压出了来,直接修改保存就可以了。

因为宝塔编译安装要点时间,所以在一开始安装就修改,不要等到安装失败再修改。

docker

https://hub.docker.com/r/insoxin/baota7.7

docker pull insoxin/baota7.7

"-port","8888","-username","admin123","-password","admin123"

baota7.7's People

Contributors

insoxin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.