CentOS 7下安装配置proftpd搭建ftp服务器的详细教程
发布时间 - 2026-01-11 03:30:01 点击率:次proftpd全称:Professional FTP daemon,是针对Wu-FTP的弱项而开发的,除了改进的安全性,还具备许多Wu-FTP没有的特点,能以Stand-alone、xinetd模式运行等。ProFTP已经成为继Wu-FTP之后最为流行的FTP服务器软件,越来越多的站点选用它构筑安全高效的FTP站点,ProFTP配置方便,并有MySQL和Quota模块可供选择,利用它们的完美结合可以实现非系统账号的管理和用户磁盘的限制。<摘抄百度百科>

本章通过下载源码的方式安装,可以到官网下载最新版本:http://www.proftpd.org/
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 <Limit SITE_CHMOD> AllowAll </Limit> # A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. <Anonymous /home> User ftp Group ftp # We want clients to be able to login with "anonymous" as well as "ftp" UserAlias anonymous ftp # Limit the maximum number of anonymous logins MaxClients 50 # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayChdir .message # Limit WRITE everywhere in the anonymous chroot <Limit DELE RMD> DenyAll </Limit> </Anonymous>
6、关闭防火墙
systemctl stop firewalld.service systemctl disable firewalld.service
7、启动服务器
/usr/local/proftpd/sbin/proftpd
查看进程是否已经启动
[root@localhost ~]# ps -ef |grep proftpd nobody 1140 1 0 12:13 ? 00:00:00 proftpd: (accepting connections) root 3182 2270 0 12:50 pts/0 00:00:00 grep --color=auto proftpd
8、添加到启动项避免每次重启后都需要手动启动
vi /etc/rc.d/rc.local #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. # # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during boot. touch /var/lock/subsys/local /usr/local/proftpd/sbin/proftpd
由于在centos7中/etc/rc.d/rc.local的权限被降低了,所以需要加上可执行的权限:
chmod +x /etc/rc.d/rc.local
总结
以上所述是小编给大家介绍的CentOS 7下安装配置proftpd搭建ftp服务器的详细教程,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
# centos7
# 安装配置proftpd
# ftp服务器
# centos8系统ftp服务器安装及被动模式配置详细教程
# CentOS8.0 安装配置ftp服务器的实现方法
# Ubuntu 下安装和配置 FTP服务器
# window8.1下FTP服务器安装配置图文教程
# CentOS7服务器环境下vsftpd安装及配置方法
# CentOS8环境下FTP服务器安装与配置步骤详解
# 小编
# 配置文件
# 在此
# 给大家
# 已经成为
# 可以实现
# 并有
# 用户可以
# 重启
# 所述
# 暂不
# 给我留言
# 可执行
# 官网
# 感谢大家
# 可供选择
# 上传文件
# 文件上传
# 疑问请
# 有任何
相关栏目:
【
网站优化151355 】
【
网络推广146373 】
【
网络技术251813 】
【
AI营销90571 】
相关推荐:
Laravel如何发送系统通知?(Notification渠道示例)
Laravel storage目录权限问题_Laravel文件写入权限设置
javascript和jQuery中的AJAX技术详解【包含AJAX各种跨域技术】
如何在景安服务器上快速搭建个人网站?
如何破解联通资金短缺导致的基站建设难题?
JavaScript如何实现音频处理_Web Audio API如何工作?
如何用PHP快速搭建高效网站?分步指南
Laravel如何使用Seeder填充数据_Laravel模型工厂Factory批量生成测试数据【方法】
如何在局域网内绑定自建网站域名?
千问怎样用提示词获取健康建议_千问健康类提示词注意事项【指南】
详解免费开源的.NET多类型文件解压缩组件SharpZipLib(.NET组件介绍之七)
香港服务器租用每月最低只需15元?
mc皮肤壁纸制作器,苹果平板怎么设置自己想要的壁纸我的世界?
如何在云服务器上快速搭建个人网站?
Laravel Blade模板引擎语法_Laravel Blade布局继承用法
西安专业网站制作公司有哪些,陕西省建行官方网站?
Python自然语言搜索引擎项目教程_倒排索引查询优化案例
青岛网站建设如何选择本地服务器?
网站图片在线制作软件,怎么在图片上做链接?
网站制作大概多少钱一个,做一个平台网站大概多少钱?
Python进程池调度策略_任务分发说明【指导】
黑客入侵网站服务器的常见手法有哪些?
简单实现Android文件上传
Python企业级消息系统教程_KafkaRabbitMQ高并发应用
使用Dockerfile构建java web环境
laravel怎么为应用开启和关闭维护模式_laravel应用维护模式开启与关闭方法
Bootstrap CSS布局之列表
JavaScript如何实现继承_有哪些常用方法
html5如何实现懒加载图片_ intersectionobserver api用法【教程】
Laravel Artisan命令怎么自定义_创建自己的Laravel命令行工具完全指南
如何在不使用负向后查找的情况下匹配特定条件前的换行符
laravel怎么使用数据库工厂(Factory)生成带有关联模型的数据_laravel Factory生成关联数据方法
如何快速建站并高效导出源代码?
JS碰撞运动实现方法详解
如何用腾讯建站主机快速创建免费网站?
网站制作免费,什么网站能看正片电影?
如何在景安云服务器上绑定域名并配置虚拟主机?
哪家制作企业网站好,开办像阿里巴巴那样的网络公司和网站要怎么做?
Laravel如何记录日志_Laravel Logging系统配置与自定义日志通道
深圳网站制作的公司有哪些,dido官方网站?
Laravel如何操作JSON类型的数据库字段?(Eloquent示例)
Python自动化办公教程_ExcelWordPDF批量处理案例
js代码实现下拉菜单【推荐】
php8.4header发送头信息失败怎么办_php8.4header函数问题解决【解答】
大型企业网站制作流程,做网站需要注册公司吗?
Laravel如何配置中间件Middleware_Laravel自定义中间件拦截请求与权限校验【步骤】
Laravel中的withCount方法怎么高效统计关联模型数量
Laravel如何实现API资源集合?(Resource Collection教程)
Laravel怎么使用Collection集合方法_Laravel数组操作高级函数pluck与map【手册】
php读取心率传感器数据怎么弄_php获取max30100的心率值【指南】

