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