Skip to content

Instantly share code, notes, and snippets.

@countrymarmot
Created May 10, 2014 15:04
Show Gist options
  • Save countrymarmot/23854b3967d4ce0d4b87 to your computer and use it in GitHub Desktop.
Save countrymarmot/23854b3967d4ce0d4b87 to your computer and use it in GitHub Desktop.
console-log-level=info
#开启RPC 远程访问
enable-rpc=true
#rpc-listen-port=16800
rpc-listen-all=true
rpc-allow-origin-all=true
rpc-passwd=i-am-http-auth-password
rpc-user=i-am-http-auth-user
event-poll=epoll
log=/var/aria2/logs
disable-ipv6=true
###下载相关
#user agent
user-agent=Mozilla/5.0 (Windows NT 6.2; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
#最大同时下载数(任务数), 路由建议值: 3
max-concurrent-downloads=10
#断点续传
continue=true
#同服务器连接数
max-connection-per-server=99
#最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
min-split-size=1M
#单文件最大线程数, 路由建议值: 5
split=99
#下载速度限制
max-overall-download-limit=0
#单文件速度限制
max-download-limit=0
#上传速度限制
max-overall-upload-limit=0
#单文件速度限制
max-upload-limit=0
#断开速度过慢的连接
#lowest-speed-limit=0
###进度保存相关,
#Ctrl-C 退出时才自动保存. 不会自动创建文件, 需要 `touch`
input-file=/var/aria2/download.session
save-session=/var/aria2/download.session
#定时保存会话,需要1.16.1之后的release版
save-session-interval=10
###磁盘相关
#文件保存路径, 默认为当前启动位置
dir=/media/qibo/storage/
#文件缓存, 使用内置的文件缓存, 如果你不相信Linux内核文件缓存和磁盘内置缓存时使用, 需要1.16及以上版本
#disk-cache=0
#另一种Linux文件缓存方式, 使用前确保您使用的内核支持此选项, 需要1.15及以上版本(?)
#enable-mmap=true
#文件预分配, 能有效降低文件碎片, 提高磁盘性能. 缺点是预分配时间较长
#所需时间 none < falloc ? trunc << prealloc, falloc和trunc需要文件系统和内核支持
file-allocation=prealloc
###BT相关
#启用本地节点查找
bt-enable-lpd=true
#添加额外的tracker
#bt-tracker=<URI>,…
#单种子最大连接数
#bt-max-peers=55
#强制加密, 防迅雷必备
#bt-require-crypto=true
#当下载的文件是一个种子(以.torrent结尾)时, 自动下载BT
follow-torrent=true
#BT监听端口, 当端口屏蔽时使用
#listen-port=6881-6999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment