VPS侦探论坛

 找回密码
 注册
查看: 10959|回复: 12

安装pureftpd后无法启动 无效的SQL配置文件

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

按照这个一步步操作的https://www.vpser.net/manage/lnmp-pureftpd-cp.html
使用lnmp集成环境安装

代码:
[root@!~]# /root/pureftpd start
=========================================================================
Pure-FTPd status Manager for LNMP V0.4  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of Pure-FTPd
For more information please visit http://www.lnmp.org

Usage: /root/pureftpd {start|stop|restart|status|who}
=========================================================================
Starting Pure-FTPd...
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
421 配置错误:无效的SQL配置文件: /usr/local/pureftpd/pureftpd-mysql.conf
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-11-16 12:12:34 | 显示全部楼层


/usr/local/pureftpd/pureftpd-mysql.conf  配置文件有错误,重新覆盖一下配置文件内容,再试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-11-16 12:17:33 | 显示全部楼层

覆盖过了,还是这样子...我用的是centos 5
http://vpsip/ftp 可以访问和添加用户,但服务不能启动. Reload系统重新安装还是这样...

[ 本帖最后由 okxugang 于 2010-11-16 12:28 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-11-16 12:50:45 | 显示全部楼层



############################################################################
#                                                                          #
# PureFTPd MySQL configuration file.                                       #
# Generated by the installation wizard for the 'User manager for PureFTPd' #
# See http://machiel.generaal.net for more info                            #
# or read the README.MySQL for explanations of the syntax.                 #
#                                                                          #
############################################################################

# Optional : MySQL server name or IP. Don't define this for unix sockets.

MYSQLServer     localhost

# Optional : MySQL port. Don't define this if a local unix socket is used.

# MYSQLPort       3306


# Optional : define the location of mysql.sock if the server runs on this host.

MYSQLSocket     /tmp/mysql.sock


# Mandatory : user to bind the server as.

MYSQLUser      ftp


# Mandatory : user password. You must have a password.

MYSQLPassword   tmppasswd


# Mandatory : database to open.

MYSQLDatabase  ftpusers


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

MYSQLCrypt      md5


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


# Query to execute in order to fetch the password

MYSQLGetPW      SELECT Password FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")


# Query to execute in order to fetch the system user name or uid

MYSQLGetUID     SELECT Uid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")


# Optional : default UID - if set this overrides MYSQLGetUID

#MYSQLDefaultUID 1000


# Query to execute in order to fetch the system user group or gid

MYSQLGetGID     SELECT Gid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

# Optional : default GID - if set this overrides MYSQLGetGID

#MYSQLDefaultGID 1000


# Query to execute in order to fetch the home directory

MYSQLGetDir     SELECT Dir FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

# Optional : query to get the maximal number of files
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="\L"

# Optional : query to get the maximal disk usage (virtual quotas)
# The number should be in Megabytes.
# Pure-FTPd must have been compiled with virtual quotas support.

# MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="\L"


# Optional : ratios. The server has to be compiled with ratio support.

# MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="\L"
# MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="\L"


# Optional : bandwidth throttling.
# The server has to be compiled with throttling support.
# Values are in KB/s .

MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
# 1) You know what you are doing.
# 2) Real and virtual users match.

# MySQLForceTildeExpansion 1


# If you upgraded your tables to transactionnal tables (Gemini,
# BerkeleyDB, Innobase...), you can enable SQL transactions to
# avoid races. Leave this commented if you are using the
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.

# MySQLTransactions On


以上配置信息我已经覆盖了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-11-30 17:46:58 | 显示全部楼层

我也是一样,暂时没找到解决的办法,求救!

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

发表于 2010-11-30 18:15:51 | 显示全部楼层

怎么没高手指点啊!
发表于 2010-12-11 02:05:02 | 显示全部楼层

这个问题有这么难吗?没人解答????
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-12-14 16:20:50 | 显示全部楼层

我也碰上这个问题了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-12-14 16:40:20 | 显示全部楼层

回复 8# 的帖子



很可能是/usr/local/pureftpd/pureftpd-mysql.conf 覆盖这个文件的时候,一些行太长没有自动换行。用winscp打开看看

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

发表于 2010-12-15 00:10:10 | 显示全部楼层

回复 9# 的帖子




我是也是用脚本安装pureftpd,我的是debian系统,/usr/local/ 下根本没有pureftpd这个目录,这个怎么回事呀?
发表于 2010-12-15 09:08:36 | 显示全部楼层

回复 10# 的帖子


debian系统可能是因为mysql的一个lib问题,解决方法:https://bbs.vpser.net/viewthread ... p;fromuid=3#pid3490
发表于 2010-12-22 08:35:01 | 显示全部楼层

一样的问题,大家怎么解决的呀

[ 本帖最后由 ahaha 于 2010-12-22 09:07 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-7-7 15:29:08 | 显示全部楼层
~/pureftpd start
=========================================================================
Pure-FTPd status Manager for LNMP V0.7  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of Pure-FTPd
For more information please visit http://www.lnmp.org

Usage: /root/pureftpd {start|stop|restart|status|who}
=========================================================================
Starting Pure-FTPd...
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


同样的问题!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 10:01 , Processed in 0.030808 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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