centos 6.4 minimal FTP安装配置


1.安装FTP服务器

yum install vsftpd


2.开启ftp服务

chkconfig vsftpd on


3.开启ftp服务器

 service vsftpd start


4.打开ftp端口,也可以不开21端口,使用sftp协议

vi /etc/sysconfig/iptables

#在REJECT 行前添加如下内容
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEP

#重启iptables
service iptables restart

猜你喜欢

转载自5xnl.iteye.com/blog/1926277