下载安装:
curl https://i.jpillora.com/cloud-torrent! | bash
设置开机启动:
将二进制文件移到:/usr/local/bin/目录下(这里可以省略,下载时已经是这个位置)
mv cloud-torrent /usr/local/bin/cloud-torrent
创建服务
vim /etc/systemd/system/cloud-torrent.service
[Unit]
Description=cloud-torrent
[Service]
WorkingDirectory=/root/
ExecStart=/usr/local/bin/cloud-torrent --port 9000 --config-path /root/cloud-torrent.json --title "Andy Torrent" --log --auth "user:passwd"
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