在 CentOS Stream 8 上安装 宝塔面板(BT Panel) 的步骤如下(以 宝塔 9.x / 官方最新脚本 为准):
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
dnf update -y
curl -sSO http://download.bt.cn/install/install_6.0.sh
bash install_6.0.sh
或者使用国内加速:
curl -sSO http://download.bt.cn/install/install_6.0.sh
bash install_6.0.sh ed8484bec
⚠️ 注意:CentOS Stream 8 属于较新系统,部分旧教程中的
install.sh可能不兼容
安装过程中会提示:
一般情况:
安装时间视服务器性能,一般 5–20 分钟。
安装完成后会显示:
外网面板地址: http://IP:8888
内网面板地址: http://内网IP:8888
username: xxxxxx
password: xxxxxx
http://服务器IP:8888
# 开放防火墙
firewall-cmd --permanent --add-port=8888/tcp
firewall-cmd --reload
云服务器还要在 安全组 放行 8888。
✅ 宝塔官方已支持
❌ 不建议使用 CentOS 8(已 EOL)
/etc/init.d/bt stop
rm -rf /www
如果宝塔在 Stream 8 上异常,可考虑:
如果你需要:
告诉我你的使用场景,我可以直接给你命令。