centos7下使用vsftpd,搭建FTP服务器

    •   yum install vsftpd -y  
    • systemctl start vsftpd??vsftpd ??
    • netstat -nltp | grep 21???????????
    • ?????? ftp://ip??????????????????????
    • ?????????????????????
      systemctl disable firewalld # ??firewall????
      systemctl stop firewalld # ??firewall
      systemctl start firewalld # ?????
      firewall-cmd --zone=public --add-port=80/tcp --permanent #??80??
      firewall-cmd --list-ports #??????
      firewall-cmd --reload #?????
      ?????????? ftp://ip????????
    • ??FTP???/etc/vsftpd/vsftpd.conf????????
      anonymous_enable=NO # ??????
      chroot_local_user=YES# ???????
    • systemctl restart vsftpd??FTP??,??? ftp://ip ?????????
    • ?? FTP ?? useradd zhanghu #????.
      passwd zhanghu#????
    • ??????? ????????????FTP??????FTP???
    • ???????? ????????????/etc/vsftpd/vsftpd.conf?????
      pasv_min_port=30000
      pasv_min_port=31000
    • ??????20-21?30000-31000??
      firewall-cmd --zone=public --add-port=30000-31000 /tcp --premanent
      firewall-cmd --zone=public --add-port=30000-31000 /udp --premanent

 Connor McGovern Jersey

发表评论

电子邮件地址不会被公开。