安装:
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