RedHat上Wu-ftp连接速度慢的解决办法

前年Michael公司的WEB服务器进行了一次平台移植,原来使用的SUN的Solaris,其实Michael感觉真的还是商业的东西好些,拿Solaris和Linux来说吧,Solaris在内存处理上就比RedHat要优秀很多,很多朋友应该都有发现,RedHat运行一段时间过后,内存总是越占用越多,自己不会很好的释放死进程,这一点感觉有点象windows,(好像据说Linux的策略是先占用尽可能多能使用的资源,等有新资源请求的时候再进行清理)呵呵,但是Solaris就感觉不同了,Michael公司以前使用的Solaris做web服务器平台,就512M内存,平时就算很大访问量系统也一直可以保持200M以上的空余内存!

这次安装了RedHat后,不但内存增加到了2G,连CPU也多了一个,呵呵,说真的,性能没有太多提高!不过为了别的一些业务考虑,同时从成本上来说,RedHat的确是个不错的选择,Michael一直也比较喜欢,只不过这次安装后Michael发现Wu-Ftp远程连接特别的慢,以前自己使用其实也发现了,没有太多注意,但这次要给公司其他同事使用,这样肯定会有很多抱怨,以前solaris的时候就特别的快。

查看了相关文档后,Michael发现有的朋友说是反向域名解析得问题,可是不论我怎么设置主机名字解析,还是不好使,我认同一个朋友的说法,认为ftp连接的是ip,跟反向域名解析关系不大,从Wu-Ftp官方上的文章可以得知:

  出现ftp连接过慢的原因是wu-ftp有RFC931认证查询的过程,一般有10秒的延时,如果要连接的机器在防火墙后面,且113端口屏蔽的话(RFC931认证通过113端口),会导致连接将近30秒,甚至更长。官方提供的解决办法是:

  编辑 /etc/xinetd.d/wu-ftp,将

  log_on_success += DURATION USERID
  log_on_failure += USERID

  两行删掉或者注释掉,重新启动xinetd服务(/etc/init.d/xinetd)!

呵呵,再试试看,怎么样,速度保证不超过3秒!

不明白,为什么默认设置不把它给先设置好了!一般朋友哪知道这些东东呀!

小经验,大家分享一下,如果不正确,欢迎指教!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
No Responses
  1. Hi! Do you know if they make any plugins to help with Search Engine
    Optimization? I’m trying to get my blog to rank
    for some targeted keywords but I’m not seeing very good results.

    If you know of any please share. Appreciate it! https://t.frtyj.com/ap7woqiry8?aff_id=80306&offer_id=4025&bo=2745,2746,2748,2749,2750

  2. Heya i am for the first time here. I found this board and
    I find It really helpful & it helped me out a lot. I’m hoping to
    present one thing again and aid others such as you helped me.

  3. It’s not my first time to pay a quick visit this web site, i am visiting this web site dailly and take fastidious data from here every day.

  4. My brother suggested I might like this website. He was totally right.
    This post truly made my day. You can not imagine just how much time I had spent for this info!
    Thanks!

  5. I would like to thank you for the efforts you have put in writing this website.
    I really hope to view the same high-grade content by you in the future as well.
    In truth, your creative writing abilities has inspired me to
    get my very own site now 😉

  6. Hi, I check your blog like every week. Your story-telling style is witty,
    keep up the good work!

  7. quest bars says:

    Hello! I know this is somewhat off topic but I was wondering
    if you knew where I could get a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m
    having trouble finding one? Thanks a lot!

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image