ProFTPD 是一个相当出名的开源 FTP Server, 以下是在 RHEL 及 CentOS 7 安装 ProFTPD 的方法:
ProFTPD 不在 RHEL 及 CentOS 默认的 Repository 里面, 所以要先安装 EPEL Repository, EPEL Repository 包括一些 RHEL 默认以外的常用套件。
|
1 |
# yum install epel-release |
之后就可以用 YUM 直接安装 ProFTPD 及它的相关套件:
|
1 |
# yum install -y proftpd proftpd-utils |
安装好 ProFTPD 后, 默认 firewalld 未有开放 FTP 对外存取, 要执行以下指令开放 FTP 存取:
|
1 2 |
# firewall-cmd --permanent --zone=public --add-service=ftp # firewall-cmd --reload |
最后一步是启动 ProFTPD 及设定开机自动执行 ProFTPD:
|
1 2 |
# systemctl start proftpd # systemctl enable proftpd |
要测试是否安装成功, 可以用 “ftp localhost” 检查是否可以连接。