安装:
yum -y install vsftpd
service vsftpd start 注意这句:centos7不能这么启动了
chkconfig vsftpd on
vsftpd.conf配置
/etc/vsftpd/vsftpd.conf
anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES xferlog_std_format=YES chroot_local_user=YES listen=YES pam_service_name=vsftpd userlist_enable=YES userlist_deny=NO tcp_wrappers=YES
启动:
/bin/systemctl start vsftpd.service
加入开机启动:
原来的: chkconfig vsftpd on centos7: /bin/systemctl enable vsftpd.service 查看: /bin/systemctl -l /bin/systemctl -l | grep vsftpd
centos7增加ftp端口
开放FTP端口的方法:
暂时开放 ftp 服务
firewall-cmd --add-service=ftp
永久开放 ftp 服务
firewall-cmd --add-service=ftp --permanent
永久关闭ftp服务
firewall-cmd --remove-service=ftp --permanent
重启防火墙让设定生效
systemctl restart firewalld