我的路由是 192.168.1.1 ,运行 openwrt.另一台机器是 192.168.1.101.
/home/movie.mkv 在 192.168.1.01.
在 192.168.1.10 执行
transmission-create -o /tmp/movie.torrent -t udp://tracker.openbittorrent.com:80 /home/movie.mkv
Creating torrent "/tmp/movie.torrent" ............ done!
aria2c -S /tmp/movie.torrent
>>> Printing the contents of file '/tmp/movie.torrent'...
*** BitTorrent File Information ***
Creation Date: Thu, 23 Jun 2016 10:40:48 GMT
Created By: Transmission/2.84 (14307)
Mode: single
Announce:
udp://tracker.openbittorrent.com:80
Info Hash: 25391da101cb8024e8dd8317236349315938c28a
Piece Length: 128KiB
The Number of Pieces: 2270
Total Length: 283MiB (297,429,086)
Name: movie.mkv
Magnet URI: magnet:?xt=urn:btih:25391DA101CB8024E8DD8317236349315938C28A&dn=movie.mkv&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80
Files:
idx|path/length
===+===========================================================================
1|./movie.mkv
|283MiB (297,429,086)
---+--------------------------------------------------------------------------
现在将 /tmp/movie.torrent 从 192.168.1.101 上传到 192.168.1.1 ,然后在 192.168.1.101 用命令 `ssh root@192.168.1.1` 登录 192.168.1.1
root@OpenWrt:~# aria2c /tmp/movie.torrent
06/23 10:44:44 [NOTICE] IPv4 DHT: listening on UDP port 6945
06/23 10:44:44 [NOTICE] IPv4 BitTorrent: listening on TCP port 6934
06/23 10:44:44 [NOTICE] IPv6 BitTorrent: listening on TCP port 6934
*** Download Progress Summary as of Thu Jun 23 10:45:44 2016 ***
===============================================================================
[#efcfe4 0B/283MiB(0%) CN:25 SD:0 DL:0B]
FILE: /root/movie.mkv
-------------------------------------------------------------------------------
*** Download Progress Summary as of Thu Jun 23 10:46:45 2016 ***
===============================================================================
[#efcfe4 0B/283MiB(0%) CN:2 SD:0 DL:0B]
FILE: /root/movie.mkv
-------------------------------------------------------------------------------
为何这个文件在 192.168.1.101 上,我也制作了 torrent ,为何在路由器上居然无法下载?
我还有什么步骤遗漏了?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.