LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]vsftpd无法启动

[复制链接]
发表于 2006-3-15 11:30:50 | 显示全部楼层 |阅读模式
/etc/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. # Listen on IPv4. xinet users must set NO or comment out
  12. # otherwise it must be set YES
  13. listen=YES
  14. #Listen_port=21
  15. #
  16. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  17. anonymous_enable=YES
  18. #
  19. # Uncomment this to allow local users to log in.
  20. #local_enable=YES
  21. #
  22. # Uncomment this to enable any form of FTP write command.
  23. #write_enable=YES
  24. #
  25. # Default umask for local users is 077. You may wish to change this to 022,
  26. # if your users expect that (022 is used by most other ftpd's)
  27. local_umask=022
  28. #
  29. # Uncomment this to allow the anonymous FTP user to upload files. This only
  30. # has an effect if the above global write enable is activated. Also, you will
  31. # obviously need to create a directory writable by the FTP user.
  32. anon_upload_enable=NO
  33. #
  34. # Uncomment this if you want the anonymous FTP user to be able to create
  35. # new directories.
  36. anon_mkdir_write_enable=NO
  37. #
  38. # Activate directory messages - messages given to remote users when they
  39. # go into a certain directory.
  40. dirmessage_enable=YES
  41. #
  42. # Activate logging of uploads/downloads.
  43. xferlog_enable=YES
  44. #
  45. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  46. connect_from_port_20=YES
  47. #
  48. # If you want, you can arrange for uploaded anonymous files to be owned by
  49. # a different user. Note! Using "root" for uploaded files is not
  50. # recommended!
  51. #chown_uploads=YES
  52. #chown_username=whoever
  53. #
  54. # You may override where the log file goes if you like. The default is shown
  55. # below.
  56. xferlog_file=/var/log/vsftpd.log
  57. #
  58. # If you want, you can have your log file in standard ftpd xferlog format
  59. #xferlog_std_format=YES
  60. #
  61. # You may change the default value for timing out an idle session.
  62. idle_session_timeout=600
  63. #
  64. # You may change the default value for timing out a data connection.
  65. data_connection_timeout=120

  66. Accept_timeout=60
  67. Connect_timeout=60

  68. #bit 500000=500K
  69. Local_max_rate=500000
  70. Anon_max_rate=500000

  71. Max_clients=200
  72. Max_per_ip=10
  73. #
  74. # It is recommended that you define on your system a unique user which the
  75. # ftp server can use as a totally isolated and unprivileged user.
  76. #nopriv_user=ftpsecure
  77. #
  78. # Enable this and the server will recognise asynchronous ABOR requests. Not
  79. # recommended for security (the code is non-trivial). Not enabling it,
  80. # however, may confuse older FTP clients.
  81. #async_abor_enable=YES
  82. #
  83. # By default the server will pretend to allow ASCII mode but in fact ignore
  84. # the request. Turn on the below options to have the server actually do ASCII
  85. # mangling on files when in ASCII mode.
  86. # Beware that on some FTP servers, ASCII support allows a denial of service
  87. # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
  88. # predicted this attack and has always been safe, reporting the size of the
  89. # raw file.
  90. # ASCII mangling is a horrible feature of the protocol.
  91. #ascii_upload_enable=YES
  92. #ascii_download_enable=YES
  93. #
  94. # You may fully customise the login banner string:
  95. #ftpd_banner=Welcome to GuanAnJiYe FTP service.
  96. #
  97. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  98. # useful for combatting certain DoS attacks.
  99. #deny_email_enable=YES
  100. # (default follows)
  101. #banned_email_file=/etc/vsftpd/banned_emails
  102. #
  103. # You may specify an explicit list of local users to chroot() to their home
  104. # directory. If chroot_local_user is YES, then this list becomes a list of
  105. # users to NOT chroot().
  106. chroot_list_enable=YES
  107. # (default follows)
  108. #chroot_list_file=/etc/vsftpd/chroot_list
  109. #
  110. # You may activate the "-R" option to the builtin ls. This is disabled by
  111. # default to avoid remote users being able to cause excessive I/O on large
  112. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  113. # the presence of the "-R" option, so there is a strong case for enabling it.
  114. ls_recurse_enable=NO

  115. pam_sevice_name=vsftpd
  116. userlist_enable=YES
  117. tcp_wrappers=YES
  118. listen_address=192.168.2.100
复制代码
 楼主| 发表于 2006-3-15 21:29:45 | 显示全部楼层
变量名称需要小写
回复 支持 反对

使用道具 举报

发表于 2006-3-15 22:01:27 | 显示全部楼层
不太明白。我照你的去作了。还是驱动不了。
启动的时候显示:Starting FTP server: vsftpd.
我执行/etc/init.d/vsftpd restart
显示:Restarting FTP server: vsftpdNo /usr/sbin/vsftpd found running; none killed.
.

总之就是访问不了。何解?
我的vsftpd表除了最后的IP一样,其他都一样的。
之前我默认的也不行。
清帮忙。
debian系统。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-16 09:24:34 | 显示全部楼层
我分别安装了2.0.3和2.0.4版本。两个版本对配置要求不一样。我从init启动时没有给出有用的信息。所以我从命令行启动vsftpd,通过其错误信息逐步改正配置文件。
回复 支持 反对

使用道具 举报

发表于 2006-3-16 11:32:56 | 显示全部楼层
看看日志,也许能够找到有用的信息!
回复 支持 反对

使用道具 举报

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

本版积分规则

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