Fast and slow when you open a webpage

Source: Internet
Author: User

LNMP architecture, found that the same Web page opened fast and slow, up and down the traffic is very small, the test, look at the nginx error log, found such a sentence "

PHP message:php warning:file_get_contents (http://url/index.php?url=yoururl/kjtest): Failed to open stream:php_ Network_getaddresses:getaddrinfo failed:temporary failure in name resolution IN/OPT/NGINX/HTML/AIYAN_WEB/TEMP/WWW_ RURL_CN_KJTEST_.DWT on line + "while reading upstream, client:, Server:url, Request:" Get/kjtest HTTP/1. 1 ", Upstream:" fastcgi:// ", Host:" Yoururl "", probably meaning that cannot be resolved to the domain you want, temporary failure in name resolution, meaning big The hint is that you do not have name resolution, you need to configure the DNS server address, which is important, and then modify the/etc/resolv.conf, modify the DNS address, if,, such as, restart the network server, the page is basically seconds open.

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: 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.