centos下pureftp安装和配置


查找相关文章:pureftp

1、下载所需软件包

#wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.30.tar.gz

2、编译安装

./configure --prefix=/usr/local/pureftpd --with-mysql --with-throttling --with-puredb --with-virtualhosts --with-virtualroot --with-cookie --with-quotas --with-sysquotas --with-ratios --with-welcomemsg --with-peruserlimits --with-lanaguage=simplified-chinese

如果出现configure: error: libmysqlclient is needed for MySQL support

解决:

yum install mysql-devel
make
make install
cp configuration-file/pure-config.pl /usr/local/pureftpd/sbin/
chmod 755 /usr/local/pureftpd/sbin/pure-config.pl
mkdir -p /usr/local/pureftpd/etc/
cp configuration-file/pure-ftpd.conf /usr/local/pureftpd/
cp pureftpd-mysql.conf /usr/local/pureftpd/etc/pureftpd-mysql.conf


安装web界面管理工具

http://machiel.generaal.net/index.php?subject=user_manager_pureftpd&button=download 

wget http://machiel.generaal.net/files/pureftpd/ftp_v2.1.tar.gz
tar -zxvf ftp_v2.1.tar.gz
mv ftp /var/www/html/

网页方式访问 http://127.0.0.1/ftp/install.php

修改配置

vi /usr/local/pureftpd/etc/pureftpd-mysql.conf


  • 你可能对这些文章感兴趣