色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

CentOS 7下安裝配置proftpd搭建ftp服務(wù)器的詳細(xì)教程

瀏覽:30日期:2023-03-25 09:40:40

proftpd全稱:Professional FTP daemon,是針對(duì)Wu-FTP的弱項(xiàng)而開(kāi)發(fā)的,除了改進(jìn)的安全性,還具備許多Wu-FTP沒(méi)有的特點(diǎn),能以Stand-alone、xinetd模式運(yùn)行等。ProFTP已經(jīng)成為繼Wu-FTP之后最為流行的FTP服務(wù)器軟件,越來(lái)越多的站點(diǎn)選用它構(gòu)筑安全高效的FTP站點(diǎn),ProFTP配置方便,并有MySQL和Quota模塊可供選擇,利用它們的完美結(jié)合可以實(shí)現(xiàn)非系統(tǒng)賬號(hào)的管理和用戶磁盤的限制。<摘抄百度百科>

本章通過(guò)下載源碼的方式安裝,可以到官網(wǎng)下載最新版本:http://www.proftpd.org/

1、首先安裝lrzsz方便拷貝文件到要搭建服務(wù)器的linux路徑下

yum install lrzsz

2、上傳文件解壓

將下載完成的proftpd-1.3.6.tar.gz文件上傳到指定路徑,使用tar zxvf proftpd-1.3.6.tar.gz解壓

3、由于使用源碼安裝,所以需要安裝gcc編譯環(huán)境

yum install gcc gcc-c++ autoconf automake

3、配置并制定安裝和配置文件路徑

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

4、安裝

make&make install

5、修改配置文件,限制匿名用戶可以上傳下載,但是不能刪除(本章暫不詳細(xì)描述權(quán)限控制部分內(nèi)容)

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、關(guān)閉防火墻

systemctl stop firewalld.service
systemctl disable firewalld.service

7、啟動(dòng)服務(wù)器

/usr/local/proftpd/sbin/proftpd

查看進(jìn)程是否已經(jīng)啟動(dòng)

[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、添加到啟動(dòng)項(xiàng)避免每次重啟后都需要手動(dòng)啟動(dòng)

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的權(quán)限被降低了,所以需要加上可執(zhí)行的權(quán)限:

chmod +x /etc/rc.d/rc.local

總結(jié)

以上所述是小編給大家介紹的CentOS 7下安裝配置proftpd搭建ftp服務(wù)器的詳細(xì)教程,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)網(wǎng)站的支持!

標(biāo)簽: FTP
相關(guān)文章:
主站蜘蛛池模板: 99视频网| 中文字幕久久亚洲一区 | 欧美国产日韩在线观看 | 国产毛片久久久久久国产毛片 | 日韩欧美一区二区三区在线观看 | 久久久久久久综合色一本 | 亚洲欧美精品国产一区色综合 | 久久精品2 | 五月久久亚洲七七综合中文网 | 美国一级片在线观看 | 日韩欧美精品一区二区 | 亚洲综合久久1区2区3区 | 久草精品视频 | 2022男人天堂 | 久久er热这里只有精品23 | 免费一级毛片不卡在线播放 | 三级黄色毛片视频 | 久久91精品国产91 | 亚洲精品久久久久综合91 | 男女乱淫真视频免费观看 | 俄罗斯小屁孩cao大人免费 | 男女性生活网站 | 成人合集大片bd高清在线观看 | 欧美性猛交xxxxxxxx软件 | 中文字幕福利 | 夜夜骚视频| 日本阿v精品视频在线观看 日本阿v视频在线观看高清 | 欧美xx在线观看 | 国产性夜夜春夜夜爽30 | 日韩视频观看 | 成人综合在线视频免费观看 | 美女大片高清特黄a大片 | 久久五月女厕所一区二区 | 久久狠狠色狠狠色综合 | 亚洲最新网址 | 日韩欧美在线精品 | 日韩中文在线 | 亚洲三级大片 | 狠狠色狠狠色综合日日32 | 成人午夜视频一区二区国语 | 91亚洲国产成人久久精品网站 |