1·安装
默认版本apt install qbittorrent-nox -y最新版本
cd /usr/local/bin wget https://github.com/userdocs/qbittorrent-nox-static/releases/latest/download/x86_64-qbittorrent-nox mv x86_64-qbittorrent-nox qbittorrent-nox chmod -R 777 /usr/local/bin/qbittorrent-nox2·systemd配置
cat << EOF > /etc/systemd/system/qbittorrent-nox.service [Unit] Description=qBittorrent After=network.target [Service] Type=forking User=root ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080 ExecStop=/usr/bin/kill -w qbittorrent-nox Restart=on-failure [Install] WantedBy=multi-user.target EOFsystemctl daemon-reload systemctl start qbittorrent-nox systemctl status qbittorrent-nox systemctl enable qbittorrent-nox3·nginx配置
location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Host localhost:8080; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; # qbit版本v4.2.2以上加入这条保护cookie安全 proxy_cookie_path / "/; Secure"; }- 4·面板配置
语言修改:Tools-Options-Web UI-Language
用户密码:Tools-Options-Web UI-Authentication-Username & Password
