In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how to open FTP services under linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. First of all, the server should install the ftp software to see if the ftp software has been installed:
# which vsftpd
If you see a directory with vsftpd, the server has installed ftp software.
If you do not have the ftp software installed, here is the download address and related tutorials to refer to:
Wing FTP Server FTP server-side Chinese version installation and use tutorial
two。 View ftp server status
# service vsftpd status
3. Start the ftp server
# service vsftpd start
4. Restart the ftp server
# service vsftpd restart
5. Check to see if the service is started
# netstat-an | grep 21 tcp 0 0 0.0.0.0 grep 21 0.0.0.0 LISTEN
If you see the above information, it proves that the ftp service has been enabled.
6. If you need to enable ftp permissions for root users, you need to modify the following two files
# comment out root in # vi / etc/vsftpd.ftpusers and comment out root in # vi / etc/vsftpd.user_list
Then restart the ftp service.
7. Vsftpd 500 OOPS: cannot change directory
Login error:
C: > ftp 192.168.0.101 Connected to 192.168.0.101. 220 (vsFTPd 2.0.5) User (192.168.0.101: (none)): frank 331Please specify the password. Password: 500 OOPS: cannot change directory:/home/frank Login failed. Ftp > ls 500OOPS: child died Connection closed by remote host.
Solution:
Setsebool ftpd_disable_trans 1 service vsftpd restart
Just OK!
This is the setting command for SELinux. It is OK to turn off SELinux before you are not familiar with SELinux.
8. Enable it permanently, that is, automatically start the ftp service after os restart
Method 1:
Cd / etc/xinetd.d, edit the settings for the ftp service profile gssftp:
Vi / etc/xinetd.d/gssftp, two things will be modified:
(a) server_args =-l-a remove-an and replace it with server_args =-l
(B) change disable=yes to disable=no
(C) Save exit.
Method 2:
(a) system-config-services, enter the System services in the graphical interface to check whether there is a vsftpd entry. If you do not go to 2., save and exit.
(B) install the service on the third disk of redhat (start-remove / add program), around 200K
(C) # setup
You can see the vsftpd item at this time, select the services item at this time, save and exit.
Thank you for reading! This is the end of the article on "how to start FTP Services under linux". I hope the above content can be of some help to you, so that 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.