测试ftp
测试ftp
使用pure-ftpd搭建ftp服务
使用pure-ftpd搭建ftp服务
[root@iZbp1e0xboek6oow616aoiZ ~]# yum install -y epel-release
[root@iZbp1e0xboek6oow616aoiZ ~]# yum install -y pure-ftpd
[root@iZbp1e0xboek6oow616aoiZ ~]# vim /etc/pure-ftpd/pure-ftpd.conf
#找到pureftpd.pdb这行,把行首的#删除
[root@iZbp1e0xboek6oow616aoiZ ~]# systemctl start pure-ftpd
[root@iZbp1e0xboek6oow616aoiZ ~]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 12400/nginx: master
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 31201/pure-ftpd (SE
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 18644/sshd
tcp6 0 0 :::111 :::* LISTEN 29916/rpcbind
tcp6 0 0 :::21 :::* LISTEN 31201/pure-ftpd (SE
tcp6 0 0 :::3306 :::* LISTEN 24144/mysqld
[root@iZbp1e0xboek6oow616aoiZ ~]# mkdir /data/ftp
[root@iZbp1e0xboek6oow616aoiZ ~]# useradd -u 1010 pure-ftp
[root@iZbp1e0xboek6oow616aoiZ ~]# chown -R pure-ftp:pure-ftp /data/ftp
[root@iZbp1e0xboek6oow616aoiZ ~]# pure-pw useradd ftp_usera -u pure-ftp -d /data/ftp
Password:
Enter it again:
[root@iZbp1e0xboek6oow616aoiZ ~]# pure-pw mkdb
[root@iZbp1e0xboek6oow616aoiZ ~]# pure-pw list /userdel/usermod/passwd
ftp_usera /data/ftp/./
扩展
vsftp使用mysql存放虚拟用户并验证 http://www.aminglinux.com/bbs/thread-342-1-1.html
ftp的主动和被动模式 http://www.aminglinux.com/bbs/thread-961-1-1.html
网友评论