|

楼主 |
发表于 2005-12-10 13:35:54
|
显示全部楼层
Building an efficient edonkey server on linux/FreeBSD/Win32
引用自: http://lugdunum2k.free.fr/kiten.html
How to download and install it :
$ wget ftp://ftp.aubi.de/pub/edonkey/eserver-17.7.i686-linux.gz
$ wget -O ipfilter.srv ftp://ftp.aubi.de/pub/edonkey/ipfilter.srv
$ gzip -d eserver-17.7.i686-linux.gz
$ chmod 755 eserver-17.7.i686-linux
$ rm -f eserver
$ ln -s eserver-17.7.i686-linux eserver
Options :
Please keep in mind that if you use ipfilter.dat, you should take care of frequent updates of this file.
$ wget -N http://emulepawcio.sourceforge.net/nieuwe_site/Ipfilter_fakes/ipfilter.dat
$ wget -N http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip
$ unzip ip-to-country.csv.zip
The eserver needs a configuration file, called donkey.ini, that should be located in the current directory.
This configuration file is compatible with the original dserver, take a look at the MetaMachine page
The bare minimum donkey.ini file should contains :
[server]
name=my server name
desc=the desc of my server
thisIP=81.12.34.56 # The IP of my server
port=4232 # the TCP port (default is 4661, but it is wise to choose another value)
To run the eserver, I highly suggest to use the screen command, because the eserver has a text console, where commands may be entered.
The server cannot run as a service (daemon).
To let it restarts automatically in case of a failure, I also suggest to use a shell script like this one :
# script.sh file
ulimit -n 100000
while :
do
./eserver
sleep 1
done
When the script.sh file is ready, just do a "chmod +x script.sh" once to make it executable.
Then to start the eserver :
screen -d -m ./script.sh
To take control of it, type :
screen -r |
|