Loading... 原文:https://hostloc.com/thread-860468-1-1.html ## Bash安装 ### 查看版本 <style>#mermaid-1624464227206{font-family:sans-serif;font-size:16px;fill:#333;}#mermaid-1624464227206 .error-icon{fill:#552222;}#mermaid-1624464227206 .error-text{fill:#552222;stroke:#552222;}#mermaid-1624464227206 .edge-thickness-normal{stroke-width:2px;}#mermaid-1624464227206 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1624464227206 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1624464227206 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1624464227206 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1624464227206 .marker{fill:#333333;}#mermaid-1624464227206 .marker.cross{stroke:#333333;}#mermaid-1624464227206 svg{font-family:sans-serif;font-size:16px;}#mermaid-1624464227206 .label{font-family:sans-serif;color:#333;}#mermaid-1624464227206 .label text{fill:#333;}#mermaid-1624464227206 .node rect,#mermaid-1624464227206 .node circle,#mermaid-1624464227206 .node ellipse,#mermaid-1624464227206 .node polygon,#mermaid-1624464227206 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-1624464227206 .node .label{text-align:center;}#mermaid-1624464227206 .node.clickable{cursor:pointer;}#mermaid-1624464227206 .arrowheadPath{fill:#333333;}#mermaid-1624464227206 .edgePath .path{stroke:#333333;stroke-width:1.5px;}#mermaid-1624464227206 .flowchart-link{stroke:#333333;fill:none;}#mermaid-1624464227206 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-1624464227206 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-1624464227206 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-1624464227206 .cluster text{fill:#333;}#mermaid-1624464227206 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:sans-serif;font-size:12px;background:hsl(80,100%,96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1624464227206:root{--mermaid-font-family:sans-serif;}#mermaid-1624464227206:root{--mermaid-alt-font-family:sans-serif;}#mermaid-1624464227206 flowchart{fill:apa;}</style> ```bash # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal ``` ### 升级系统 ```bash apt update && apt upgrade apt install automake build-essential libtool pkg-config ``` ### 安装 libtorrent https://github.com/arvidn/libtorrent/releases https://github.com/arvidn/libtorrent/releases/download/v2.0.4/libtorrent-rasterbar-2.0.4.tar.gz ```bash apt install libssl-dev libgeoip-dev libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev cd /usr/local/src wget https://github.com/arvidn/libtorrent/releases/download/v1.2.14/libtorrent-rasterbar-1.2.14.tar.gz tar zxvf libtorrent-rasterbar-1.2.14.tar.gz cd libtorrent-rasterbar-1.2.14 ./configure --disable-debug --enable-encryption --with-libgeoip=system make -j $(nproc) make install ldconfig ``` ### 安装 qbittorrent https://github.com/qbittorrent/qBittorrent/releases ```bash apt install qtbase5-dev qttools5-dev-tools libqt5svg5-dev zlib1g-dev cd /usr/local/src wget https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-4.3.5.tar.gz tar zxvf release-4.3.5.tar.gz cd qBittorrent-release-4.3.5 ./configure --disable-gui --disable-debug make -j$(nproc) make install ``` ### 启动 qbittorrent ```bash qbittorrent-nox ``` 首次启动 请安 y 接受确认,接着按 Ctrl+c 退出,启动后台运行 ### 创建服务 ```bash cat << "EOF" > /etc/systemd/system/qbittorrent.service [Unit] Description=qBittorrent Daemon Service After=network.target [Service] LimitNOFILE=512000 User=root ExecStart=/usr/local/bin/qbittorrent-nox ExecStop=/usr/bin/killall -w qbittorrent-nox [Install] WantedBy=multi-user.target EOF ``` ### 启用服务 ```bash systemctl enable qbittorrent.service ``` ### 启动服务 ```bash systemctl start qbittorrent.service ``` ### 访问 WebUI: http://你的IP:8080/ 默认用户名:admin 默认密码:adminadmin ![](https://mjj.link/usr/uploads/2021/06/3656316519.png) ![](https://mjj.link/usr/uploads/2021/06/2575026014.png) ## docker安装 一键脚本 ,选择 7 自动安装,而且支持 ARM64 甲骨文这些 ```bash wget git.io/autopt.sh && bash autopt.sh ``` ![请输入图片描述](https://mjj.link/usr/uploads/2021/06/585701147.png) Last modification:June 24, 2021 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