LinuxSir.cn,穿越时空的Linuxsir!

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

安装了proftpd+quota+mysql,但在启动proftpd进程时出错。。

[复制链接]
发表于 2004-4-8 18:20:35 | 显示全部楼层 |阅读模式
小弟用了吃奶的力气,终于安装了proftpd+quota+mysql,但在启动proftpd进程时出错。。信息如下:
- Fatal: unknown configuration directive 'bytes_in_avail,' on line 55 of '/usr/local/proftpd/etc/proftpd.conf'.

我比较菜,知道是proftpd.conf里有问题,可我都是按那篇教程一点点做的啊,请大家帮我看看到底错在哪儿了。这是我的配置文件proftpd.conf
#------------------------------------------------------
ServerName                      "FTP server"
ServerType                      standalone
DefaultServer                   on
Port                            21
Umask                           022
MaxInstances                    30
User                            ftp
Group                           ftp
DefaultRoot ~
SystemLog /usr/local/proftpd/logs/ftp.log
TransferLog /usr/local/proftpd/logs/ftp.transferlog
MaxLoginAttempts 30
AllowRetrieveRestart on

#for quota configure
QuotaDirectoryTally on
QuotaDisplayUnits Kb
QuotaEngine on
QuotaLog /usr/local/proftpd/logs/Quota.log
QuotaShowQuotas on

#for mysql configure
<Global>
SQLConnectInfo ftp@localhost:3306 ftpuser test#@
SQLAuthTypes Backend Plaintext
SQLUserInfo FTPUSERS userid passwd uid gid home shell
SQLGroupInfo FTPGRPS groupname gid members
RequireValidShell off
SQLAuthenticate users
SQLHomedirOnDemand on
#MySQL
SQLNamedQuery get-quota-limit SELECT "name, quota_type, per_session, limit_type,
bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail,files_xfer_avail FROM quotalimits WHERE name = '%{0}' AND quota_type = '%{1}'"SQLNamedQuery get-quota-tally SELECT "name, quota_type, bytes_in_used,bytes_out_used,bytes_xfer_used,files_in_used,files_out_used,files_xfer_used FROM quotatallies WHERE name = '%{0}' AND quota_type = '%{1}'"SQLNamedQuery update-quota-tally UPDATE "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1},bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3},files_out_used = files_out_used + %{4},files_xfer_used = files_xfer_used + %{5} WHERE name = '%{6}' AND quota_type = '%{7}'"
quotatalliesSQLNamedQuery insert-quota-tally INSERT "%{0}, %{1}, %{2}, %{3}, %{4}, %{5}, %{6}, %{7}"
quotatallies
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
</Global>

MaxInstances 30

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite                on
</Directory>
#-------------------------------------------------------

系统是rh8,proftpd-1.2.8,mysql-3.23.53,quotatab-1.2.7
发表于 2004-4-8 18:37:24 | 显示全部楼层
http://www.5ilinux.com/blog/archives/000091.html

你先参考这里,我晚上回来再帮你找资料
发表于 2004-4-9 17:08:11 | 显示全部楼层
http://ids.hcpost.com/cgi-bin/to ... topic=18&show=0

你干脆重新来,你qq说的那不行,这文章对你很有用,,参考一下,,,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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