1.首先要启动一次amuled这个程序,程序会自动生成配置文件
2020-01-22 05:21:29: Initialising aMuleD 2.3.1 compiled with wxGTK2 v2.8.12
2020-01-22 05:21:29: Checking if there is an instance already running...
2020-01-22 05:21:29: No other instances are running.
!2020-01-22 05:21:29: ERROR: WARNING Warning! You are running aMule as root.
!2020-01-22 05:21:29: Doing so is not recommended for security reasons,
!2020-01-22 05:21:29: and you are advised to run aMule as an normal
!2020-01-22 05:21:29: user instead.
--------------------------------------------------
Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
--------------------------------------------------
!2020-01-22 05:21:29: ERROR: Info --- This is the first time you run aMule 2.3.1 ---
!2020-01-22 05:21:29: More information, support and new releases can found at our homepage,
!2020-01-22 05:21:29: at www.aMule.org, or in our IRC channel #aMule at irc.freenode.net.
!2020-01-22 05:21:29: Feel free to report any bugs to http://forum.amule.org
2020-01-22 05:21:29: ListenSocket: Ok.
2020-01-22 05:21:29: Loading temp files from /root/.aMule/Temp.
2020-01-22 05:21:29: All PartFiles Loaded.
2020-01-22 05:21:29: amuled: OnInit - starting timer
!2020-01-22 05:21:29: ERROR: aMule daemon cannot be used when external connections are disabled. To enable External Connections, use either a normal aMule, start amuled with the option --ec-config or set the key "AcceptExternalConnections" to 1 in the file ~/.aMule/amule.conf
2020-01-22 05:21:29: Now, exiting main app...
2020-01-22 05:21:29: aMule OnExit: Terminating core.
2020-01-22 05:21:29: aMule shutdown completed.
2.修改WEB访问控制部分
- 生成访问密码
echo -n 这里替换成你想要的密码 | md5sum | awk '{print $1}'
- 修改配置文件
vim ~/.aMule/amule.conf
- (建议)修改文件存储路径
TempDir=/root/.aMule/Temp
IncomingDir=/root/.aMule/Incoming
建议修改为
TempDir=/root/aMule/Temp
IncomingDir=/root/aMule/Incoming
- (建议)新建文件夹
mkdir -p /root/aMule/Temp
mkdir -p /root/aMule/Incoming
- 修改连接设置
AcceptExternalConnections=0
修改为
AcceptExternalConnections=1
- 修改WEB访问密码
[WebServer]
Enabled=0
Password= [填写您生成的密码字符串]
- (建议)修改GUI客户端访问控制密码
ECPassword= [填写您生成的密码字符串]
- 修改完毕,保存退出
3.(推荐)使用Screen运行程序
- 安装screen
yum install screen -y
- 生成一个窗口进程
screen -S amule
- 执行amuled 进程
amuled
出现如下信息证明程序启动完成
2020-01-22 05:51:58: Initialising aMuleD 2.3.1 compiled with wxGTK2 v2.8.12
2020-01-22 05:51:58: Checking if there is an instance already running...
2020-01-22 05:51:58: No other instances are running.
2020-01-22 05:51:58: ERROR: WARNING Warning! You are running aMule as root.
2020-01-22 05:51:58: Doing so is not recommended for security reasons,
2020-01-22 05:51:58: and you are advised to run aMule as an normal
2020-01-22 05:51:58: user instead.
Warning! You are running aMule as root.
Doing so is not
recommended for security reasons,and you are
advised to run aMule as an normal user instead.
2020-01-22 05:51:58: ListenSocket: Ok.
2020-01-22 05:51:58: Loading temp files from /root/aMule/Temp.
2020-01-22 05:51:58: All PartFiles Loaded.
2020-01-22 05:51:58: amuled: OnInit - starting timer
- 退回首层屏幕
Ctrl + a + d