zoukankan      html  css  js  c++  java
  • 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

     

  • 相关阅读:
    CLR Via
    HTML&XML
    SNS研究
    DotNet&C#
    电子商务
    WCF学习
    SQL
    构架设计
    JS&Ajax
    NHibernate之旅系列文章导航
  • 原文地址:https://www.cnblogs.com/achengmu/p/9339551.html
Copyright © 2011-2022 走看看