Warning: curl_exec() has been disabled for security reasons in /pub/host/sunboyu/sunboyu/www/wp-includes/http.php on line 1022
2008 十二月 18 一个程序猿 孙小一,孙小二,PHP,MYSQL,LINUX,APACHE,原创技术,扯淡

Pure-ftpd安装配置草稿-补充完全

作者 : admin 于 2008年12月18日, 09:47:45
2008
12-18
  1. cp /opt/mysql-5.0.22/lib/mysql/* /usr/lib          #解决编译依赖库问题
  2. ./configure --prefix=/opt/pure-ftpd \
  3. --with-mysql=/opt/mysql-5.0.22 \
  4. --with-rfc2640 \
  5. --with-language=simplified-chinese \
  6. --with-peruserlimits \
  7. --with-diraliases \
  8. --with-virtualchroot \
  9. --with-virtualhosts \
  10. --with-welcomemsg \
  11. --with-ftpwho \
  12. --with-quotas \
  13. --with-throttling \
  14. --with-cookie \
  15. --with-extauth \
  16. --with-puredb \
  17. --with-altlog \
  18. --with-sysquotas \
  19. --with-paranoidmsg \
  20. --with-ascii \
  21. --with-inetd
  22.  
  23. cp  $install_dir/pureftpd-mysql.conf /opt/pure-ftpd/
  24. cp  $install_dir/configuration-file/pure-config.pl pure-ftpd.conf /opt/pure-ftpd/

启动服务  /opt/pure-ftpd/pure-config.pl pure-ftpd.conf

这里补充完整:
安装完后,很多配置文件还在原来的安装包里,并没有部署到prefix目标文件夹下,需要手工复制过去,就是上边那两个,一个启动脚本,pure-config.pl 还有性能监控工具,统计工具等。
另外一个经常出现的问题:(为了重现,还得修改成错误的)
421 配置错误: 无效的SQL配置文件: /opt/pure-ftpd/etc/pureftpd-mysql.conf
这个问题网上很多问的,但解释不到位,这里详细解释一下:我们在编译的时候选择了好多参数,部分参数跟配置是对应的,只有编译相关模块,才能打开相关配置,否则是不行的,会报错,但这个软件报错不报错误行数,所以调试起来比较费劲,我是一个个配置行进行开关才发现这个问题的,比如,我开启了这行,MySQLGetRatioDL SELECT DLRatio FROM users WHERE User=”\L” 但我编译的时候未加 ratio这个参数,就报错了,所以在调试的时候一定要对照一下编译时候的参数。
mysql中,密码我用的encryt加密,调试记得打开防火墙,其他没什么需要注意的。