For simple configuration of vsftpd, refer to this tutorial.Portal
The xinetd configuration in the tutorial is invalid,
The following method is used to start ftp in xinetd mode:
1. Create a file vsftpd in the/etc/xinetd. d/directory.
The content is as follows:
service ftp{ socket_type = stream wait = no user = root server = /usr/sbin/vsftpd log_on_success += DURATION USERID log_on_failure += USERID nice = 10 disable = no}
2. Copy vsftpd. conf to the/etc/directory. Because the xinetd vsFTPd preparation file should be in the/etc directory, We must copy this file to the/etc directory, otherwise, the local user cannot log on to the system. That is to say, if the file is not copied, non-Anonymous ftp users cannot access the file, but anonymous users can only access the file.
Cp/etc/vsftpd. conf/etc/vsftpd. conf
3. Change the configuration file/etc/vsftpd. conf and note the following items:
That is
Listen = YES
Change
# Listen = YES
Or delete this line.
4. Delete the/etc/init. d/vsftpd file. In fact, it is best to back up data elsewhere, because sometimes we try to experiment, and it may be switched to standalone mode to start. I directly moved to another directory, such as the backup directory under/root.
Mkdir/root/backup
Mv/etc/init. d/vsftpd/root/backup
5. Cancel the vsftpd service.
6. Restart the xinetd service.
Service xinetd restart