2023年5月17日
宝塔面板相关问题
检查防火墙状态
systemctl status firewalld
将添加的禁止的端口移除
firewall-cmd --permanent --remove-rich-rule 'rule family="ipv4" port port="111-333" protocol="tcp" drop'
重载firewalld系统防火墙的规则
firewall-cmd --reload
安装宝塔
- CentOS安装脚本
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
- Ubuntu/Deepin安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
- Debian安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
- Fedora安装脚本
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
管理宝塔
- 卸载
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
- 堡塔命令行工具箱 (仅限6.x以上版本的面板,5.x以下版本请点击右侧目录 – 旧版本管理宝塔)
bt
- 重启面板
bt 1
- 停止面板
bt 2
- 启动面板
bt 3
- 重载面板
bt 4
- 修改面板密码
bt 5
- 修改面板用户名
bt 6
- 修改数据库密码
bt 7
- 修改面板使用端口
bt 8
- 清除面板缓存
bt 9
- 清除面板登录限制
bt 10
- 取消域名绑定限制
bt 12
- 取消IP访问限制
bt 13
- 查看面板默认登录信息
bt 14
- 清理系统垃圾
bt 15
- 修复面板
bt 16
- 设置日志切割是否压缩
bt 17
- 设置是否自动备份面板
bt 18
- 显示面板错误日志
bt 22
- 关闭BasicAuth认证
bt 23
- 关闭动态口令认证
bt 24
- 设置是否保存文件历史副本
bt 25
- 关闭面板静态文件加速
rm -rf /www/server/panel/plugin/static_cdn/ && bt restart
- 开启面板离线模式
echo "True" >/www/server/panel/data/not_network.pl
- 关闭面板离线模式
rm -rf /www/server/panel/data/not_network.pl && bt restart
以上部分内容来源于https://www.bt.cn/new/btcode.html
goodbye