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  

  

五、创建虚拟用户

  

  

 

你可能感兴趣的:(centos7编译安装pure-ftpd-1.0.42)