Tuesday, October 7, 2008

How to solve the slow speed for wu-ftpd on debian


Summary:
when I install wu-ftpd on debian , I discover that the speed is so slow that I decide to solve the
problem, the process is as belows.
embeded001-clp:/#apt-get install wu-ftpd

embeded001-clp:/#ftp 192.168.x.x


Connect to 192.168.x.x.

waiting for more than 4 seconds, the login interface appears , so bad a thing......

embeded001-clp:/#vi /etc/hosts

127.0.0.1 localhost.localdomain localhost kcn-mw

add the below line:

192.168.x.x localhost.localdomain localhost embeded001-clp

ok, you will feel the difference.

in fact , due to the security for ftp server, the ftpd should Rarp the dns for the client ip address.

if the ftp server could not RARP the dns for the client in time, it will appears slow.

another solving method:

ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.2.tar.gz

embeded001-clp:/#gzip -d wu-ftpd-2.6.2.tar.gz

embeded001-clp:/#tar xf wu-ftpd-2.6.1.tar

embeded001-clp:/#./config --disable-dns --disable-dnsretry

embeded001-clp:/#make

embeded001-clp:/#make install


OK, that 's all

No comments: