In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Proftpd full name: Professional FTP daemon, is developed for the weaknesses of Wu-FTP, in addition to improved security, but also has many features that Wu-FTP does not have, can run in Stand-alone, xinetd mode, and so on. ProFTP has become the most popular FTP server software after Wu-FTP. More and more sites choose it to build secure and efficient FTP sites. ProFTP configuration is convenient, and there are MySQL and Quota modules to choose from. The perfect combination of them can realize the management of non-system accounts and the restriction of users' disks.
This chapter is installed by downloading the source code. You can download the latest version: http://www.proftpd.org/ from the official website.
1. First install lrzsz to facilitate copying files to the linux path where you want to build the server.
Yum install lrzsz
2. Upload files and decompress them
Upload the downloaded proftpd-1.3.6.tar.gz file to the specified path and extract it using tar zxvf proftpd-1.3.6.tar.gz
3. Due to the use of source code installation, you need to install the gcc compilation environment
Yum install gcc gcc-c++ autoconf automake
3. Configure and establish the installation and configuration file path
. / configure-prefix=/usr/local/proftpd-sysconfdir=/usr/local/proftpd
4. Installation
Make&make install
5. Modify the configuration file to restrict anonymous users from uploading and downloading, but cannot delete it. (this chapter will not describe the permission control section in detail.)
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 standaloneDefaultServer on# Port 21 is the standard FTP port.Port 2 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 02 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 3percent Set the user and group under which the server will run.User nobodyGroup 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 onIdentLookups offUseReverseDNS 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. 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 DenyAll
6. Turn off the firewall
Systemctl stop firewalld.servicesystemctl disable firewalld.service
7. Start the server
/ usr/local/proftpd/sbin/proftpd
Check to see if the process has been started
[root@localhost ~] # ps-ef | grep proftpdnobody 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. Add to startup item to avoid manual startup after every restart
Vi / ETC _ chmod / rc.d _ var/lock/subsys/local/usr/local/proftpd/sbin/proftpd _ r _ r _ etc/rc.d/rc.local' to ensure# that this script will be executed during boot.touch
Since the permissions of / etc/rc.d/rc.local in centos7 have been reduced, executable permissions need to be added:
Chmod + x / etc/rc.d/rc.local
Summary
The above is the detailed tutorial of installing and configuring proftpd to build ftp server under CentOS 7 introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.