安装Cloud Torrent在服务器BT下载 支持文件预览

Kevin 教程 3,889 次浏览 56条评论

Cloud Torrent是一个简单容易部署的远程BT客户端,支持以BT种子或磁力链接创建离线下载,下载后可通过WEB网页在线预览(需文件格式支持)。适合那些本机下载不畅或想直接在线播放的场景使用。Cloud Torrent可以跨平台运行,除了惯常在VPS上使用,像树莓派这种ARM设备也可以安装。

Cloud Torrent 安装

Cloud Torrent是用Go语言编写的程序,作者提供了二进制执行文件,无需安装运行环境就可以直接使用。如果想用Docker运行或从源代码构建(需安装Go环境),在GitHub项目页有相关介绍。

这里介绍二进制文件使用方法,适用CentOS、Debian、Ubuntu这些主流Linux系统。为了介绍详细下面文字码的有些多,看似复杂其实很简单,Linux新手照做也能轻松安装。

开始安装步骤:

1. 运行下面命令安装Cloud Torrent,它会自动获取Shell脚本检测系统环境下载对应的二进制文件。

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

安装后会显示程序路径,默认路径为/usr/local/bin/cloud-torrent

2. 接着就可以运行使用了,运行程序需要带几个必要参数,以下是运行命令。

/usr/local/bin/cloud-torrent --host 0.0.0.0 --port 8080 --auth "user:password" --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log >> /var/log/cloud-torrent.log

解释一下上面命令参数:监听本机IP使用8080端口,登录用户名user密码password,指定程序配置文件(安装时已经自动生成),设置网页标题,启用请求记录,将使用日志记录到指定文件。

根据自己需要修改选项参数,比如密码是必须要改的。完整选项可运行cloud-torrent --help查看。

现在运行命令试试,执行后就可以通过网页访问了,地址格式为http://X.X.X.X:8080/

如果不能访问,可能防火墙没有放行端口,需要设置一下(以CentOS 7为例)。

firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload

3. 手动运行命令使用很麻烦,断开SSH会话就会自动关闭,所以最好放在后台运行并设置开机启动。

vi /usr/lib/systemd/system/cloud-torrent.service创建服务文件,将下面内容粘贴保存。

[Unit]
Description=cloud-torrent

[Service]
WorkingDirectory=/root/
ExecStart=/usr/local/bin/cloud-torrent --host 0.0.0.0 --port 8080 --auth "user:password" --config-path /root/cloud-torrent.json --title "Cloud Torrent" --log >> /var/log/cloud-torrent.log
ExecStop=eval $(ps -ef | grep cloud-torrent | grep -v grep | awk '{print "kill "$2}')
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

之后就可以使用下面命令管理程序了。

  • 设置开机自启:systemctl enable cloud-torrent
  • 取消开机自启:systemctl disable cloud-torrent
  • 手动启动程序:systemctl start cloud-torrent
  • 手动停止程序:systemctl stop cloud-torrent
  • 查看运行状态:systemctl status cloud-torrent

如果你用的Linux系统不能用Systemd,可以将命令添加到rc.local文件设置开机启动(该文件路径因系统不同存有差异,具体路径请网上搜索),添加后别忘了确认文件是否有执行权限。

Cloud Torrent 使用

登录Cloud Torrent网页端会显示如下界面,使用非常简单,直接输入磁力链接即可创建BT下载。

若要搜索Torrent资源,也是在输入框内用关键词搜索,有多个搜索源可切换。右侧按钮可以从本地上传BT种子下载。下方文件列表可点击预览、删除、取回等操作。

Cloud Torrent

右上角第一个按钮是选项设置,可以关闭上传、设置上传端口,自定义下载目录等设置。

Cloud Torrent选项

在VPS上BT下载需留意主机商TOS条款,最好不要下载美剧那类版权资源,其它下载用途问题不大。

