1.查看vsftpd是否安装
rpm -qa|grep vsftpd
yum install vsftpd httpd //安装vsftpd和http,现在要你输入y/n,尽管输入y就行了
2.想用root账户登录vsftpd
在etc/vsftpd/ftpuser中的root注释或删除
etc/vsftpd/user_list中root注释或删除
如果不能传输文件,例如下面
#iptables -I INPUT -p tcp --dport 21 -j ACCEPT
查看哪些开机会启动
# systemctl list-unit-files | grep enabled
开机启动http和vsftpd
#systemctl enable httpd
#systemctl enable vsftpd
查找ftp相关的SELinux bool值,给ftp访问放行
# getsebool -a | grep ftp //看是否给ftp放行,on放行,off没有
# setsebool -P ftpd_full_access on //设置放行
如果ping不上把防火墙关闭
systemctl stop firewalld.service
默认命令行界面
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target