在idc机房大规模分发kvm qcow2虚机镜像文件的时候,如果采用BT的方式,速度将是异常的快啊。




rpm -Uvh  
yum install transmission-daemon transmission-cli  


mkdir -p /var/lib/transmission/.config/transmission  
vi /var/lib/transmission/.config/transmission/settings.json  


    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/data/film",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/data/film/Torrent",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "",
    "rpc-enabled": true,
    "rpc-password": "xxxxxxxx",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "admin",
    "rpc-whitelist": ",,,,",
    "rpc-whitelist-enabled": true,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true

注意几个地方, 密码、端口、用户、把自己机器的ip加入白名单

"rpc-password": "xxxxxxxx",
"rpc-port": 9091,
"rpc-username": "admin",
"rpc-whitelist": ",,,,",
"rpc-whitelist-enabled": true,



wget wget  
unzip -x master -d /usr/share/transmission/  
mv /usr/share/transmission/web  /usr/share/transmission/web-bak  
mv /usr/share/transmission/kettu-master /usr/share/transmission/web  


service transmission-daemon start  


ok, transmission就完工了。



yum install aria2.x86_64  
mkdir /etc/aria2  
touch /etc/aria2/aria2.conf  
touch /etc/aria2/session.lock  
touch /var/log/aria2.log &&chown nobody:nobody /var/log/aria2.log  
chown nobody:nobody /etc/aria2 -R  


aria2c --version  
aria2 version 1.16.4  


  • 密码验证(1.15.2以上,1.18.6以下版本)
  • token验证(1.18.4以上版本)


vi /etc/aria2/aria2.conf  
#用以下命令生成token,openssl rand -hex 15



/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf --log=/var/log/aria2.log


wget -O &&unzip -d /home/www/ &&mv /home/www/webui-aria2-master /home/www/webui-aria2 &&chown nobody:nobody /home/www/webui-aria2 -R  
vi /home/www/webui-aria2/configuration.js  


