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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to install vsftpd in the Linux server, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Install vsftpd
Most Linux systems use vsftpd, so we also install vsftpd here
1. Install vsftpd
[root@localhost phpMyAdmin] # yum install-y vsftpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Installed:
Vsftpd.i686 0VOR 2.2.2-11.el6_4.1
Complete!
[root@localhost phpMyAdmin] #
2. Set the firewall. Vsftpd uses port 21 by default, so you must set the firewall to allow access to port 21.
1) enter the command "setup" in the terminal, select "Firewall" in the pop-up box, and then select "Custom"
2) use the spacebar to select "ftp", and then select "forward"
3) Select "add"
4) add port 21, protocol tcp, and then determine
5) go back to the original interface and "OK"
6) restart the firewall
[root@localhost phpMyAdmin] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
Iptables: load additional modules: nf_conntrack_ftp [OK]
[root@localhost phpMyAdmin] #
3. Start vsftpd
[root@localhost bin] # service vsftpd start
Start vsftpd for vsftpd: [OK]
4. Test
1) install lftp
[root@localhost phpMyAdmin] # yum install-y lftp
Installed:
Lftp.i686 0RO 0.17-54.el6
Complete!
2) Connect to ftp
[root@localhost bin] # lftp 192.168.0.113
Lftp 192.168.0.113 ~ > ls
Drwxr-xr-x 20 0 4096 Mar 01 2013 pub
Lftp 192.168.0.113 lftp / > cd pub
Lftp 192.168.0.113:/pub > ls
Lftp 192.168.0.113:/pub >
5. Modify port. The default port of ftp is 21, but many times the port will be changed, so you need to modify the configuration file "/ etc/vsftpd/vsftpd.conf" and add the word "listen_port=8765" at the end.
[root@localhost pub] # gedit / etc/vsftpd/vsftpd.conf
Listen_port=8765
6. Restart the service test. Please follow step 2 to modify the firewall configuration.
[root@localhost ~] # service vsftpd restart
Close vsftpd: [OK]
Start vsftpd for vsftpd: [OK]
[root@localhost ~] # lftp 192.168.0.113 / / Connect by default port
Lftp 192.168.0.113 lftp > ls / / using the ls command, it is found that there is no connection at all
Interrupt
Lftp 192.168.0.113 ~ >
[root@localhost ~] # lftp 192.168.0.113Plus 8765 / / specify the port number when connecting
Lftp 192.168.0.113 ~ > ls / / you can view the content using the ls command, indicating that the connection is successful
Drwxr-xr-x 2 0 0 4096 Aug 14 03:38 pub
On how to install vsftpd in the Linux server to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.