本帖最后由 feeeei 于 2022-3-31 14:51 编辑
我的比楼上强一点儿
- # 下载最新qbittorrent-nox
- sudo wget -qO /usr/bin/qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/latest/download/x86_64-qbittorrent-nox
- # 给执行权限
- chmod +x /usr/bin/qbittorrent-nox
-
- # 注册成服务,写服务配置文件,web端直接80端口,想改随你
- sudo cat > /etc/systemd/system/qbittorrent-nox.service <<EOF
- [Unit]
- Description=qBittorrent client
- After=network.target
-
- [Service]
- ExecStart=/usr/bin/qbittorrent-nox –webui-port=80
- Restart=always
-
- [Install]
- WantedBy=multi-user.target
- EOF
-
- # 启动服务,之后服务会开机自启
- sudo systemctl enable qbittorrent-nox.service
- sudo systemctl start qbittorrent-nox.service
复制代码
|