VPS侦探论坛

 找回密码
 注册
查看: 8217|回复: 10

LNMP0.5 purtftpd 无法启动

[复制链接]
发表于 2010-11-30 18:56:50 | 显示全部楼层 |阅读模式

安装好后FTP无法启动!
重新安装了好几次还是一样!

  1. [root@li221-97 ~]# /root/pureftpd restart
  2. =========================================================================
  3. Pure-FTPd status Manager for LNMP V0.4  ,  Written by Licess
  4. =========================================================================
  5. LNMP is a tool to auto-compile & install Nginx MySQL PHP on Linux
  6. This script is a tool to Manage status of Pure-FTPd
  7. For more information please visit http://www.lnmp.org
  8. Usage: /root/pureftpd {start|stop|restart|status|who}
  9. =========================================================================
  10. Stopping Pure-FTPd...
  11. pure-ftpd: no process killed
  12. Starting Pure-FTPd...
  13. Running: /usr/local/pureftpd/sbin/pure-ftpd --daemonize -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L2000:8 -m4 -p20000:30000 -s -U133:022 -u100 -k99 -Z
  14. [root@li221-97 ~]# /root/pureftpd start
  15. =========================================================================
  16. Pure-FTPd status Manager for LNMP V0.4  ,  Written by Licess
  17. =========================================================================
  18. LNMP is a tool to auto-compile & install Nginx MySQL PHP on Linux
  19. This script is a tool to Manage status of Pure-FTPd
  20. For more information please visit http://www.lnmp.org
  21. Usage: /root/pureftpd {start|stop|restart|status|who}
  22. =========================================================================
  23. Starting Pure-FTPd...
  24. Running: /usr/local/pureftpd/sbin/pure-ftpd --daemonize -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L2000:8 -m4 -p20000:30000 -s -U133:022 -u100 -k99 -Z
  25. [root@li221-97 ~]#
复制代码


我的pureftpd-mysql.conf配置

  1. ############################################################################
  2. #                                                                          #
  3. # PureFTPd MySQL configuration file.                                       #
  4. # Generated by the installation wizard for the 'User manager for PureFTPd' #
  5. # See http://machiel.generaal.net for more info                            #
  6. # or read the README.MySQL for explanations of the syntax.                 #
  7. #                                                                          #
  8. ############################################################################
  9. # Optional : MySQL server name or IP. Don't define this for unix sockets.
  10. MYSQLServer     127.0.0.1
  11. # Optional : MySQL port. Don't define this if a local unix socket is used.
  12. # MYSQLPort       3306

  13. # Optional : define the location of mysql.sock if the server runs on this host.
  14. MYSQLSocket     /tmp/mysql.sock

  15. # Mandatory : user to bind the server as.
  16. MYSQLUser      ftp

  17. # Mandatory : user password. You must have a password.
  18. MYSQLPassword   tmppasswd

  19. # Mandatory : database to open.
  20. MYSQLDatabase  ftpusers

  21. # Mandatory : how passwords are stored
  22. # Valid values are : "cleartext", "crypt", "md5" and "password"
  23. # ("password" = MySQL password() function)
  24. # You can also use "any" to try "crypt", "md5" *and* "password"
  25. MYSQLCrypt      md5

  26. # In the following directives, parts of the strings are replaced at
  27. # run-time before performing queries :
  28. #
  29. # \L is replaced by the login of the user trying to authenticate.
  30. # \I is replaced by the IP address the user connected to.
  31. # \P is replaced by the port number the user connected to.
  32. # \R is replaced by the IP address the user connected from.
  33. # \D is replaced by the remote IP address, as a long decimal number.
  34. #
  35. # Very complex queries can be performed using these substitution strings,
  36. # especially for virtual hosting.

  37. # Query to execute in order to fetch the password
  38. MYSQLGetPW      SELECT Password FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

  39. # Query to execute in order to fetch the system user name or uid
  40. MYSQLGetUID     SELECT Uid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

  41. # Optional : default UID - if set this overrides MYSQLGetUID
  42. #MYSQLDefaultUID 1000

  43. # Query to execute in order to fetch the system user group or gid
  44. MYSQLGetGID     SELECT Gid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  45. # Optional : default GID - if set this overrides MYSQLGetGID
  46. #MYSQLDefaultGID 1000

  47. # Query to execute in order to fetch the home directory
  48. MYSQLGetDir     SELECT Dir FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  49. # Optional : query to get the maximal number of files
  50. # Pure-FTPd must have been compiled with virtual quotas support.
  51. # MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="\L"
  52. # Optional : query to get the maximal disk usage (virtual quotas)
  53. # The number should be in Megabytes.
  54. # Pure-FTPd must have been compiled with virtual quotas support.
  55. # MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="\L"

  56. # Optional : ratios. The server has to be compiled with ratio support.
  57. # MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="\L"
  58. # MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="\L"

  59. # Optional : bandwidth throttling.
  60. # The server has to be compiled with throttling support.
  61. # Values are in KB/s .
  62. MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  63. MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  64. # Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
  65. # 1) You know what you are doing.
  66. # 2) Real and virtual users match.
  67. # MySQLForceTildeExpansion 1

  68. # If you upgraded your tables to transactionnal tables (Gemini,
  69. # BerkeleyDB, Innobase...), you can enable SQL transactions to
  70. # avoid races. Leave this commented if you are using the
  71. # traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.
  72. # MySQLTransactions On
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-11-30 18:58:48 | 显示全部楼层

