Linux ftp configuration and Error 500 OOPS: cocould not bind listening IPv4 socket Solution

Source: Internet
Author: User

[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 ".

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.