快速安装及配置FTP(ProFTPD)服务器教程

作者:简简单单 2016-06-20

ProFTPD是实现一个安全且易于设定的FTP Server,也是在Linux服务器上常用的一款FTP服务器,在这里以CentOS为例介绍安装及配置ProFTPD的方法。

安装ProFTPD

# yum -y install proftpd

备份配置文件

# cp -p /etc/proftpd.conf /etc/proftpd.conf.org

修改配置文件

在这里把<服务器的IP地址>改为,自己服务器的外网IP地址。

# cat << EOF > /etc/proftpd.conf
ServerName        ""

ServerType        standalone
DefaultServer     on
Port              21

MasqueradeAddress <服务器的IP地址>
PassivePorts      65000 65535

MaxInstances      30

User              nobody
Group             nobody
Umask             0002 0002


  AllowOverwrite  on

TimesGMT          off
TimeoutIdle       0
TimeoutNoTransfer 2400
DefaultRoot       ~
DeleteAbortedStores on
UseReverseDNS     off
IdentLookups      off
ListOptions     "-a"
EOF

启动ProFTPD

# service proftpd start

配置开机自动启动

# chkconfig proftpd on       -> CentOS6
# systemctl enable proftpd   -> CentOS7

相关文章

精彩推荐