centos7: vsftpd安装及启动


安装:

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM