- 安装mktorrent
1234567#下载源码git clone https://github.com/Rudde/mktorrent.git#编译安装cd mktorrentmake && make installcd ..
- 可选参数
1234567891011121314151617181920212223242526root@debian:~# mktorrent -hmktorrent 1.1 (c) 2007, 2009 Emil Renner BerthingUsage: mktorrent [OPTIONS] <target directory or filename>Options:-a <url>[,<url>]* : specify the full announce URLs #添加Tracker服务器地址at least one is requiredadditional -a adds backup trackers-c <comment> : add a comment to the metainfo #添加描述信息-d : don't write the creation date #禁止写入创建时间-h : show this help screen #显示帮助信息-l <n> : set the piece length to 2^n bytes, #区块大小 -l 22 = 4096KiBdefault is 18, that is 2^18 = 256kb-n <name> : set the name of the torrent, #种子的文件名 默认为目标文件/文件夹名称default is the basename of the target-o <filename> : set the path and filename of the created file #种子的保存路径 默认为目标文件/文件夹名称.torrentdefault is <name>.torrent-p : set the private flag #标记为私人种子-s : add source string embedded in infohash #添加字符串到Hash值-v : be verbose #输出详细信息-w <url>[,<url>]* : add web seed URLs #添加网络种子地址additional -w adds more URLsPlease send bug reports, patches, feature requests, praise andgeneral gossip about the program to: mktorrent@rudde.org - 示例命令
12#目标文件/文件夹名称带有空格或特殊字符需要在头尾添加引号mktorrent -a https://tracker.dmhy.org/announce -l 22 -p -v -o Filename.torrent Filename.mkv
来源详情: mktorrent