In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system how to open FTP service, the article is very detailed, has a certain reference value, interested friends must read it!
FTP is used to control the two-way transfer of files on the Internet, mainly for uploading and downloading server program files.
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 status3. Start the ftp server
# service vsftpd start4. Restart the ftp server
# service vsftpd restart\ 5. Check to see if the service is started
# netstat-an | grep 21 tcp 00 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 then restart the ftp service in root # vi / etc/vsftpd.user_list.
\ 7. Vsftpd 500OOPS: 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 is 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 ftp service configuration file gssftp settings: vi / etc/xinetd.d/gssftp, will modify two items: (a) server_args =-l-a remove-a to server_args =-l (b) 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 not, exit after saving. (B) install the service on the third disk of redhat (start-delete / add programs), around 200K (c) # setup
You can see the vsftpd item at this time, select the services item at this time, save and exit.
The above is all the contents of the article "how to turn on FTP Services in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow 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.