☁️ Cloud Torrent介绍:

Cloud Torrent是一个开源、免费的BT下载程序,适用于 Linux、darwin和Windows。Cloud Torrent是一个自托管的远程种子客户端,用 Go (golang)编写。您可以远程启动 torrent,它们作为文件集下载到服务器的本地磁盘上,然后可以通过 HTTP 检索或流式传输。

开源项目地址: GitHub - jpillora/cloud-torrent: ☁️ Cloud Torrent: a self-hosted remote torrent client

安装Cloud Torrent程序:

下载Cloud Torrent程序: 1、脚本自动安装:

curl https://i.jpillora.com/cloud-torrent! | bash

2、Docker安装

docker run -d -p 3000:3000 -v /path/to/my/downloads:/downloads jpillora/cloud-torrent

3、源文件编译安装:

go get -v github.com/jpillora/cloud-torrent

Cloud Torrent程序默认使用3000端口,安装完成后,访问http://localhost:3000进行使用。

使用说明:

$ cloud-torrent --help

设置开机自动运行:

systemd Create a new service file:

/etc/systemd/system/cloud-torrent.service
[Unit]
Description=cloud-torrent

[Service]
WorkingDirectory=/root/
ExecStart=/usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password"
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

Enable the service

systemctl enable cloud-torrent

Start the service

systemctl start cloud-torrent

Confirm the service is running

systemctl status cloud-torrent

CentOS Run on Reboot

chmod +x /etc/rc.d/rc.local

echo /usr/local/bin/cloud-torrent --port 8080 --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log --auth "user:password" >>chmod +x /etc/rc.d/rc.local

shutdown cloud-torrent(clout-torrent need running)

eval $(ps -ef | grep cloud-torrent | grep -v grep | awk '{print "kill "$2}')

check cloud-torrent status

ps -ef | grep 'cloud-torrent' | grep -v 'grep' | awk '{print $2}'

if have result ,service is running

Debian like CentOS set

尽情使用吧!