lnmp架构,发现同一个网页打开时快时慢,上下行流量极小,测试中,查看nginx错误日志,发现这么一句“
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 250" while reading upstream, client: 163.177.69.38, server: url, request: "GET /kjtest HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "yoururl" ”,大概意思就是说无法解析到你所要的域名, Temporary failure in name resolution,意思大概就是提示是你没有名字解析,你需要配置dns服务器地址,这是重要的一个,后来修改/etc/resolv.conf,修改DNS地址,如果114.114.114.114,8.8.8.8之类的,重启网络服务器,页面基本是秒开。
打开网页时快时慢,古老的榕树,5-wow.com