In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about how to install ProFTPD in Linux. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.
ProFTPD is a FTP server program on Unix platform or Unix-like platform (such as Linux, FreeBSD, etc.).
Install ProFTPD
ProFTPD is located in the EPEL repository, and you need to install it first:
Yum-y install epel-release
Run yum updates to ensure that everything is up to date
Yum-y update
Start installing ProFTPD
Yum-y install proftpd
Configure ProFTPD
Nano / etc/proftpd.conf
Change the server name:
ServerName "ProFTPD server"
To your server hostname. Then continue to save the file. Enable and start Proftpd to continue and restart the service and enable it. On CentOS 7: restart the service:
Systemctl restart proftpd
Ensure that the service will start after reboot:
Systemctl enable proftpd
On CentOS 6 (and below): restart the service:
Service proftpd restart
Ensure that the service will start on restart:
Chkconfig-add proftpdchkconfig proftpd onEnable FTP in the firewall
If you are currently using a firewall, you need to allow incoming FTP connections.
Firewalld allows incoming ports:
Firewall-cmd-permanent-add-port=21/tcp
Then reload the firewall:
Firewall-cmd-reload
Iptables add a new rule:
Iptables-An INPUT-p tcp-m tcp-- dport 20:21-j ACCEPT
Save the new firewall rule set:
Iptables-save > / etc/sysconfig/iptables
Enable passive connection in ProFTPD
Passive mode can sometimes address the ability of some clients to connect to FTP servers that may have been blocked by firewalls. If you encounter problems with remote connections and want you to try to enable passive connections in ProFTPD, you need to edit / etc/proftpd.conf nano / etc/proftpd.conf
And add the following line:
PassivePorts 60000 65535AllowStoreRestart onAllowRetrieveRestart onTimeoutNoTransfer 65535ListOptions "- la" TimeoutIdle 65535
Then, you also need to add the passive scope iptables: add a new rule to the firewall:
Iptables-An INPUT-p tcp-m tcp-- dport 600000 tcp 65535-j ACCEPT
Save the rule set:
Iptables-save > / etc/sysconfig/iptables
Firewalld: add a new port range:
Firewall-cmd-permanent-add-port=60000-65535/tcp
Reload the firewall:
Firewall-cmd-reload
Testing the FTP service you can first test the FTP configuration locally to ensure that the daemon is running using netstat
# netstat-plan | grep: 21tcp6 0 0: 21: * LISTEN 22089/proftpd: (acc
You can also connect locally by installing a ftp client
Yum install-y ftp
Then establish a connection to localhost or 127.0.0.1
# ftp localhostTrying:: 1...Connected to localhost (:: 1) .220 FTP Server ready.Name (localhost:root):
And enter a valid user name and password, which should be authenticated. If it does not allow you to enter, the authentication message will be written to / var/log/secure.
These are all the contents of the article "how to install ProFTPD in Linux". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.