LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 920|回复: 2

[求助]如何以debian方式做bt和emule服务器?

[复制链接]
发表于 2005-12-10 11:03:53 | 显示全部楼层 |阅读模式
apt-get install xxxx

可以用debian的官方软件包,安装 bt 和 emule 服务器软件吗?

做过的xd能否详细介绍一下?谢谢了~~~~~~
发表于 2005-12-10 11:23:42 | 显示全部楼层
Building an efficient edonkey server on linux/FreeBSD/Win32

http://lugdunum2k.free.fr/kiten.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表