> For the complete documentation index, see [llms.txt](https://hostpanel.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hostpanel.gitbook.io/untitled/hostpanel-mian-ban-ming-ling.md).

# HostPanel面板命令

**HostPanel官网** [**https://hostpanel.cc**](https://hostpanel.cc)

**HostPanel站长交流群** [**https://t.me/hostpanelg**](https://t.me/hostpanelg)

### 管理面板

工具箱(包含下列绝大部分功能 直接ssh中执行bt命令)

```
bt
```

如遇面板无法登陆等情况，请通过SSH登陆root账号，然后输入“bt”命令，根据 宝塔面板命令行 的提示修改相关项目，清理缓存、重启面板。&#x20;

如果输入 bt 或 bt default 命令无效，可以尝试重新安装宝塔纯净版，不影响网站和数据正常运行；

停止

```
/etc/init.d/bt stop
```

启动

```
/etc/init.d/bt start
```

重启

```
/etc/init.d/bt restart
```

卸载

```
wget -O hostpanel-uninstall.sh https://download.hostpanel.cc/hostpanel-uninstall.sh && bash hostpanel-uninstall.sh
```

查看面板端口

```
cat /www/server/panel/data/port.pl
```

修改面板端口（centos7）

```
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart
firewall-cmd --permanent --zone=public --add-port=8881/tcp
firewall-cmd --reload
```

强制修改MySQL管理（root）密码为123456

```
cd /www/server/panel && python tools.py root 123456
```

修改面板密码为123456

```
cd /www/server/panel && python tools.py panel 123456
```

查看面板日志

```
cat /tmp/panelBoot.pl
```

查看软件安装日志

```
cat /tmp/panelExec.log
```

站点配置文件位置

```
/www/server/panel/vhost
```

删除域名绑定面板

```
rm -f /www/server/panel/data/domain.conf
```

清理登录限制

```
rm -f /www/server/panel/data/*.login
```

查看面板授权ip

```
cat /www/server/panel/data/limitip.conf
```

关闭访问限制

```
rm -f /www/server/panel/data/limitip.conf
```

查看许可域名

```
cat /www/server/panel/data/domain.conf
```

关闭面板SSL

```
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
```

查看面板错误日志

```
cat /tmp/panelBoot
```

查看数据库错误日志

```
cat /www/server/data/*.err
```

站点配置文件目录（nginx）

```
/www/server/panel/vhost/nginx
```

站点配置文件目录（apache）

```
/www/server/panel/vhost/apache
```

站点配置默认目录

```
/www/wwwroot
```

数据库备份目录

```
/www/backup/database
```

站点备份目录

```
/www/backup/site
```

站点日志

```
/www/wwwlogs
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hostpanel.gitbook.io/untitled/hostpanel-mian-ban-ming-ling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