回复 1# 的帖子



看配置没有错误。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-11-30 19:01:22 | 显示全部楼层

pure-ftpd.conf 的配置 分2段
  1. ############################################################
  2. # #
  3. # Configuration file for pure-ftpd wrappers #
  4. # #
  5. ############################################################

  6. # If you want to run Pure-FTPd with this configuration
  7. # instead of command-line options, please run the
  8. # following command :
  9. #
  10. # /usr/local/pureftpd/sbin/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf
  11. #
  12. # Please don't forget to have a look at documentation at
  13. # http://www.pureftpd.org/documentation.shtml for a complete list of
  14. # options.

  15. # Cage in every user in his home directory

  16. ChrootEveryone yes



  17. # If the previous option is set to "no", members of the following group
  18. # won't be caged. Others will be. If you don't want chroot()ing anyone,
  19. # just comment out ChrootEveryone and TrustedGID.

  20. # TrustedGID 100



  21. # Turn on compatibility hacks for broken clients

  22. BrokenClientsCompatibility no



  23. # Maximum number of simultaneous users

  24. MaxClientsNumber 50



  25. # Fork in background

  26. Daemonize yes



  27. # Maximum number of sim clients with the same IP address

  28. MaxClientsPerIP 5



  29. # If you want to log all client commands, set this to "yes".
  30. # This directive can be duplicated to also log server responses.

  31. VerboseLog no



  32. # List dot-files even when the client doesn't send "-a".

  33. DisplayDotFiles yes



  34. # Don't allow authenticated users - have a public anonymous FTP only.

  35. AnonymousOnly no



  36. # Disallow anonymous connections. Only allow authenticated users.

  37. NoAnonymous yes



  38. # Syslog facility (auth, authpriv, daemon, ftp, security, user, local*)
  39. # The default facility is "ftp". "none" disables logging.

  40. SyslogFacility ftp



  41. # Display fortune cookies

  42. # FortunesFile /usr/share/fortune/zippy



  43. # Don't resolve host names in log files. Logs are less verbose, but
  44. # it uses less bandwidth. Set this to "yes" on very busy servers or
  45. # if you don't have a working DNS.

  46. DontResolve yes



  47. # Maximum idle time in minutes (default = 15 minutes)

  48. MaxIdleTime 15



  49. # LDAP configuration file (see README.LDAP)

  50. # LDAPConfigFile /etc/pureftpd-ldap.conf



  51. # MySQL configuration file (see README.MySQL)

  52. MySQLConfigFile /usr/local/pureftpd/pureftpd-mysql.conf


  53. # Postgres configuration file (see README.PGSQL)

  54. # PGSQLConfigFile /etc/pureftpd-pgsql.conf


  55. # PureDB user database (see README.Virtual-Users)

  56. # PureDB /etc/pureftpd.pdb


  57. # Path to pure-authd socket (see README.Authentication-Modules)

  58. # ExtAuth /var/run/ftpd.sock



  59. # If you want to enable PAM authentication, uncomment the following line

  60. # PAMAuthentication yes



  61. # If you want simple Unix (/etc/passwd) authentication, uncomment this

  62. UnixAuthentication yes



  63. # Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and
  64. # UnixAuthentication can be used only once, but they can be combined
  65. # together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
  66. # the SQL server will be asked. If the SQL authentication fails because the
  67. # user wasn't found, another try # will be done with /etc/passwd and
  68. # /etc/shadow. If the SQL authentication fails because the password was wrong,
  69. # the authentication chain stops here. Authentication methods are chained in
  70. # the order they are given.



  71. # 'ls' recursion limits. The first argument is the maximum number of
  72. # files to be displayed. The second one is the max subdirectories depth

  73. LimitRecursion 2000 8



  74. # Are anonymous users allowed to create new directories ?

  75. AnonymousCanCreateDirs no



  76. # If the system is more loaded than the following value,
  77. # anonymous users aren't allowed to download.

  78. MaxLoad 4



  79. # Port range for passive connections replies. - for firewalling.

  80. PassivePortRange 20000 30000
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-11-30 19:02:17 | 显示全部楼层



  1. # Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
  2. # Symbolic host names are also accepted for gateways with dynamic IP
  3. # addresses.

  4. # ForcePassiveIP 192.168.0.1



  5. # Upload/download ratio for anonymous users.

  6. # AnonymousRatio 1 10



  7. # Upload/download ratio for all users.
  8. # This directive superscedes the previous one.

  9. # UserRatio 1 10



  10. # Disallow downloading of files owned by "ftp", ie.
  11. # files that were uploaded but not validated by a local admin.

  12. AntiWarez yes



  13. # IP address/port to listen to (default=all IP and port 21).

  14. # Bind localhost,21



  15. # Maximum bandwidth for anonymous users in KB/s

  16. # AnonymousBandwidth 8



  17. # Maximum bandwidth for *all* users (including anonymous) in KB/s
  18. # Use AnonymousBandwidth *or* UserBandwidth, both makes no sense.

  19. # UserBandwidth 8



  20. # File creation mask. : .
  21. # 177:077 if you feel paranoid.

  22. Umask 133:022



  23. # Minimum UID for an authenticated user to log in.

  24. MinUID 100



  25. # Allow FXP transfers for authenticated users.

  26. AllowUserFXP no



  27. # Allow anonymous FXP for anonymous and non-anonymous users.

  28. AllowAnonymousFXP no



  29. # Users can't delete/write files beginning with a dot ('.')
  30. # even if they own them. If TrustedGID is enabled, this group
  31. # will have access to dot-files, though.

  32. ProhibitDotFilesWrite no



  33. # Prohibit *reading* of files beginning with a dot (.history, .ssh...)

  34. ProhibitDotFilesRead no



  35. # Never overwrite files. When a file whoose name already exist is uploaded,
  36. # it get automatically renamed to file.1, file.2, file.3, ...

  37. AutoRename no



  38. # Disallow anonymous users to upload new files (no = upload is allowed)

  39. AnonymousCantUpload no



  40. # Only connections to this specific IP address are allowed to be
  41. # non-anonymous. You can use this directive to open several public IPs for
  42. # anonymous FTP, and keep a private firewalled IP for remote administration.
  43. # You can also only allow a non-routable local IP (like 10.x.x.x) to
  44. # authenticate, and keep a public anon-only FTP server on another IP.

  45. #TrustedIP 10.1.1.1



  46. # If you want to add the PID to every logged line, uncomment the following
  47. # line.

  48. #LogPID yes



  49. # Create an additional log file with transfers logged in a Apache-like format :
  50. # fw.c9x.org - jedi [13/Dec/1975:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338
  51. # This log file can then be processed by www traffic analyzers.

  52. # AltLog clf:/var/log/pureftpd.log



  53. # Create an additional log file with transfers logged in a format optimized
  54. # for statistic reports.

  55. # AltLog stats:/var/log/pureftpd.log



  56. # Create an additional log file with transfers logged in the standard W3C
  57. # format (compatible with most commercial log analyzers)

  58. # AltLog w3c:/var/log/pureftpd.log



  59. # Disallow the CHMOD command. Users can't change perms of their files.

  60. #NoChmod yes



  61. # Allow users to resume and upload files, but *NOT* to delete them.

  62. #KeepAllFiles yes



  63. # Automatically create home directories if they are missing

  64. CreateHomeDir no



  65. # Enable virtual quotas. The first number is the max number of files.
  66. # The second number is the max size of megabytes.
  67. # So 1000:10 limits every user to 1000 files and 10 Mb.

  68. #Quota 1000:10



  69. # If your pure-ftpd has been compiled with standalone support, you can change
  70. # the location of the pid file. The default is /var/run/pure-ftpd.pid

  71. #PIDFile /var/run/pure-ftpd.pid



  72. # If your pure-ftpd has been compiled with pure-uploadscript support,
  73. # this will make pure-ftpd write info about new uploads to
  74. # /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and
  75. # spawn a script to handle the upload.

  76. #CallUploadScript yes



  77. # This option is useful with servers where anonymous upload is
  78. # allowed. As /var/ftp is in /var, it save some space and protect
  79. # the log files. When the partition is more that X percent full,
  80. # new uploads are disallowed.

  81. MaxDiskUsage 99



  82. # Set to 'yes' if you don't want your users to rename files.

  83. #NoRename yes



  84. # Be 'customer proof' : workaround against common customer mistakes like
  85. # 'chmod 0 public_html', that are valid, but that could cause ignorant
  86. # customers to lock their files, and then keep your technical support busy
  87. # with silly issues. If you're sure all your users have some basic Unix
  88. # knowledge, this feature is useless. If you're a hosting service, enable it.

  89. CustomerProof yes



  90. # Per-user concurrency limits. It will only work if the FTP server has
  91. # been compiled with --with-peruserlimits (and this is the case on
  92. # most binary distributions) .
  93. # The format is : :
  94. # For instance, 3:20 means that the same authenticated user can have 3 active
  95. # sessions max. And there are 20 anonymous sessions max.

  96. # PerUserLimits 3:20



  97. # When a file is uploaded and there is already a previous version of the file
  98. # with the same name, the old file will neither get removed nor truncated.
  99. # Upload will take place in a temporary file and once the upload is complete,
  100. # the switch to the new version will be atomic. For instance, when a large PHP
  101. # script is being uploaded, the web server will still serve the old version and
  102. # immediatly switch to the new one as soon as the full file will have been
  103. # transfered. This option is incompatible with virtual quotas.

  104. # NoTruncate yes



  105. # This option can accept three values :
  106. # 0 : disable SSL/TLS encryption layer (default).
  107. # 1 : accept both traditional and encrypted sessions.
  108. # 2 : refuse connections that don't use SSL/TLS security mechanisms,
  109. # including anonymous sessions.
  110. # Do _not_ uncomment this blindly. Be sure that :
  111. # 1) Your server has been compiled with SSL/TLS support (--with-tls),
  112. # 2) A valid certificate is in place,
  113. # 3) Only compatible clients will log in.

  114. # TLS 1



  115. # Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)
  116. # By default, both IPv4 and IPv6 are enabled.

  117. # IPV4Only yes



  118. # Listen only to IPv6 addresses in standalone mode (ie. disable IPv4)
  119. # By default, both IPv4 and IPv6 are enabled.

  120. # IPV6Only yes

  121. # UTF-8 support for file names (RFC 2640)
  122. # Define charset of the server filesystem and optionnally the default charset
  123. # for remote clients if they don't use UTF-8.
  124. # Works only if pure-ftpd has been compiled with --with-rfc2640

  125. # FileSystemCharset big5
  126. # ClientCharset big5
  127. AllowOverwrite on
  128. AllowStoreRestart on
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-11-30 19:03:53 | 显示全部楼层

军哥帮我看看是那里出了问题,怎么ftp开启不了?

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2010-11-30 20:30:56 | 显示全部楼层

我重装了pureftpd 到后面提示错误!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
 楼主| 发表于 2010-12-9 21:25:56 | 显示全部楼层

沉底了没人帮忙解答!我顶~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-9 23:44:16 | 显示全部楼层

回复 7# 的帖子


配置是没有错,可能是在编辑器里编辑时有部分注释自己换行了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-12-11 01:46:02 | 显示全部楼层

我下载下来,在DM编辑后还是一样!

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2010-12-11 01:47:37 | 显示全部楼层



我在安装PUTTY 安装pureftpd.sh 后面提示那个错是不是正常现象?大家在安装的时候有没有这种情况?

[ 本帖最后由 27198277 于 2010-12-11 01:48 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
 楼主| 发表于 2010-12-11 01:49:46 | 显示全部楼层

安装过程最末就出现那种状况,安装后检查状态一直显示未启用!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-8 07:42 , Processed in 0.030344 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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