宝塔5.9.1开心版设置办法(转贴)

安装宝塔5.9.1免费版

Centos安装脚本:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Ubuntu安装脚本:

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

Debian安装脚本:

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

Fedora安装脚本:

wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh

若按照组件失败,可更换DNS:

echo -e "options timeout:1 attempts:1 rotate\nnameserver 8.8.8.8\nnameserver 114.114.114.114" >/etc/resolv.conf;

二、手动修改宝塔面板5.9.1到专业版

升级到宝塔专业版

wget -O update.sh http://download.bt.cn/install/update_pro.sh && bash update.sh pro

修改文件

nano /www/server/panel/class/common.py

搜索代码164行

data = panelAuth.panelAuth().get_order_status(None);

替换成

data = {'status' : True,'msg' : {'endtime' : 32503651199 }};

运行

echo > /www/server/panel/data/userInfo.json

然后重启你的面板

/etc/init.d/bt restart

然后就可以看到下图

之前安装的有黄标,今天这个怎么没黄标?不管了,反正时间还是到2999-12-31

三、恢复宝塔面板5.9.1到免费版

wget -O update.sh http://download.bt.cn/install/update.sh && bash update.sh free

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据