rpm -qa| grep vsftpd命令检查是否已经安装
rpm -e vsftpd 卸载
mount 挂载光盘安装
cd /media/RHEL_6.5\ x86_64\ Disc\ 1/Packages/
rpm 安装ftp
rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm
rpm -ivh lftp-4.0.9-1.el6.x86_64.rpm
chkconfig --level 35 vsftpd on 启动要让FTP每次开机自动启动
service vsftpd start 启动服务
service vsftpd restart 重启服务
ps -eaf | grep vsftpd 查看进程是否启动
netstat -anutp | grep 21 # 查看21端口是否处于监听
lftp 127.0.0.1 测试一下看看服务器能否正常工作
扫描二维码关注公众号,回复:
10012729 查看本文章
FTP开机自启动
chkconfig --level 35 vsftpd on
chmod -R 755 /var/ftp/hanzheng 赋予文件夹权限
防火墙
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
iptables -F 清楚防火墙才策略配置
2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop