Linux下vsftpd用户配置

//系统
# cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core)
# uname -r
3.10.0-514.el7.x86_64
//关闭SELinux
# setenforce 0
# sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
//防火墙设置
# firewall-cmd --get-service    //查看在firewall中的服务名称
# firewall-cmd --zone=public --permanent --add-service=ftp  //打开ftp服务
# firewall-cmd --reload     //重新载入,更新防火墙规则
# systemctl restart firewalld   //重启防火墙
# firewall-cmd --state      //查看firewall的状态
//安装ftp
# yum -y install vsftpd
//查看ftp在SELinux的权限
# getsebool -a | grep ftp
getsebool:  SELinux is disabled

来源 http://www.linuxidc.com/Linux/2017-06/144886.htm

猜你喜欢

转载自blog.csdn.net/qq_35590198/article/details/81063722
今日推荐