欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

centos7编译安装pure-ftpd-1.0.42

发布时间:2024/4/17 编程问答 51 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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 yesPureDB /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

  

  

  

五、创建虚拟用户

  

  

 

转载于:https://www.cnblogs.com/jenqz/p/5190009.html

总结

以上是生活随笔为你收集整理的centos7编译安装pure-ftpd-1.0.42的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。