这个是逗比根据地的备份镜像站(非官方)。牢记域名: [doubibackup.com]。搜索:标签云
投稿文章 | 广告合作 | Telegram 群组 / 公告频道 / 使用教程
广告

『原创』支持 BT(磁力链接)、离线下载和边下边播的老司机坐骑 —— Peerflix Server 一键脚本

Shell脚本 Toyo 50评论
广告
本文最后更新于 2018年9月20日 19:52 可能会因为没有更新而失效。如已失效或需要修正,请留言!

前几天在发布了Cloud Torrent的一键脚本和使用教程后,留言评论里又有一个逗比,提供了一个功能类似的工具,我就稍微研究了一下,又写了一个一键脚本来安利给各位老死机了。

PS:大家不要吐槽我的起标题功力!


声明:本文章仅提供 BT/磁力链接 下载工具的安装方法和说明,任何使用此工具 下载版权侵权文件或导致任何经济损失,皆和本人无任何关系!如果你不同意或有异议,请关闭这个网页!

系统需求

CentOS / Debian / Ubuntu 都可以,这个工具是Node.js的一个模块,所以需要安装Node.js。

不过,本人测试系统为 Debian 7 x64 建议使用这个。

脚本版本:

Ver: 1.1.0

Peerflix Server特点

  1. 支持 BT下载
  2. 支持 磁力链接下载
  3. 支持 上传BT文件
  4. 支持 离线下载
  5. 支持 边下边播( 格式限制:mp4/wbem/ogg )
  6. 可视化界面 Web UI

与Cloud Torrent的区别

点击展开 查看更多

安装步骤

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/pserver.sh && chmod +x pserver.sh && bash pserver.sh

