树莓派4B安装宝塔面板
程序员文章站
2022-06-01 14:41:47
...
安装宝塔面板
首先给出我使用的树莓派版本
[email protected]:~ $ uname -a
Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
[email protected]:~ $ cat /proc/version
Linux version 5.10.17-v7l+ ([email protected]) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1403 SMP Mon Feb 22 11:33:35 GMT 2021
先切换到root用户,在执行下面脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
安装会需要几分钟,稍等一下便可
安装成功后会得出一下结果
==================================================================
Congratulations! Install succeeded!
==================================================================
Bt-Panel: http://223.66.70.145:8888
username: sq8ml9qk
password: c8bb79b9
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
==================================================================
Time consumed: 1 Minute!
卸载宝塔面板
# 先切换到root用户
su root
# 执行下面语句
rm -f /etc/init.d/bt && rm -rf /www/server/panel
查看面板的默认密码
sudo cat /www/server/panel/default.pl
重置面板的密码
cd /www/server/panel && python tools.pyc panel 新密码