找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5197|回复: 4

求 Transmission 命令行设置缓存

[复制链接]
发表于 2014-7-29 08:57 | 显示全部楼层 |阅读模式
谁知道Transmission命令行启动时加什么参数可以设置缓存大小?
谢谢
我的恩山、我的无线 The best wifi forum is right here.
发表于 2014-7-29 15:21 | 显示全部楼层
两种方法,要么指定配置文件,要么用 transmission-remote 设定

  1. # transmission-remote --help
  2. transmission-remote 2.82 (14160)
  3. A fast and easy BitTorrent client
  4. http://www.transmissionbt.com/

  5. Usage: transmission-remote [host] [options]
  6.        transmission-remote [port] [options]
  7.        transmission-remote [host:port] [options]
  8.        transmission-remote [http(s?)://host:port/transmission/] [options]

  9. See the man page for detailed explanations and many examples.

  10. Options:
  11. -h   --help                               Display this help page and exit
  12. -a   --add                                Add torrent files by filename or URL
  13. -as  --alt-speed                          Use the alternate Limits
  14. -AS  --no-alt-speed                       Don't use the alternate Limits
  15. -asd --alt-speed-downlimit    <speed>     max alternate download speed (in
  16.                                            kB/s)
  17. -asu --alt-speed-uplimit      <speed>     max alternate upload speed (in kB/s)
  18. -asc --alt-speed-scheduler                Use the scheduled on/off times
  19. -ASC --no-alt-speed-scheduler             Don't use the scheduled on/off times
  20.       --alt-speed-time-begin   <time>      Time to start using the alt speed
  21.                                            limits (in hhmm)
  22.       --alt-speed-time-end     <time>      Time to stop using the alt speed
  23.                                            limits (in hhmm)
  24.       --alt-speed-days         <days>      Numbers for any/all days of the week
  25.                                            - eg. "1-7"
  26.       --blocklist-update                   Blocklist update
  27. -c   --incomplete-dir         <dir>       Where to store new torrents until
  28.                                            they're complete
  29. -C   --no-incomplete-dir                  Don't store incomplete torrents in a
  30.                                            different location
  31. -b   --debug                              Print debugging information
  32. -d   --downlimit              <speed>     Set the max download speed in kB/s
  33.                                            for the current torrent(s) or
  34.                                            globally
  35. -D   --no-downlimit                       Disable max download speed for the
  36.                                            current torrent(s) or globally
  37. -e   --cache                  <size>      Set the maximum size of the session's
  38.                                            memory cache (in MiB)
  39. -er  --encryption-required                Encrypt all peer connections
  40. -ep  --encryption-preferred               Prefer encrypted peer connections
  41. -et  --encryption-tolerated               Prefer unencrypted peer connections
  42.       --exit                               Tell the transmission session to shut
  43.                                            down
  44. -f   --files                              List the current torrent(s)' files
  45. -g   --get                    <files>     Mark files for download
  46. -G   --no-get                 <files>     Mark files for not downloading
  47. -i   --info                               Show the current torrent(s)' details
  48. -if  --info-files                         List the current torrent(s)' files
  49. -ip  --info-peers                         List the current torrent(s)' peers
  50. -ic  --info-pieces                        List the current torrent(s)' pieces
  51. -it  --info-trackers                      List the current torrent(s)'
  52.                                            trackers
  53. -si  --session-info                       Show the session's details
  54. -st  --session-stats                      Show the session's statistics
  55. -l   --list                               List all torrents
  56.       --move                   <path>      Move current torrent's data to a new
  57.                                            folder
  58.       --find                   <path>      Tell Transmission where to find a
  59.                                            torrent's data
  60. -m   --portmap                            Enable portmapping via NAT-PMP or
  61.                                            UPnP
  62. -M   --no-portmap                         Disable portmapping
  63. -n   --auth                   <user:pw>   Set username and password
  64. -ne  --authenv                            Set authentication info from the
  65.                                            TR_AUTH environment variable
  66.                                            (user:pw)
  67. -N   --netrc                  <file>      Set authentication info from a .netrc
  68.                                            file
  69.       --ssl                                Use SSL when talking to daemon
  70. -o   --dht                                Enable distributed hash tables (DHT)
  71. -O   --no-dht                             Disable distributed hash tables
  72.                                            (DHT)
  73. -p   --port                   <port>      Port for incoming peers (Default:
  74.                                            51413)
  75. -pt  --port-test                          Port testing
  76. -P   --random-port                        Random port for incomping peers
  77. -ph  --priority-high          <files>     Try to download these file(s) first
  78. -pn  --priority-normal        <files>     Try to download these file(s)
  79.                                            normally
  80. -pl  --priority-low           <files>     Try to download these file(s) last
  81. -Bh  --bandwidth-high                     Give this torrent first chance at
  82.                                            available bandwidth
  83. -Bn  --bandwidth-normal                   Give this torrent bandwidth left over
  84.                                            by high priority torrents
  85. -Bl  --bandwidth-low                      Give this torrent bandwidth left over
  86.                                            by high and normal priority torrents
  87.       --reannounce                         Reannounce the current torrent(s)
  88. -r   --remove                             Remove the current torrent(s)
  89. -pr  --peers                  <max>       Set the maximum number of peers for
  90.                                            the current torrent(s) or globally
  91.       --remove-and-delete                  Remove the current torrent(s) and
  92.                                            delete local data
  93.       --torrent-done-script    <file>      Specify a script to run when a
  94.                                            torrent finishes
  95.       --no-torrent-done-script             Don't run a script when torrents
  96.                                            finish
  97. -sr  --seedratio              ratio       Let the current torrent(s) seed until
  98.                                            a specific ratio
  99. -srd --seedratio-default                  Let the current torrent(s) use the
  100.                                            global seedratio settings
  101. -SR  --no-seedratio                       Let the current torrent(s) seed
  102.                                            regardless of ratio
  103. -gsr --global-seedratio       ratio       All torrents, unless overridden by a
  104.                                            per-torrent setting, should seed
  105.                                            until a specific ratio
  106. -GSR --no-global-seedratio                All torrents, unless overridden by a
  107.                                            per-torrent setting, should seed
  108.                                            regardless of ratio
  109. -td  --tracker-add            <tracker>   Add a tracker to a torrent
  110. -tr  --tracker-remove         <trackerId> Remove a tracker from a torrent
  111. -s   --start                              Start the current torrent(s)
  112. -S   --stop                               Stop the current torrent(s)
  113. -t   --torrent                <torrent>   Set the current torrent(s)
  114.       --start-paused                       Start added torrents paused
  115.       --no-start-paused                    Start added torrents unpaused
  116.       --trash-torrent                      Delete torrents after adding
  117.       --no-trash-torrent                   Do not delete torrents after adding
  118. -hl  --honor-session                      Make the current torrent(s) honor the
  119.                                            session limits
  120. -HL  --no-honor-session                   Make the current torrent(s) not honor
  121.                                            the session limits
  122. -u   --uplimit                <speed>     Set the max upload speed in kB/s for
  123.                                            the current torrent(s) or globally
  124. -U   --no-uplimit                         Disable max upload speed for the
  125.                                            current torrent(s) or globally
  126.       --utp                                Enable uTP for peer connections
  127.       --no-utp                             Disable uTP for peer connections
  128. -v   --verify                             Verify the current torrent(s)
  129. -V   --version                            Show version number and exit
  130. -w   --download-dir           <path>      When used in conjunction with --add,
  131.                                            set the new torrent's download
  132.                                            folder. Otherwise, set the default
  133.                                            download folder
  134. -x   --pex                                Enable peer exchange (PEX)
  135. -X   --no-pex                             Disable peer exchange (PEX)
  136. -y   --lpd                                Enable local peer discovery (LPD)
  137. -Y   --no-lpd                             Disable local peer discovery (LPD)
  138. -pi  --peer-info                          List the current torrent(s)' peers
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-29 16:10 | 显示全部楼层
"cache-size-mb": 8,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-7-29 16:15 | 显示全部楼层
谢谢2楼,我想知道的是 名两行启动时的参数,比如-u是用户名-v是密码。
就是没发现什么是设置缓存的。

-d   --dump-settings                    Dump the settings and exit
谁知上面这个参数 是什么意思?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-29 18:51 | 显示全部楼层
  1. transmission-daemon --help
复制代码
就列出了,没有设置缓存的选项,你可以通过配置文件设置,或者用transmission-remote改
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 09:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表