How to turn on FTP service under Linux
1. First the server to install the FTP software to see if the FTP software has been installed:
#which vsftpd
If you see a vsftpd directory stating that the server has FTP software installed
2. View FTP Server Status
#service vsftpd Status
3. Start the FTP server
#service vsftpd Start
4. Restart the FTP server
#service vsftpd Restart
5. See if the service has started
#netstat-an | grep
tcp 0 0 0.0.0.0:21 0.0.0.0:* listen
If you see the above information, it proves that the FTP service is turned on.
6. If you need to turn on the root user's FTP permission to modify the following two files
#vi/etc/vsftpd.ftpusers the root
#vi/etc/vsftpd.user_ The list also comments out root
and then restarts the FTP service.
7. Vsftpd oops:cannot Change Directory
login error:
c:\>ftp 192.168.0.101
Connected to 192.168.0.101.
(vsFTPd 2.0.5)
User (192.168.0.101: (None)): Frank
331 Please specify The password.
Password:
oops:cannot change Directory:/home/frank
Login failed.
ftp> ls
Oops:child died
Connection closed by remote host.
Workaround:
setsebool ftpd_disable_trans 1
service vsftpd Restart
is OK!
This is the SELinux Setup command, it is possible to turn selinux off before you are familiar with Selnux.
8. Turn on the FTP service automatically after the OS restarts.
Method One:
CD/ETC/XINETD.D, edit the settings for the FTP service configuration file gssftp:
Vi/etc/xinetd.d/gssftp, two things will be modified:
(a) Server_args =-l–a Remove-a change to Server_args =-L
(b) Disable=yes changed to Disable=no
(c) Save the exit.
Method Two:
(a) System-config-services, system services into the graphical interface to see if there are vsftpd entries, if not go to 2., Save and exit
(b) Install the service (Start-delete/Add program) with Redhat third disk, around 200K
(c) #setup
You can see the VSFTPD item at this time, select this services item, and then exit after saving.
How to turn on FTP service under Linux