下载
wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.51.tar.gz
安装依赖包
yum install make gcc* gcc-c++ openssl openssl-devel
解压
tar -zxvf pure-ftpd-1.0.51.tar.gz
编译
./configure --prefix=/usr/local/pureftpd --without-inetd --with-altlog --with-puredb --with-throttling --with-peruserlimits --with-tls
make&&make install
创建账号 在bin下
./pure-pw useradd test -u test -d /nginx/test/
(其中-u选项是将虚拟用户test与系统用户test关联在一起,即使用test账号登录FTP后,会以test的身份来读取和下载文件,-d选项为本地用户test账户的家目录,这样可以是test只能访问/nginx/test/)
创建用户信息数据库文件,list显示用户列表
[root@localhost hbk]# pure-pw mkdb
[root@ip-172-31-37-213 bin]# ./pure-pw list
test /nginx/test/./
pure-ftpd.conf配置文件
ChrootEveryone y