标签:开启 ogr htm /etc/ server dir 生成 简单 sys
使用pure-ftpd搭建ftp服务[root@akuilinux01 ~]# yum install -y epel-release
[root@akuilinux01 ~]# yum install -y pure-ftpd
[root@akuilinux01 ~]# vim /etc/pure-ftpd/pure-ftpd.conf
PureDB /etc/pure-ftpd/pureftpd.pdb
vim /etc/pure-ftpd/pure-ftpd.conf//找到pureftpd.pdb这行,把行首的#删除
[root@akuilinux01 ~]# vim /etc/pure-ftpd/pure-ftpd.conf
[root@akuilinux01 ~]# systemctl stop vsftpd
[root@akuilinux01 ~]# systemctl start pure-ftpd
[root@akuilinux01 ~]# 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 593/rpcbind
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1062/nginx: master
tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 937/rpc.mountd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1627/pure-ftpd (SER
[root@akuilinux01 ~]# mkdir /data/ftp
[root@akuilinux01 ~]# useradd -u 1010 pure-ftp
[root@akuilinux01 ~]# chown -R pure-ftp:pure-ftp /data/ftp
[root@akuilinux01 ~]# pure-pw useradd ftp_usera -u pure-ftp -d /data/ftp
Password:
Enter it again:
[root@akuilinux01 ~]# pure-pw mkdb
[root@akuilinux01 ~]# touch /data/ftp/111.txt
[root@akuilinux01 ~]# lftp ftp_usera@127.0.0.1
口令:
lftp ftp_usera@127.0.0.1:~> ls
drwxr-xr-x 2 1010 pure-ftp 21 Jun 25 20:58 .
drwxr-xr-x 2 1010 pure-ftp 21 Jun 25 20:58 ..
-rw-r--r-- 1 0 0 0 Jun 25 20:58 111.txt
Xshell使用xftp传输文件,使用pure-ftpd搭建ftp服务
标签:开启 ogr htm /etc/ server dir 生成 简单 sys
原文地址:http://blog.51cto.com/akui2521/2132623