首页 » 互联网资讯 » 正文

Debian5.0 + LNMP0.4下安装pureftpd

VPS换成Linode后,采用了Debian5.0+LNMP0.4的环境配置,但是LNMP的包中没有安装ftp服务,这就需要自己装一个了,LNMP包中有一个pureftpd.sh脚本,是用来安装pureftpd的,不幸的是,该脚本在在CentOS下能完美的安装pureftpd,但是在Debian下跑完后并不能成功安装。又是在网上一顿狂搜,花了好一段事件才终于搞定了这个pureftpd,下面是我自己的安装步骤(未重复验证),仅作参考:

一,编译安装pureftpd

  1. cd /root/lnmp0.4/
  2. apt-get install unzip
  3. wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz
  4. tar zvxf pure-ftpd-1.0.29.tar.gz
  5. cd pure-ftpd-1.0.29
  6. cp /usr/local/mysql/lib/mysql/*.* /usr/lib/
  7. ./configure –prefix=/usr/local/pureftpd CFLAGS=-O2 –with-mysql=/usr/local/mysql –with-quotas –with-cookie –with-virtualhosts –with-virtualroot –with-diraliases –with-sysquotas –with-ratios –with-altlog –with-paranoidmsg –with-shadow –with-welcomemsg  –with-throttling –with-uploadscript –with-language=simplified-chinese
  8. make
  9. make check
  10. make install
  11. mkdir /usr/local/pureftpd/etc/
  12. cp configuration-file/pure-config.pl /usr/local/pureftpd/sbin/
  13. cp configuration-file/pure-ftpd.conf /usr/local/pureftpd/etc/
  14. chmod +x /usr/local/pureftpd/sbin/pure-config.pl

到此,pureftpd编译完毕,接下来是配置,很幸运的是,pureftpd的配置已经可以WEB界面配置了。

二,配置pureftpd

  1. unzip User_manager_for-PureFTPd_v2.1_CN.zip
  2. mv ftp /home/wwwroot/
  3. chmod 777 -R /home/wwwroot/ftp/
  4. chown www -R /home/wwwroot/ftp/
  5. 大硬盘

发表评论