我这儿下载的是1.0.44,不是最新版,最新版hole不住bug

https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.44.tar.bz2

解压,进入,编译

./configure \
--prefix=/usr/local/pureftpd \
--without-inetd \
--with-altlog \
--with-puredb \
--with-throttling \
--with-peruserlimits \
--with-tls make && make install

修改配置文件

vim /usr/local/pureftpd/etc/pure-ftpd.conf

ChrootEveryone              yes
BrokenClientsCompatibility no
###(最大连接数)
MaxClientsNumber 50
Daemonize yes
MaxClientsPerIP 8
VerboseLog no
DisplayDotFiles yes
AnonymousOnly no
NoAnonymous no
SyslogFacility ftp
DontResolve yes
MaxIdleTime 15
PureDB /usr/local/pureftpd/etc/pureftpd.pdb
LimitRecursion 3136 8
AnonymousCanCreateDirs no
MaxLoad 4
AntiWarez yes
Umask 133:022
MinUID 100
AllowUserFXP no
AllowAnonymousFXP no
ProhibitDotFilesWrite no
ProhibitDotFilesRead no
AutoRename no
AnonymousCantUpload no
PIDFile /usr/local/pureftpd/var/run/pure-ftpd.pid
MaxDiskUsage 99
CustomerProof yes

启动

 /usr/local/pureftpd/sbin/pure-ftpd  /usr/local/pureftpd/etc/pure-ftpd.conf

建立账号

/usr/local/pureftpd/bin/pure-pw useradd ftp_user1(虚拟账号)  -uwww(真是账号) -d /data/www/

创建用户信息数据库文件

/usr/local/pureftpd/bin/pure-pw mkdb

查看用户列表

/usr/local/pureftpd/bin/pure-pw list

删除账号的命令为

/usr/local/pureftpd/bin/pure-pw  userdel ftp_user2
05-08 08:35