Pure-ftpd安装小记

pure-ftpd安装:

官方网站下载地址:http://download.pureftpd.org/pub/pure-ftpd/releases/

## 下载源码包

wget --no-check-certificate -c https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.42.tar.bz2

## 解压

tar zxvf pure-ftpd-1.0.26.tar.gz

## 进入目录

cd pure-ftpd-1.0.26

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/app/mysql5/lib/mysql

## 编译安装

./configure --prefix=/opt/app/pureftpd --with-mysql=/opt/app/mysql5/ --with-paranoidmsg --with-shadow --with-welcomemsg --with-uploadscript --with-quotas --with-cookie --with-virtualhosts --with-virtualchroot --with-diraliases --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese --with-altlog --with-puredb(使用pureftpd.pdb必须要加这个参数)

make && make install


cp /opt/src/pure-ftpd-1.0.21/configuration-file/pure-config.pl /usr/sbin/

chmod +x /usr/sbin/pure-config.pl

ln -s  /opt/app/pureftpd/sbin/* /usr/sbin/    #pure-config.pl的脚本里使用/usr/sbin/下面的pure-ftpd命令。

cd /opt/app/pureftpd

mkdir etc

cp pure-ftpd.conf pureftpd-mysql.conf /etc/


新建用户:

PureDB                        /opt/app/pureftpd/etc/pureftpd.pdb

#MySQLConfigFile             /opt/app/pureftpd/etc/pureftpd-mysql.conf

/opt/app/pureftpd/bin/pure-pw useradd caolei -g 1000 -u 1000 -d /opt/case -m

你可能感兴趣的:(ftpd,Pure)