安装完成之后,就会提醒你,输入要开放的端口(默认 9000

请输入 Peerflix Server 监听端口 [1-65535]
(默认端口: 9000):
========================
端口 : 9000
========================

Peerflix Server 信息:
浏览器访问,地址: http://VPS_IP:9000

启动后,访问http://VPS_IP:9000即可看到Web UI界面了。

使用说明

脚本使用说明

bash pserver.sh

然后就会看到菜单,输入对应选项的数字即可。

请输入一个数字来选择选项

 1. 安装 Peerflix Server
 3. 卸载 Peerflix Server
————————————
 4. 启动 Peerflix Server
 5. 停止 Peerflix Server
 6. 重启 Peerflix Server
————————————
 7. 设置 Peerflix Server 端口
 8. 查看 Peerflix Server 信息
 9. 查看 Peerflix Server 日志
————————————

 当前状态: 已安装 并 已启动

Peerflix Server 使用说明

点击展开 查看更多

文件位置

Peerflix Server是Node.js的一个模块,所以也安装了Node.js。

Node.js 安装目录:/etc/node

Peerflix Server 安装目录:/etc/node/lib/node_modules/peerflix-server

Peerflix Server 下载目录:/tmp/torrent-stream

日志文件:/tmp/peerflix-server.log

一些人可能想要自己修改网页的式样,你可以去这里修改网页文件。

网页文件:/etc/node/lib/node_modules/peerflix-server/dist

注意事项

BT和磁力链接的速度是和, 磁力链接/BT 的用户上传共享量 和 中心服务器的宽带质量,以及你下载 磁力链接/BT 的VPS的宽带有关系。

这种软件在某些程度上比不上 国内的迅雷,毕竟迅雷 用户了很大共享了很多的上传速度,而且还有缓存的中心服务器,所以才会那么快。


Peerflix Server 因为啥Node.js的模块,所以还支持 Windows 平台,不过暂时我没打算写windows的教程。


如果你是国外的VPS,特别是美国的,一定要注意下载 BT/磁力链接 容易遇到蜜罐,然后被投诉封VPS。建议使用欧洲的罗马尼亚,那里的VPS无视版权,当然拉回本地,速度肯定也不会多快。

无法访问你的 http://IP:端口

点击展开 查看更多

提示wget: unknown host “raw.githubusercontent.com” 之类的错误

点击展开 查看更多

提示 wget: command not found 的错误

点击展开 查看更多

更新日志

2018年08月01日,Ver 1.1.0

1.重写脚本。

点击展开 查看更多


因为脚本仅仅是临时写出来的,所以可能会有一些BUG,如果发现请在下面留言,如果需要什么新功能,记得也留言联系我。

其他的支持离线下载 BT和磁力链接的教程:https://doub.io/all-one/#BT、磁力链接下载 相关教程

GitHub项目地址(感谢作者):https://github.com/asapach/peerflix-server

转载请超链接注明:逗比根据地 » 『原创』支持 BT(磁力链接)、离线下载和边下边播的老司机坐骑 —— Peerflix Server 一键脚本
责任声明:本站一切资源仅用作交流学习,请勿用作商业或违法行为!如造成任何后果,本站概不负责!

赞 (52)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(50)个小伙伴在吐槽
  1. 可以HTTPS方式吗?
    lala2018-10-12 16:21 回复
  2. pserver.sh: line 67: xz: command not found [错误] Peerflix Server 解压失败(可能是 压缩包损坏 或者 没有安装 XZ) ! 这个怎么办呀
    银宝山新2018-09-30 13:39 回复
    • 尝试手动安装,看看报错什么。
      # CentOS 系统:
      yum install xz -y
      # Debian / Ubuntu 系统:
      apt-get install xz -y
      
      Toyo2018-09-30 19:20 回复
  3. 老哥们 就没有windows系统能用的嘛?全都必须要在魔法主机上用?
    狼桃桃2018-08-09 14:12 回复
  4. pm WARN deprecated [email protected]: connect 2.x series is deprecated
    npm WARN deprecated [email protected]: Use the parse-torrent package instead
    npm WARN deprecated [email protected]: Use uuid module instead
    npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
    npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
    /usr/local/bin/peerflix-server -> /usr/local/lib/node_modules/peerflix-server/server/bin.js
    [email protected] /usr/local/lib/node_modules/peerflix-server
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected])
    ├── [email protected] ([email protected])
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected])
    ├── [email protected]
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected])
    ├── [email protected] ([email protected], [email protected], [email protected], immediate-c[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
    ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
    └── [email protected] ([email protected], [email protected])
    
    报错
    kk2018-06-26 12:58 回复
    • node版本太低
      zhenhappy2018-08-01 15:51 回复
  5. 这个没有办法限制上传吗?感觉要死人啊 :eek:
    周周2018-02-19 00:51 回复
  6. 能否借助caddy basic auth 来实现权限访问呢?
    逗比9982018-01-18 18:53 回复
    • 看来不行。btw,github项目那里
      You can configure the application using ~/.config/peerflix-server/config.json file (doesn't exist by default). The options are passed to all torrent-stream instances. Here's an example that overrides the defaults:
      配置文件在
       ~/.config/peerflix-server/config.json
      需要自行创建。
      不知道TOyo的路径是不是改了呢?
      还有以下是作者给出的配置文件说明
      {
      	connections: 100,     // Max amount of peers to be connected to.最大种子连接数
      	uploads: 10,          // Number of upload slots.最大上传数???
      	tmp: '/tmp',          // Root folder for the files storage.下载根目录
      	                      // Defaults to '/tmp' or temp folder specific to your OS.默认使用你系统的临时文件夹目录
      	                      // Each torrent will be placed into a separate folder under /tmp/torrent-stream/{infoHash}每个种子文件会放在/tmp/torrent-stream/(hash值命名)的单独文件夹内
      	path: '/tmp/my-file', // Where to save the files. Overrides `tmp`. 下载目录
      	verify: true,         // Verify previously stored data before starting下载前确认
      	                      // Defaults to true默认设置 true
      	dht: true,            // Whether or not to use DHT to initialize the swarm.使用DHT么?
      	                      // Defaults to true
      	tracker: true,        // Whether or not to use trackers from torrent file or magnet link
      	                      // Defaults to true 使用TRacker:true
      	trackers: [//trackers服务器列表
      	    'udp://tracker.openbittorrent.com:80',
      	    'udp://tracker.ccc.de:80'
      	],
      	                      // Allows to declare additional custom trackers to use
      	                      // Defaults to empty
      	storage: myStorage()  // Use a custom storage backend rather than the default disk-backed one 不懂,请解惑
      }
      
      逗比9982018-01-20 23:20 回复
      • 默认是没有 config.json 配置文件的,有需要可以自己写,没有文件就一切默认了。
        Toyo2018-08-01 19:15 回复
  7. 请问怎么更改下载目录呀?(/tmp/torrent-stream)
    ll2017-12-28 18:03 回复
  8. 还有,不要再说推荐debian7了,会直接安装失败,ct会webui bug,centos就正常了
    chx8182017-12-01 13:40 回复
    • 该脚本我一开始写的时候就是用的 Debian7 系统测试脚本的。但是各IDC的系统模板可能有差异。
      Toyo2017-12-01 14:51 回复
  9. 不好用,还是ct方便
    chx8182017-12-01 13:37 回复
  10. 哎呀,没表述明白,可以自定义下载文件的路径吗? :neutral:
    afr2017-11-12 15:57 回复
    • 不是很了解,写过教程后,我就没用过这个了,因为感觉没另一个CT方便。
      Toyo2017-11-12 17:46 回复
  11. 可以自定义文件路径吗?
    afr2017-11-12 15:56 回复
  12. npm ERR! Linux 3.2.0-4-amd64
    npm ERR! argv "/etc/node/bin/node" "/usr/local/bin/npm" "install" "-g" "peerflix-server"
    npm ERR! node v6.9.1
    npm ERR! npm  v3.10.8
    
    npm ERR! shasum check failed for /tmp/npm-2944-e5324b32/registry.npmjs.org/peerflix-server/-/peerflix-server-0.2.0.tgz
    npm ERR! Expected: 1848fdc14036f013af7489a39e8a5f0f9da48b87
    npm ERR! Actual:   b3fb347e54b3aa0bd60373094448ab9140fffb47
    npm ERR! From:     https://registry.npmjs.org/peerflix-server/-/peerflix-server-0.2.0.tgz
    npm ERR! 
    npm ERR! If you need help, you may report this error at:
    npm ERR!    
    
    这是什么问题?
    SaebaRyo2017-09-27 14:25 回复
    • 不清楚,请向作者Github反馈。
      Toyo2017-09-27 18:32 回复
  13. 下载文件在哪个目录呀?
    小柴2017-05-29 20:28 回复
    • 你找到了下载目录了吗?
      nauser2017-07-26 13:01 回复
      • /tmp/torrent-stream/ 这个是目录
        3032017-07-27 07:02 回复
  14. 上传不限制 要死人 :eek:
    下欸愛好欸喔2017-02-07 20:03 回复
  15. aini :smile: 愛你
    下欸愛好欸喔2017-02-07 18:40 回复
  16. 这个其实是可以更换端口的,看github上原作者在issue里有回答,不知能否更新一个新的支持自定义端口的脚本?那就更好了 具体地址在:https://github.com/asapach/peerflix-server/issues/87
    麦子2017-01-12 16:51 回复
    • 这个我当初写脚本的时候就看到了,但是不清楚作者说的什么意思,有清楚的可以告诉我。
      Toyo2017-01-12 18:04 回复
      • 跟你说个投机取巧的办法,在iptables里加个端口映射,把用户自定义的端口映射到9000端口 :mrgreen:
        麦子2017-01-13 16:57 回复
        • 这个办法不错,吧2333转发到9000,然后把9000端口封了,不允许访问,这样就只能2333访问了,我有空试试。
          查了半天,程序监听的是 0.0.0.0:9000 只允许2333端口转发访问9000,而不能直接访问 9000 ,找不到什么方法,也就清楚端口转发,但是无法让 9000 端口不能直接访问。
          根据作者提供的方法,我研究了一下,解决了端口自定义的问题,请更新脚本 1.0.3
          Toyo2017-01-13 18:30 回复
          • 谢谢!这个能和Cloud Torrent共存不?
            麦子2017-01-17 11:19 回复
            • 可以共存,端口分开就行。
              Toyo2017-01-17 11:28 回复
  17. 安装后无法启动,而且卸载重装也没有用
    hzy2017-01-09 20:04 回复
  18. 请教一下,为什么用cloud torrent下载的速度比这个要慢?
    saber2017-01-07 18:36 回复
    • 同一个BT,两个软件下载速度不一样的话,可能是这两个软件的DHT的问题吧,具体的BT方面我也不是很了解。
      而且用这个软件的人越多,贡献的上传流量越多,你下载就越快。
      Toyo2017-01-07 18:44 回复
  19. 已成功手动更换端口,谢谢。 :grin:
    saber2017-01-07 14:11 回复
  20. 这个端口可不可以换?
    saber2017-01-07 13:35 回复
  21. 不想下载的线程,怎么没办法取消啊
    Forma2016-12-26 16:58 回复
    • 这个工具,目前还不完善,BUG很多,推荐另一个CT。
      Toyo2016-12-26 17:40 回复
  22. 请问东西下载到哪里去了。。。。
    Fireworks2016-12-12 14:32 回复
    • 我的是在根目录的tmp里面
      saber2017-01-07 20:10 回复
  23. Apache是否可以部署?
    thomas2016-12-07 10:49 回复
    • 不需要安装nginx apache。
      Toyo2016-12-07 12:17 回复
  24. 有没有 FTP上传指定目录 的一键脚本 :mrgreen:
    阿里路呀2016-12-03 17:22 回复
    • 什么意思?
      Toyo2016-12-03 18:22 回复
      • 就是下载目录完成的文件 FTP上传到其他存储
        阿里路呀2016-12-03 21:03 回复
        • 不清楚,shell我也是初学,这个功能比较麻烦暂时写不出来。
          Toyo2016-12-03 21:19 回复
  25. :sad: 一键脚本修改了默认的DNS? 我国内服务器 装一办出问题, 结果yum 也不能使用,还得重装系统,头疼
    gaudhguidfh2016-12-03 08:50 回复
    • 是,因为很多VPS的DNS有问题,我就统一修改为了8.8.8.8,你不需要你可以改回来啊,你还重装干什么。/etc/resolv.conf
      Toyo2016-12-03 13:30 回复
  26. 博主 这个代码该如何添加 https://github.com/jpillora/cloud-torrent/issues/24#issuecomment-250970862 vps存储不大 很需要这个转存
    阿里路呀2016-12-02 19:58 回复
    • 应该是添加到Go文件中,这我不清楚,我并不懂Go语言,而且源码修改后也需要编译才能使用,不过看情况作者是有这个打算的或许以后会更新出这个功能。
      Toyo2016-12-02 20:39 回复