CentOS6.8如何搭建Pure-FTPd1.0.46
如何搭建Pure-FTPd1.0.46
1.下载Pure-FTPd
下载地址:http://www.pureftpd.org/project/pure-ftpd/releases
wget http://download.pureftpd.org/pub/pure-ftpd/releases/1.0.46/pure-ftpd-1.0.46.tar.gz
2.安装Pure-FTPd
tar zxvf pure-ftpd-1.0.46.tar.gz
cd pure-ftpd-1.0.46
./configure
make && make install
3.创建用户
groupadd ftpgroup
useradd -g ftpgroup -s /sbin/nologin -M ftpuser
4.配置Pure-FTPd
vi /etc/pure-ftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
xferlog_file=/var/log/pure-ftpd.log
chroot_local_user=YES
listen=YES
pam_service_name=ftp
userlist_enable=YES
tcp_wrappers=YES
5.启动Pure-FTPd
/usr/local/sbin/pure-ftpd -c 50 -C 10 -l puredb:/etc/pure-ftpd.pdb -E -j -R -P localhost &
6.添加开机启动
echo "/usr/local/sbin/pure-ftpd -c 50 -C 10 -l puredb:/etc/pure-ftpd.pdb -E -j -R -P localhost &" >> /etc/rc.local
7.检查是否启动成功
netstat -anp|grep :21
相关文章