.module('',  [])
.constant('$name', 'Aria2 WebUI')  // name used across the entire UI
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
.constant('$pageSize', 11)         // number of downloads shown before pagination kicks in
.constant('$authconf', {           // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
  host: '',
  path: '/jsonrpc',
  port: 6800,
  encrypt: false,
  auth: {                          // either add the token field or the user and pass field, not both.
  /* token: '616d343b1465b51ca65675b2bfef98' */
  user: 'admin',
  pass: 'xxxxxxxx'
  directURL: ''                   // If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured
.constant('$enable', {

  torrent: true,  // bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanently disable it

  metalink: true, // metalink support only enabled if supported by aria2 build, set to false to permanently disable it

  sidebar: {            // configuration related to the sidebar next to the list of downloads
    show: true,         // set to false to completely hide the sidebar. Other elements inside will be automatically hidden

    stats: true,        // set to false to hide the global statistic section (contains the speed graph for now)

    filters: true,      // set to false to hide the  Download Filters

    starredProps: true // only shown when at least one property is added to the starred list, set to false to permanently hide the Quick Access Settings inside the sidebar
.constant('$starredProps', [   // default list of Quick Access Properties. Can be overridden by making modification through the Global Settings dialog
  // go to Global Settings dialog to see their description
  'dir', 'conf-path', 'auto-file-renaming', 'max-connection-per-server'
.constant('$downloadProps', [ // Similar to starred Quick Access properties but for adding new downloads.
  // go to Advance Download Options when adding a new download to view the list of possible options
  'http-user', 'http-passwd', 'pause', 'dir', 'max-connection-per-server'
.constant('$globalTimeout', 1000)  // interval to update the individual downloads


vi /usr/local/bin/aria2-webui  


#!/usr/bin/env python

import os  
import posixpath  
import urllib  
import BaseHTTPServer  
from SimpleHTTPServer import SimpleHTTPRequestHandler

# modify this to add additional routes
ROUTES = (  
##  [url_prefix ,  directory_path]
    ['',       '/home/www/webui-aria2'],  # empty string for the 'default' match
#   ['/media', '/var/www/media']

class RequestHandler(SimpleHTTPRequestHandler):

    def translate_path(self, path):
        """translate path given routes"""

        # set default root to cwd
        root = os.getcwd()

        # look up routes and set root directory accordingly
        for pattern, rootdir in ROUTES:
            if path.startswith(pattern):
                # found match!
                path = path[len(pattern):]  # consume path up to pattern len
                root = rootdir

        # normalize path and prepend root directory
        path = path.split('?',1)[0]
        path = path.split('#',1)[0]
        path = posixpath.normpath(urllib.unquote(path))
        words = path.split('/')
        words = filter(None, words)

        path = root
        for word in words:
            drive, word = os.path.splitdrive(word)
            head, word = os.path.split(word)
            if word in (os.curdir, os.pardir):
            path = os.path.join(path, word)

        return path

if __name__ == '__main__':  
    BaseHTTPServer.test(RequestHandler, BaseHTTPServer.HTTPServer)
chmod 755 /usr/local/bin/aria2-webui  


nohup /usr/local/bin/aria-webui >/dev/null &  



未经允许不得转载:喵喵爱 » aria2和transmission采用BT的方式,下载速度将是爆表!爆表!爆表!——喵喵爱学习

赞 (0)

评论 68

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. JimmiNuqi0V1E http://www.FyLitCl7Pf7ojQdDUOLQOuaxTXbj5iNG.com回复
  2. Judii3tkLy https://www.genericpharmacydrug.com回复
  3. BillyTuhwh0cd128656 buy prozac回复
  4. Charleserymnwh0cd128656 Albendazole回复
  5. KennethBumwh0cd128656 tenormin without prescription回复
  6. furtdso linopvAw, this was a very nice post. In thought I would like to put in writing like this additionally – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and under no circumstances seem to get one thing done.回复
  7. KennethBumwh0cd128656 buy augmentin回复
  8. StewartHaivewh0cd128656 viagraonlineusa回复
  9. Brettvarwh0cd128656 buy viagra online回复
  10. AaronGuaniwh0cd128656 Cafergot Online回复
  11. AlfredDumwh0cd128656 allopurinol回复
  12. Bennyfluoxwh0cd128656 buy aciclovir回复
  13. AaronGuaniwh0cd128656 vermox回复
  14. AlfredDumwh0cd128656 40 mg prozac回复
  15. AaronGuaniwh0cd128656 Allopurinol回复
  16. AaronGuaniwh0cd128656 find out more回复
  17. AlfredDumwh0cd128656 Buy Fluoxetine回复
  18. Brettvarwh0cd128656 generic atenolol回复
  19. AaronGuaniwh0cd128656 Medrol回复
  20. AaronGuaniwh0cd128656 buy proscar回复
  21. AaronGuaniwh0cd128656 abilify回复
  22. AlfredDumwh0cd128656 buy viagra soft回复
  23. Bennyfluoxwh0cd128656 clonidine回复
  24. Bennyfluoxwh0cd128656 propecia回复
  25. AaronGuaniwh0cd128656 buy viagra soft回复
  26. Bennyfluoxwh0cd128656 ALBUTEROL回复
  27. BillyTuhwh0cd128656 allopurinol 300 mg tablets回复
  28. Brettvarwh0cd128656 price of abilify回复
  29. Brettvarwh0cd128656 Buy Vermox回复
  30. Bennyfluoxwh0cd128656 Amoxicillin Prices回复
  31. Bennyfluoxwh0cd128656 lisinopril回复
  32. AaronGuaniwh0cd128656 albuterol回复
  33. furtdsolinopvI very delighted to find this web site on bing, just what I was searching for : D likewise saved to my bookmarks.回复
  34. AaronGuaniwh0cd128656 cheapest arimidex回复
  35. AaronGuaniwh0cd128656 Buy Abilify回复
  36. KennethBumwh0cd128656 hydrochlorothiazide回复
  37. AaronGuaniwh0cd128656 allopurinol回复
  38. BillyTuhwh0cd128656 Generic Atenolol回复
  39. Brettvarwh0cd128656 celebrex for sale回复
  40. Brettvarwh0cd128656 where can i buy accutane回复
  41. AaronGuaniwh0cd128656 vermox online回复
  42. KennethBumwh0cd128656 azithromycin antibiotics回复
  43. AlfredDumwh0cd128656 Nexium Online回复
  44. Bennyfluoxwh0cd128656 albendazole回复
  45. BillyTuhwh0cd128656 torsemide 10 mg回复
  46. Brettvarwh0cd128656 tadalafil回复
  47. Brettvarwh0cd128656 ALBUTEROL INHALERS回复
  48. AaronGuaniwh0cd128656 buy ciprofloraxin online回复
  49. Charleserymnwh0cd128656 amoxicillin tablets回复
  50. AaronGuaniwh0cd128656 buy abilify回复
  51. AaronGuaniwh0cd128656 acyclovir 800mg回复
  52. BillyTuhwh0cd128656 cheap atarax回复
  53. AaronGuaniwh0cd128656 tadalis pharmacy回复
  54. Brettvarwh0cd128656 ALBUTEROL回复
  55. Brettvarwh0cd128656 wellbutrin cost回复
  56. KennethBumwh0cd128656 cheap tenormin回复
  57. AaronGuaniwh0cd128656 price of wellbutrin回复
  58. Bennyfluoxwh0cd128656 generic avodart回复
  59. AaronGuaniwh0cd128656 buy sildalis回复
  60. AaronGuaniwh0cd128656 tadalis回复
  61. BillyTuhwh0cd128656 DIFLUCAN PILLS回复
  62. StewartHaivewh0cd128656 tadalafil回复
  63. Brettvarwh0cd128656 Furosemide回复
  64. Brettvarwh0cd128656 suhagra online回复
  65. AaronGuaniwh0cd128656 Torsemide回复