CentOS安装Pure-FTPd+MySQL
wget http://file.ospad.com/others/pure-ftpd-1.0.28.tar.gz
wget http://file.ospad.com/others/ftp_v2.1.tar.gz
yum install pam-devel
yum install mysql-devel
cp /usr/local/mysql/lib/mysql/libmysqlclient* /usr/lib
useradd ftpuser -g ftpgroup -d /home -s /sbin/nologin
chown -R ftpuser:ftpgroup /home
tar zxvf pure-ftpd-1.0.28.tar.gz
cd pure-ftpd-1.0.28
./configure
--prefix=/usr/local/pureftpd
--with-mysql=/usr/local/mysql
--with-puredb
--with-shadow
--with-pam
--with-paranoidmsg
--with-welcomemsg
--with-uploadscript
--with-cookie
--with-virtualchroot
--with-virtualhosts
--with-virtualroot
--with-diraliases
--with-quotas
--with-sysquotas
--with-ratios
--with-ftpwho
--with-throttling
make
make install
cp configuration-file/pure-ftpd.conf /etc/
cp configuration-file/pure-config.pl /usr/local/pureftpd/sbin/
chmod u+x /usr/local/pureftpd/sbin/pure-config.pl
chmod +x /etc/init.d/pure-ftpd
chkconfig --add pure-ftpd
tar zxvf ftp_v2.1.tar.gz
cp -a ftp /usr/local/apache/htdocs
MYSQLPassword tmppasswd
MYSQLDatabase ftpusers
MYSQLCrypt md5