Solve the problem of slow remote connection between MySQL and vsftp

Source: Internet
Author: User

For CentOS 6.3 (similar to other operating systems, same applies) Description:

When our services are configured properly, there are times when the connection is slow and the connection fails

Problem Analysis: These situations are usually DNS parsing.

MySQL Connection slow resolution:

To modify MY.CNF, add the following sentence in [mysqld]

Skip-name-resolve

Restart MySQL (#service mysql restart or/etc/init.d/mysql restart) to solve the problem.

Note: In this case, the program can not use localhost, can only use 127.0.0.1 or real IP address.


Vsftp Slow Connection Speed resolution:

Modify Vsftpd.conf, add the following sentence

Reverse_lookup_enable=no

Restart VSFTPD (#service vsftpd restart or/etc/init.d/vsftpd restart), problem solved.


Tip: You can view the default configuration of vsftp in detail by #man the 5 vsftpd.conf command

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.