[Reference: 9 Floor, http://bbs.chinaunix.net/thread-704039-1-1.html]
Like other daemon programs, vsftpd provides standalone and inetd (inetd or xinetd) running modes. For a brief explanation, standalone is started at a time and remains in the memory during running. The advantage is that it responds quickly to the access signal, and the disadvantage is that it consumes a certain amount of system resources, therefore, it is often used on Professional FTP servers with high real-time response requirements. Inetd is the opposite. Because the FTP process is called only when an external connection sends a request, it is not suitable for systems with a large number of connections at the same time. In addition, inetd mode does not occupy system resources. In addition to the impact of response speed and resource occupation, vsftpd also provides some additional advanced features, such as inetd mode support per_IP (Single IP) restrictions, standalone mode is more conducive to the application of PAM verification function.
1. xinetd Running Mode
Most newer systems use the xinetd super service daemon. Use "vi/etc/xinetd. d/vsftpd" to check its content, as shown below:
Disable = no
Socket_type = stream
Wait = no
# This indicates that the device is activated and is using standard TCP Sockets.
If the option "/etc/vsftpd. conf" is "listen = YES", cancel it.
------------
Switch to the root user and enter the command vi/etc/vsftpd. conf.
Remove the # Before local_enable = YES and write_enable = YES, change the value of anonymous_enable = YES to NO, comment out listen = YES (changed to # listen = YES), and save and exit.
------------
Finally, restart xinetd with the following command:
$/Etc/rc. d/init. d/xinetd restart
Note that only one FTP service can be enabled in the "/etc/xinetd. d" directory.
2. standalone Mode
Standalone mode facilitates PAM verification. In this mode, you must first disable vsftpd under xinetd and set
"Disable = yes", or cancel the corresponding line in "/etc/inetd. conf. Then modify "/etc/vsftpd. con
The option in f is "listen = YES ".