评论列表

  1. #1

    hydroxychloroquine 200mg coronavirus https://hydroxychloroquine.webbfenix.com/

  2. #2

    do you need prescription for dapoxetine https://salemeds24.wixsite.com/dapoxetine

  3. #3

    ivermectin oral dosage for rosacea https://ivermectin.mlsmalta.com/

  4. #4

    vidalista pharmacy coupon https://vidalista40mg.mlsmalta.com/

  5. #5

    tadalafil package insert pdf https://wisig.org/

  6. #6

    priligy in australia https://ddapoxetine.com/

  7. #7

    does trump have investments in hydroxychloroquine https://hydroxychloroquinee.com/

  8. #8

    liquid tadalafil citrate https://tadalafili.com/

  9. #9

    red inhaler albuterol https://amstyles.com/

  10. #10

    chloroquine dose for malaria https://hydroxychloroquine.wisig.org/

  11. #11

    chloroquine dose for malaria https://hydroxychloroquine.grassfed.us/

  12. #12

    cialis 30-day free coupon https://www.lm360.us/

  13. #13

    chloroquine 200 https://hydroxychloroquine.lm360.us/

  14. #14

    chloroquine 200 https://hydroxychloroquine.mymvrc.org/

  15. #15

    alberta doctors virtual care https://edmeds.buszcentrum.com/

  16. #16

    alberta doctors virtual care https://buymeds.mlsmalta.com/

  17. #17

    tadalafil expiration use date https://tadalafil.cleckleyfloors.com/

  18. #18

    cialis and viagra pills https://cialis.webbfenix.com/

  19. #19

    cialis and viagra pills https://cialis.stdstory.com/

  20. #20

    prescription meds without the prescriptions https://medpills.bee-rich.com/

  21. #21

    why doesn’t cialis work for me https://cialis.bee-rich.com/

  22. #22

    why doesn’t cialis work for me https://cialis.advantagetriseal.com/

  23. #23

    levitra buy online

  24. #24

    quick easy cash

  25. #25

    apply online

  26. #26

    generic elimite

  27. #27

    ivermectin without see a doctor http://ivermmectin.com/

  28. #28

    buy aralen

  29. #29

    loans for poor credit

  30. #30

    emergency loans

  31. #31

    kwikcash

  32. #32

    buy sildalis

  33. #33

    buy kamagra pill

  34. #34

    easy installment loans online

  35. #35

    sildenafil 20

  36. #36

    cheap kamagra 100mg tablets

  37. #37

    cialis online https://cialzi.com/

  38. #38

    what is generic tadalafil https://cialis.cleckleyfloors.com/

  39. #39

    what is generic tadalafil https://cialis.mlsmalta.com/

  40. #40

    I pay a visit each day some blogs and blogs to read content, except this blog provides feature
    based writing. http://cleckleyfloors.com/viagra.pills

  41. #41

    I know this if off topic but I’m looking into starting my own weblog
    and was wondering what all is needed to get set up?

    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet smart so I’m not 100% positive. Any recommendations
    or advice would be greatly appreciated. Kudos http://cleckleyfloors.com/viagra

  42. #42

    What’s up Dear, are you really visiting this web page regularly, if
    so after that you will definitely take good experience. http://cialis.anafassia.com/tadalafil

  43. #43

    I’m amazed, I must say. Rarely do I come across a
    blog that’s equally educative and entertaining, and
    without a doubt, you’ve hit the nail on the head.
    The problem is something which too few people are speaking intelligently
    about. I am very happy that I stumbled across this
    in my search for something concerning this. https://hydroxychloroquinel.lm360.us/

  44. #44

    You’re so cool! I do not think I’ve read through something like this before.
    So wonderful to discover someone with some original thoughts on this subject.

    Seriously.. thanks for starting this up. This site is one thing that is required
    on the web, someone with some originality! https://hydroxychloroquinec.cleckleyfloors.com/

  45. #45

    I visited a lot of website but I think this one has something special in it in it

    http://www.vreyrolinomit.com/

  46. #46

    I am genuinely grateful to the holder of this site who has shared this enormous paragraph at here. http://www.deinformedvoters.org/tadalafil-price

  47. #47

    hydroxychloroquine cost per dose https://hhydroxychloroquine.com/

  48. #48

    Everyone loves what you guys are usually up too.
    This type of clever work and exposure! Keep up the fantastic works guys I’ve added you guys to my blogroll. http://antiibioticsland.com/Augmentin.htm

  49. #49

    Having read this I thought it was extremely informative. I appreciate
    you finding the time and effort to put this content together.
    I once again find myself personally spending way too much time both reading and
    posting comments. But so what, it was still worth it! https://cialis.studiowestinc.com/tadalafil

  50. #50

    vidalista trial coupon http://vidallista.com/

  51. #51

    Howdy! Do you use Twitter? I’d like to follow you if that
    would be ok. I’m absolutely enjoying your blog and look forward to new posts. https://cialis.webbfenix.com/tadalafil

  52. #52

    Hello every one, here every person is sharing these know-how, thus it’s nice
    to read this web site, and I used to go to see this website every day. https://cialis.buszcentrum.com/tadalafil

  53. #53

    Thanks for sharing such a nice idea, piece
    of writing is nice, thats why i have read it completely http://hydroxychloroquinea.anafassia.com/

  54. #54

    Nice post. I was checking constantly this weblog
    and I am impressed! Very helpful info specially the remaining phase 🙂 I care for such information a lot.
    I was seeking this certain information for a very lengthy time.

    Thanks and good luck. https://hydroxychloroquinew.webbfenix.com/

  55. #55

    discount coupon for vidalista http://viidalista.co/

  56. #56

    I’m really impressed along with your writing skills and also with the layout to your weblog.
    Is this a paid subject or did you modify it yourself?
    Either way keep up the excellent quality writing, it is uncommon to see a nice weblog
    like this one nowadays.. http://www.deinformedvoters.org/sildenafil-price

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。