以上是宝塔官方的命令介绍
Ubuntu/Deepin安装脚本命令如下
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
但今天突然遇到一个状况。命令下载下来的install.sh确是一个空文件。bash根本就执行不了任何东西。
# wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
--2022-07-20 17:06:56-- http://download.bt.cn/install/install-ubuntu_6.0.sh
Resolving download.bt.cn (download.bt.cn)... 116.213.43.206, 240e:a5:4200:89::256
Connecting to download.bt.cn (download.bt.cn)|116.213.43.206|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/octet-stream]
Saving to: ‘install.sh’
install.sh [ <=> ] 0 --.-KB/s in 0s
2022-07-20 17:06:56 (0.00 B/s) - ‘install.sh’ saved [0/0]
估计是升级脚本或者宝塔服务器里的sh文件被删减。这个要宝塔自己修复了。
好在还有一个后备的万能命令:
if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec