linux安装pure-ftpd-1.0.51

下载

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

安装依赖包

yum install make gcc* gcc-c++ openssl openssl-devel

解压

tar -zxvf pure-ftpd-1.0.51.tar.gz

编译

./configure --prefix=/usr/local/pureftpd --without-inetd --with-altlog --with-puredb --with-throttling --with-peruserlimits --with-tls

make&&make install

创建账号 在bin下

./pure-pw useradd test -u test -d /nginx/test/

(其中-u选项是将虚拟用户test与系统用户test关联在一起,即使用test账号登录FTP后,会以test的身份来读取和下载文件,-d选项为本地用户test账户的家目录,这样可以是test只能访问/nginx/test/)

创建用户信息数据库文件,list显示用户列表

root@localhost hbk\]# pure-pw mkdb \[root@ip-172-31-37-213 bin\]# ./pure-pw list test /nginx/test/./ pure-ftpd.conf配置文件 ChrootEveryone yes BrokenClientsCompatibility no MaxClientsNumber 50 MaxClientsPerIP 8 VerboseLog no DisplayDotFiles yes AnonymousOnly no SyslogFacility ftp DontResolve yes MaxIdleTime 15 LimitRecursion 10000 8 AnonymousCanCreateDirs no MaxLoad 4 AntiWarez yes Umask 133:022 MinUID 100 AllowUserFXP no AllowAnonymousFXP no ProhibitDotFilesWrite no ProhibitDotFilesRead no AutoRename no MaxDiskUsage 99 CustomerProof yes Bind 0.0.0.0,21 PassivePortRange 40000 40010 AnonymousCantUpload yes NoAnonymous yes UnixAuthentication no Daemonize yes PureDB /usr/local/pureftpd/etc/pureftpd.pdb PIDFile /usr/local/pureftpd/var/run/pure-ftpd.pid AltLog /usr/local/pureftpd/var/log/pureftpd.log

相关推荐
chen9456 小时前
mysql 3节点mgr集群部署
运维·后端
LH_R7 小时前
OneTerm开源堡垒机实战(三):功能扩展与效率提升
运维·后端·安全
dessler7 小时前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
泽泽爱旅行7 小时前
awk 语法解析-前端学习
linux·前端
少妇的美梦1 天前
logstash教程
运维
chen9451 天前
k8s集群部署vector日志采集器
运维
chen9451 天前
aws ec2部署harbor,使用s3存储
运维
轻松Ai享生活1 天前
5 节课深入学习Linux Cgroups
linux
christine-rr1 天前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神5551 天前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs