ubuntu server系统 安装宝塔
更新系统软件包
sudo apt update && sudo apt upgrade -y
提示,如果想博主这样是存绿色liunx系统,要先安装python3脚本才可以
python3 --version
有pyhton版本号就是安装了,没有的话就要安装
安装 Python
sudo apt update
sudo apt install python3 python3-pip
环境变量问题
echo 'export PATH=$PATH:/usr/bin/python3' >> ~/.bashrc
source ~/.bashrc
检查是否成功
python3 --version或者
python3 -v 运行 exit() 退出
没保存就成功了
安装宝塔,官方给的地址
wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh
sudo bash install.sh ed8484bec
安装好之后端口放行
sudo ufw allow # 端口号/tcp
sudo ufw reload # 重新加载
检查宝塔面板服务运行状态
sudo systemctl status bt
显示 active (exited)
说明已启动
没启动就启动一下
sudo systemctl restart bt
重启报错,使用脚本重启100%重启
sudo /etc/init.d/bt restart