在Linux中安裝 qbittorrent 直接指定連接Port

因為先前是在Openmediavault中安裝Docker再使用Portainer進行管理各個容器
qbittorrent, AdGuard和portainer都是image來包容器
佔用了很多的磁碟空間
由於我VM只有30G,加上Log很快空間就不夠用了
沒有空間的情況下,Openmedaivault就無法登入
所以,把docker容器的服務進行VM的安裝

qbittorrent和qbittorrent-nox是不同的
docker容器中裝的就是qbittorrent-nox
直接透過Web UI進行管理
由於OMV沒有GUI,就不裝qbittorrent,直接裝qbittorrent-nox
指定port和下載路徑,就可以直接使用了

安裝的步驟如下

1.sudo apt-get install -y qbittorrent-nox

2.cat > /etc/systemd/system/qbittorrent-nox.service << EOF
[Unit]
Description=qBittorrent Command Line Client
After=network.target

[Service]
#Type=fork
User=root
Group=root
UMask=007
ExecStart=/usr/bin/qbittorrent-nox -d –webui-port=8081
Restart=on-failure
RemainAfterExit=yes
Restart=always

[Install]
WantedBy=multi-user.target
EOF

要調整連接Port 調整這裡
–webui-port=8081
我的設定值是8081Port

3.systemctl daemon-reload && \
systemctl enable qbittorrent-nox && \
systemctl stop qbittorrent-nox && \
systemctl start qbittorrent-nox && \
systemctl status qbittorrent-nox

之後使用瀏覽器登入
修改設定
文字檔的設定

/root/.config/qBittorrent

Log檔在
/root/.local/share/data/qBittorrent/logs
我是在這邊看到有問題
去做儲存路徑修改,之後重啟服務,就正常了

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *