Skip to content

Instantly share code, notes, and snippets.

@wen-long
Last active March 20, 2016 17:33
Show Gist options
  • Save wen-long/81b457f19b5c9f04333f to your computer and use it in GitHub Desktop.
Save wen-long/81b457f19b5c9f04333f to your computer and use it in GitHub Desktop.
在 /Library/LaunchDaemons 下 创建 homebrew.mxcl.aria2.plist ,然后 chmod 600 文件名 chown root 文件名
continue=true
file-allocation=none
#daemon=true
disable-ipv6
user-agent=netdisk;4.4.0.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia uTorrent/2210(25130)
enable-http-pipelining=true
event-poll=select
check-certificate=false
min-split-size=1M
enable-dht
enable-dht6=false
enable-peer-exchange
bt-enable-lpd
bt-seed-unverified
bt-save-metadata
bt-hash-check-seed
bt-remove-unselected-file
bt-stop-timeout=900
seed-ratio=0.0
save-session-interval=60
input-file=/Volumes/D/下载/.aria2.list
save-session=/Volumes/D/下载/.aria2.list
dir=/Volumes/D/下载
max-connection-per-server=16
max-concurrent-downloads=3
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
disk-cache=50M
rpc-user=wenlong
rpc-passwd=wenlong
log=/tmp/aria2.log
log-level=debug
connect-timeout=600
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.aria2</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/aria2c</string>
<string>--conf-path=/Users/wenlong/aria2.conf</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment