修复 qBittorrent WebUI 空白页访问问题 | AI生成和翻译

Home 2026.02

Question: 访问 http://192.168.1.36:8080 时 Web UI 没有任何显示

Answer:

如果在 http://192.168.1.36:8080 没有任何显示(空白页、超时、连接被拒绝或无限加载),请在你的 Ubuntu server 上按顺序执行以下 troubleshooting 步骤。大多数“无显示”情况是由以下原因之一引起的:service 未运行、bind address 错误、firewall 拦截、端口错误、config 问题或浏览器/网络问题。

1. 检查 service 是否正在运行

sudo systemctl status qbittorrent-nox

查找类似以下内容的行:

2. 在服务器本地进行测试

直接在 Ubuntu server 上运行(通过 SSH 或控制台):

curl http://localhost:8080

或者

curl http://127.0.0.1:8080

3. 检查 8080 端口的实际监听状态

sudo ss -tuln | grep 8080
# 或者
sudo netstat -tuln | grep 8080   # 如果已安装 netstat

修复仅 bound 到 localhost 的问题
编辑 config(先停止 service):

sudo systemctl stop qbittorrent-nox

然后编辑(以 qbittorrent 用户身份或使用 sudo):

nano /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf
# 或者你的 config 所在位置 (使用 find / -name qBittorrent.conf 查找)

[Preferences] 下找到或添加以下行:

WebUI\Address=0.0.0.0
WebUI\Port=8080
WebUI\Enabled=true

(0.0.0.0 表示监听所有网络接口)

重启:

sudo systemctl start qbittorrent-nox

替代方案:使用显式 bind 手动运行:

sudo -u qbittorrent qbittorrent-nox --webui-port=8080 --webui-address=0.0.0.0

4. 检查 Ubuntu firewall (ufw)

sudo ufw status

如果处于 active 状态,请允许该端口:

sudo ufw allow 8080/tcp
sudo ufw reload

5. 浏览器 / 网络检查(从你的其他电脑)

6. 重置 WebUI 密码 / config(如果出现登录页但无法接受 admin/adminadmin)

停止 service → 删除或重命名 config:

sudo systemctl stop qbittorrent-nox
sudo mv /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf /var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf.bak
sudo systemctl start qbittorrent-nox

手动运行一次以在终端查看临时密码:

sudo -u qbittorrent qbittorrent-nox

7. 如果 service 启动失败

诊断用的快速单行命令总结

sudo systemctl status qbittorrent-nox && sudo ss -tuln | grep 8080 && curl -I http://localhost:8080

运行该命令,如果仍然卡住请分享输出内容——它几乎能告诉我们所有信息。

References:


Back Donate