centos7安裝配置tftp

yum -y install ftp
yum -y install vsftpd

systemctl enable vsftpd
systemctl restart vsftpd
firewall-cmd --zone=public --add-port=21/tcp --permanent
firewall-cmd --zone=public --add-port=20/tcp --permanent
firewall-cmd --zone=public --permanent --add-service=ftp
systemctl restart vsftpd

getsebool -a | grep ftp
setsebool -P ftpd_full_access on
setsebool -P tftp_home_dir on

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章