Total Pageviews

Friday 9 June 2017

Cloud Torrent配置/使用


特点说明

    支持 BT下载
    支持 磁力链接下载
    支持 搜索磁力链接
    支持 离线下载
    可视化界面 Web UI(自带)
    支持Linux 和 Windows (Windows用这个干啥)
    MP4 Webm Ogg 格式文件可以在浏览器(HTML5)直接播放。


安装步骤
以下内容需要你有一点Linux基础。
官方提供2种安装方式。

使用官方的推荐命令,然后将执行文件放到 /etc/cloudtorrent.
curl i.jpillora.com/cloud-torrent | bash
cp cloud-torrent /usr/bin/cloud-torrent

 
源码安装
由于Cloud Torrent是由Go语言编写,依赖Golang环境.
go get -u github.com/jpillora/cloud-torrent

一行代码即可安装完成。


使用方法
命令介绍:
   
$ cloud-torrent --help

  Usage: cloud-torrent [options]

  Options:
  --title, -t        Title of this instance (default Cloud Torrent, env TITLE)
  --port, -p         Listening port (default 3000, env PORT)(监听的端口,默认3000)
  --host, -h         Listening interface (default all)(这里可以使用自己的域名,多IP的监听某一个IP)
  --auth, -a         Optional basic auth in form 'user:password' (env AUTH)(认证信息注意格式 用户名:密码)
  --config-path, -c  Configuration file path (default cloud-torrent.json) (配置文件启动)
  --key-path, -k     TLS Key file path (SSL KEY 目录)
  --cert-path, -r    TLS Certicate file path (SSL Crt 目录)
  --log, -l          Enable request logging (输出日志)
  --open, -o         Open now with your default browser
  --help
  --version, -v

命令行启动:
cloud-torrent -p 80 -a username:your_pw -c /etc/cloudtorrent/cloud-torrent.json

说明:
-p 后面是监听端口;
-a 后面是用户:密码 ;
-c后面cloud-torrent的配置文件 .

配置文件说明:
上面提供启动服务的时候有一个配置。
配置内容如下,这个配置会自动生成。

{
  "AutoStart": true, #自动启动下载
  "DisableEncryption": false, #禁用加密
  "DownloadDirectory": "/root/downloads",#文件下载到的目录
  "EnableUpload": true, #是否上传
  "EnableSeeding": false,#是否启用种子
  "IncomingPort": 50007 #输入端口
}

项目地址:https://github.com/jpillora/cloud-torrent,
https://github.com/jpillora/cloud-torrent/wiki

Docker安装

镜像:jpillora/cloud-torrent

端口:3000 TCP

相关帖子:http://briteming.blogspot.com/2017/06/peerflix-servertorrent.html

No comments:

Post a Comment