centos7编译安装pure-ftpd-1.0.42
生活随笔
收集整理的这篇文章主要介绍了
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-devel2.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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 【Xamarin挖墙脚系列:使用Xama
- 下一篇: BZOJ-1968 COMMON 约