免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3589 | 回复: 6
打印 上一主题 下一主题

[FTP] vsftpd上传大量的小文件会死掉 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-10 18:51 |只看该作者 |倒序浏览
vsftpd上传大量的小文件会死掉
真不知道如何设置才好
以下是我的vsftpd.conf


  1. # Example config file /etc/vsftpd/vsftpd.conf
  2. #
  3. # The default compiled in settings are fairly paranoid. This sample file
  4. # loosens things up a bit, to make the ftp daemon more usable.
  5. # Please see vsftpd.conf.5 for all compiled in defaults.
  6. #
  7. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  8. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  9. # capabilities.
  10. #
  11. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  12. #anonymous_enable=NO
  13. #
  14. # Uncomment this to allow local users to log in.
  15. local_enable=YES
  16. #
  17. # Uncomment this to enable any form of FTP write command.
  18. write_enable=YES
  19. #
  20. # Default umask for local users is 077. You may wish to change this to 022,
  21. # if your users expect that (022 is used by most other ftpd's)
  22. local_umask=022
  23. #
  24. # Uncomment this to allow the anonymous FTP user to upload files. This only
  25. # has an effect if the above global write enable is activated. Also, you will
  26. # obviously need to create a directory writable by the FTP user.
  27. #anon_upload_enable=YES
  28. #
  29. # Uncomment this if you want the anonymous FTP user to be able to create
  30. # new directories.
  31. #anon_mkdir_write_enable=YES
  32. #
  33. # Activate directory messages - messages given to remote users when they
  34. # go into a certain directory.
  35. dirmessage_enable=YES
  36. #
  37. # Activate logging of uploads/downloads.
  38. xferlog_enable=YES
  39. #
  40. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  41. connect_from_port_20=YES
  42. ftp_data_port=20
  43. #
  44. # If you want, you can arrange for uploaded anonymous files to be owned by
  45. # a different user. Note! Using "root" for uploaded files is not
  46. # recommended!
  47. #chown_uploads=YES
  48. #chown_username=whoever
  49. #
  50. # You may override where the log file goes if you like. The default is shown
  51. # below.
  52. xferlog_file=/var/log/vsftpd.log
  53. #
  54. # If you want, you can have your log file in standard ftpd xferlog format
  55. xferlog_std_format=YES
  56. #
  57. # You may change the default value for timing out an idle session.
  58. idle_session_timeout=60
  59. #
  60. # You may change the default value for timing out a data connection.
  61. data_connection_timeout=10
  62. accept_timeout=60
  63. connect_timeout=60
  64. #
  65. # It is recommended that you define on your system a unique user which the
  66. # ftp server can use as a totally isolated and unprivileged user.
  67. #priv_user=anonymous
  68. #
  69. # Enable this and the server will recognise asynchronous ABOR requests. Not
  70. # recommended for security (the code is non-trivial). Not enabling it,
  71. # however, may confuse older FTP clients.
  72. #async_abor_enable=YES
  73. #
  74. # By default the server will pretend to allow ASCII mode but in fact ignore
  75. # the request. Turn on the below options to have the server actually do ASCII
  76. # mangling on files when in ASCII mode.
  77. # Beware that turning on ascii_download_enable enables malicious remote parties
  78. # to consume your I/O resources, by issuing the command "SIZE /big/file" in
  79. # ASCII mode.
  80. # These ASCII options are split into upload and download because you may wish
  81. # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
  82. # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
  83. # on the client anyway..
  84. ascii_upload_enable=YES
  85. ascii_download_enable=YES
  86. #
  87. # You may fully customise the login banner string:
  88. ftpd_banner=Welcome to 21deke.com FTP service.
  89. #
  90. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  91. # useful for combatting certain DoS attacks.
  92. #deny_email_enable=YES
  93. # (default follows)
  94. #banned_email_file=/etc/vsftpd.banned_emails
  95. #
  96. # You may specify an explicit list of local users to chroot() to their home
  97. # directory. If chroot_local_user is YES, then this list becomes a list of
  98. # users to NOT chroot().
  99. chroot_list_enable=YES
  100. chroot_local_user=YES
  101. # (default follows)
  102. #chroot_list_file=/etc/vsftpd.chroot_list
  103. #
  104. # You may activate the "-R" option to the builtin ls. This is disabled by
  105. # default to avoid remote users being able to cause excessive I/O on large
  106. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  107. # the presence of the "-R" option, so there is a strong case for enabling it.
  108. #ls_recurse_enable=YES

  109. #one_process_model=YES
  110. local_max_rate=800000
  111. #pasv_max_port=0
  112. #pasv_min_port=0
  113. #pasv_enable=YES
  114. max_clients=1000
  115. max_per_ip=1000
  116. pam_service_name=vsftpd
  117. userlist_enable=YES
  118. userlist_deny=NO
  119. check_shell=NO
  120. #enable for standalone mode
  121. listen=YES
  122. tcp_wrappers=YES
复制代码

是fc5的

不知是什么原因呢??

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
2 [报告]
发表于 2006-08-11 16:16 |只看该作者
没仔细看你的问题,不过fc5还是有很多bug的

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2006-08-11 16:17 |只看该作者
估计系统问题.

我的freebsd上传的时候几十万的小文件都没有问题


个人建议:
1. 限制单个ip的连写数
2. 限制速度.

论坛徽章:
0
4 [报告]
发表于 2006-08-15 09:28 |只看该作者
我在本地重新配置一台vsftpd做的FTP服务器
conf是一样的
没出现过这种情况
但如果放在网络上面就不行了
我再拿我在香港的服务器
也做了一个用vsftpd的ftp服务器
也发生卡死的现像
我这到底是什么问题呢
我在服务那一边tcpdump发现
在卡死时
服务一直想和客户端建立连接
但好像是客户端没发应
奇怪的时
我在客户端也用Ethereal时
发现是服务端没和客户端建立连接
那样就可以说明是他们之间在某个时候都断开连接了
我查看一下我的路由
也没发现什么问题
真怪了

论坛徽章:
0
5 [报告]
发表于 2006-08-15 11:39 |只看该作者
我刚才再试了
我给vsftpd加上了ssl
还是会出现这种情况的
真怪了

论坛徽章:
0
6 [报告]
发表于 2006-09-02 16:24 |只看该作者
多日之后总算解决了问题
只要把
data_connection_timeout=xx
这个设成很少就行了

论坛徽章:
0
7 [报告]
发表于 2006-09-03 20:09 |只看该作者
呵呵,

应该算Bug吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP