zoukankan      html  css  js  c++  java
  • centos7编译安装pure-ftpd-1.0.42

    一.下载

    wget https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.42.tar.gz
    

      

    二.安装

    tar xvf pure-ftpd-1.0.42.tar.gz 
    cd pure-ftpd-1.0.42
    

      

    ./configure --prefix=/usr/local/pureftpd --with-everything --with-cookie --with-diraliases --with-extauth --with-ftpwho --with-language=english --with-ldap --with-minimal --with-mysql --with-nonroot
    

      

    三.安装过程中可能出现的问题

    1.ldap

    configure: error: liblber is needed for LDAP support
    

    缺少ldap  

    [root@hn pure-ftpd-1.0.42]# yum -y install openldap-devel
    

    2.mysql client lib 

    configure: error: Your MySQL client libraries aren't properly installed
    

    解决方法

    vi /etc/ld.so.conf.d/mysql.conf
    

    写入

    /usr/local/mysql/lib
    

    执行

    ldconfig
    

      

    四.配置

    cd configuration-file/
    chmod 755 pure-config.pl
    cp pure-config.pl /usr/local/pureftpd/bin/
    mkdir /usr/local/pureftpd/etc
    cp pure-ftpd.conf /usr/local/pureftpd/etc/
    cp pureftpd-ldap.conf /usr/local/pureftpd/etc/
    cp pureftpd-mysql.conf /usr/local/pureftpd/etc/
    cp pureftpd-pgsql.conf /usr/local/pureftpd/etc/
    

    修改pure-ftpd.conf

    vi /usr/local/pureftpd/etc/pure-ftpd.conf
    

    主要修改

    NoAnonymous              yes
    
    PureDB                        /usr/local/pureftpd/etc/pureftpd.pdb  
    
    AnonymousCantUpload         yes  
    

    修改selinux

    setsebool -P ftp_home_dir=1   //设置ftp可以使用home目录 
    setsebool -P allow_ftpd_full_access=1   //设置ftp用户可以有所有权限
    

    修改firewalld添加tcp端口

    firewall-cmd --remove-service=ftp --permanent
    

      

      

      

    五、创建虚拟用户

      

      

  • 相关阅读:
    git分支管理之创建与合并分支
    git分支管理
    git远程仓库之从远程库克隆
    git远程仓库之添加远程库
    git远程仓库
    Git时光机穿梭之删除文件
    Git时光机穿梭之撤销修改
    Git时光机穿梭之管理修改
    Git时光机穿梭之工作区和暂存区
    Git时光机穿梭之版本回退
  • 原文地址:https://www.cnblogs.com/jenqz/p/5190009.html
Copyright © 2011-2022 走看看