zoukankan      html  css  js  c++  java
  • linux 编译安装pureFTP

    安装openssl支持

      wget -c https://www.openssl.org/source/openssl.org/source/openssl-1.1.0c.tar.gz

       tar -zxvf openssl-1.1.0c.tar.gz

        cd openssl-1.1.0c

        ./connfig --prefix=/usr/local/openssl && make && make install

    安装pureFTP

        #下载pureftp,解压,既然进入该目录

        wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz

        tar -zxvf pureftpd-1.0.22.tar.gz

        ./configure

        --prefix=/usr/local/pureftpd

        --without-inetd #不支持超级服务器

        --with-altlog #支持选择日志格式(类似Apache)

        --with-puredb #支持虚拟用户 (FTP登录用户而非系统用户)

        --with-throttling #支持带宽控制

        --with-tls=/usr/local/openssl #启用SSL/TLS 支持

        #

        ./configure ---prefix=/usr/local/pureftpd --without-inet --with-altlog --with-puredb --with-throttling --with-tls=/usr/local/openssl

        make && make install #编译并且安装

        复制配置文件

        cd configuration-file #进入目录

        mkdir -p /usr/local/pureftpd/etc/  #创建配置文件目录

        cp pure-ftpd.conf /usr/local/pureftpd/etc/pure-ftpd.conf #把配置文件复制到软件安装目录的配置文件目录下

        cp pure-config.pl /usr/local/pueftpd/sbin/pure-config.pl #复制启动程序

        chmod 755 /usr/local/pureftpd/sbin/pure-config.pl #修改启动程序的权限

        config.pl  #修改启动程序的权限

        修改 /usr/local/pureftpd/etc/pure-ftpd.conf 配置项

        ChrootEveryone  yes

        BrokenClientsCompatibility  no  

        MaxClientsNumber  50

        Daemonize  yes

        MaxClientsPerIp  8

        VerboseLog  no

        DisplayDotFiles  yes

        AnonymousOnly  no

        NoAnonymous  no

        SyslogFacility  ftp

        DontResolve  yes

        MaxIdleTime  15

        PureDB  /usr/local/pureftpd/etc/pureftpd.pdb

        LimitRecursion  3136 8

        AnoymousCanCreateDirs  no

        MaxLoad  4

        AnyiWarez  yes

        Umask  133:022

        MinUID  100

        AllowUserFXP  no

        ProhibitDotFilesWrite  no

        ProhibitDotFilesRead  no

        AutoRename  no

        AnonymousCantUpload  no

        PIDFile  /usr/local/pureftpd/var/run/pure-ftpd.pid

        MaxDiskUsage  99

        CustomerProof  yes

        启动

        /usr/local/pureftpd/sbin/purefig.pl

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

        添加账号

        useradd test

        chown -R test:test /var/www/html/  #改变拥有着

        /usr/local/pureftpd/bin/pure-pw useradd ftpd_user1 -utest -d /var/www/html/

        常用操作

        /usr/local/pureftpd/bin/pure-pw mkdb

        /usr/local/pureftpd/bin/pure-pw list

        /usr/local/pureftpd/bin/pure-pw userdel [用户]

          

        

  • 相关阅读:
    mysql修改密码策略
    YUM方法安装mysql5.7版本
    redis-5.0.5安装(linux centos)
    centos7 安装php7扩展
    Linux df
    Spotlight监控工具使用
    Linux 安装iostat命令
    转载:数据库连接池到底应该设置多大?
    cqlsh 一个错误
    Linux Top命令详解
  • 原文地址:https://www.cnblogs.com/whrTC/p/10001083.html
Copyright © 2011-2022 走看看