!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>CentOS 7下安装配置proftpd搭建ftp服务器

CentOS 7下安装配置proftpd搭建ftp服务器

1、首先安装lrzsz方便拷贝文件到要搭建服务器的linux路径下

yum install lrzsz

2、上传文件解压

将下载完成的proftpd-1.3.6.tar.gz文件上传到指定路径,使用tar zxvf 

proftpd-1.3.6.tar.gz解压

3、由于使用源码安装,所以需要安装gcc编译环境

yum install gcc gcc-c++ autoconf automake

3、配置并制定安装和配置文件路径

./configure --prefix=/usr/local/proftpd --

sysconfdir=/usr/local/proftpd

4、安装

make&make install

5、修改配置文件,限制匿名用户可以上传下载,但是不能删除(本章暂不详细描

述权限控制部分内容)

vi /usr/local/proftpd/proftpd.conf

 

# This is a basic ProFTPD configuration file (rename it to 

# \'proftpd.conf\' for actual use.  It establishes a single server

# and a single anonymous login.  It assumes that you have a user/group

# \"nobody\" and \"ftp\" for normal operation and anon.

ServerName                      \"Welcome to FTP Server\"

ServerType                      standalone

DefaultServer                   on

# Port 21 is the standard FTP port.

Port                            21

# Don\'t use IPv6 support by default.

UseIPv6                         off

# Umask 022 is a good standard umask to prevent new dirs and files

# from being group and world writable.

Umask                           022

# To prevent DoS attacks, set the maximum number of child processes

# to 30.  If you need to allow more than 30 concurrent connections

# at once, simply increase this value.  Note that this ONLY works

# in standalone mode, in inetd mode you should use an inetd server

# that allows you to limit maximum number of processes per service

# (such as xinetd).

MaxInstances                    30

# Set the user and group under which the server will run.

User                            nobody

Group                           nobody

# To cause every FTP user to be \"jailed\" (chrooted) into their home

# directory, uncomment this line.

#DefaultRoot ~

# Normally, we want files to be overwriteable.

AllowOverwrite          on

IdentLookups            off

UseReverseDNS           off

# Bar use of SITE CHMOD by default

  AllowAll

# A basic anonymous configuration, no upload directories.  If you do 

not

# want anonymous users, simply delete this entire section.

<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; -webkit-tap-

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

Linux 上简单模拟系统负载的方法

2021-4-17 20:13:00

服务器教程

thinkphp5+版本报错访问时浏览器显示:缓存文件写入失败

2021-4-17 20:13:02

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase