天天看點

樹莓派4B安裝寶塔面闆

安裝寶塔面闆

首先給出我使用的樹莓派版本

[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 新密碼