源码安装
wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.47.tar.bz2
tar -xf pure-ftpd-1.0.47.tar.bz2
cd pure-ftpd-1.0.47
在pure目录进行编译
./configure \
--prefix=/usr/local/pureftpd \
--without-inetd \
--with-altlog \
--with-puredb \
--with-throttling \
--with-peruserlimits \
--with-tls
>>
configure: +--------------------------------------------------------+
configure: | You can subscribe to the Pure-FTPd users mailing-list |
configure: | to ask for help and to stay informed of new releases. |
configure: | Go to http://www.pureftpd.org/ml/ now! |
configure: +--------------------------------------------------------+
<<
显示这串东西表示配置成功
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 10000 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
[root@localhost sbin]# /usr/local/pureftpd/sbin/pure-ftpd /usr/local/pureftpd/etc/pure-ftpd.conf
创建一个系统用户,并且修改目录的所有者和所属组
[root@localhost sbin]# useradd pureftpd
[root@localhost sbin]# chown -R pureftpd.pureftpd /data/www
[root@localhost sbin]# /usr/local/pureftpd/bin/pure-pw useradd xuyang-ftp -u pureftpd -d /data/www
Password: 123456
Enter it again: 123456
创建用户信息数据库文件:
[root@localhost sbin]# /usr/local/pureftpd/bin/pure-pw mkdb
查看用户列表:
[root@localhost sbin]# /usr/local/pureftpd/bin/pure-pw list
xuyang-ftp /data/home/./
删除账号的命令为:
[root@localhost sbin]# /usr/local/
pureftpd/bin/pure-pw userdel xuyang-ftp