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

相关推荐
阿里云大数据AI技术15 小时前
阿里云 EMR AI 助手正式发布:从问答工具到全栈智能运维助手
运维·人工智能
你好潘先生21 小时前
别再记命令了,用 yeero do 说句人话就能跑脚本,而且不烧 token
服务器·python·命令行
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
SkyWalking中文站2 天前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户120487221612 天前
Linux驱动编译与加载
linux·嵌入式
程序员老赵2 天前
服务器文件不想 SFTP 上传?Docker 跑个 File Browser,浏览器就能管理
服务器·docker·开源
火车叼位2 天前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
vivo互联网技术2 天前
从 10 分钟到 1 秒:ES 深度分页任意跳页的三轮优化实战
服务器·数据库·redis·elasticsearch·深度分页
用户805533698032 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式