amulecmd是aMule的命令行操作与管理程序。首先,为了拥有amuled 与 amulecmd 两个可执行文件,要在编译的时候指定:
# ./configure --enable-amulecmd --enable-amule-daemon
必须把一个用md5加密过的密码写在配置文件中,实际上本地执行amulecmd的时候不需要密码验证,但如果amulecmd问密码,那么一定是没有设置。
# echo -n "password" | md5sum
填上 ~/.aMule/amule.conf 中的下面两行:
AcceptExternalConnections=1
ECPassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
产生remote.conf文件:
# amulecmd --create-config-from=~/.aMule/amule.conf
运行守护进程:
# amuled -f
运行管理程序:
# amulecmd
This is amulecmd SVN Sun Apr 27 07:01:42 CEST 2008
Creating client...
Succeeded! Connection established to aMule SVN
---------------------------------------
| aMule text client |
---------------------------------------
Use 'Help' for command list
aMulecmd$
出现了提示符aMulecmd$ ,下面添加服务器:
aMulecmd$ add ed2k://|server|85.17.52.124|5000|
> Operation was successful.
aMulecmd$ add ed2k://|server|85.17.52.92|5000|
> Operation was successful.
连接:
aMulecmd$ connect
> Connecting to ED2K...
> Connecting to Kad...
查看状态:
aMulecmd$ status
> ED2K: Connected to 85.17.52.124 [85.17.52.124:5000] with HighID
> Kad: Not connected
> Download: 0 bytes/sec
> Upload: 13 bytes/sec
> Clients in queue: 0
> Total sources: 0
已经连接成功。可以象添加服务器那样用add来添加ed2k文件了。
查看下载情况: aMulecmd$ show dl
查看上传情况: aMulecmd$ show ul
查看服务器:aMulecmd$ show servers
限置上传带宽:aMulecmd$ set bwlimit up 30
source:
http://blogold.chinaunix.net/u1/43271/showart_679546.html