{"id":1966,"date":"2018-09-21T10:10:41","date_gmt":"2018-09-21T02:10:41","guid":{"rendered":"https:\/\/zocodev.com\/?p=49"},"modified":"2018-09-21T10:10:41","modified_gmt":"2018-09-21T02:10:41","slug":"host-on-aliyun-website-slow","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/host-on-aliyun-website-slow.html","title":{"rendered":"\u8bb0\u4e00\u6b21\u90e8\u7f72\u5728\u963f\u91cc\u4e91\u7f51\u7ad9\u8bbf\u95ee\u7f13\u6162\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>\u6700\u8fd1\u540c\u4e8b\u8bf4\uff0c\u653e\u7f6e\u5728\u963f\u91cc\u4e91\u7684\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ad9\u767b\u5f55\u540e\u53f0\u53ca\u524d\u7aef\u63a5\u53e3\u8c03\u7528\u90fd\u5f88\u7f13\u6162\uff0c\u4e00\u76f4\u6ca1\u627e\u5230\u539f\u56e0\uff0c\u8ba9\u6211\u4e0a\u53bb\u770b\u770b\u3002\u89e3\u51b3\u5b8c\u4e86\u4e4b\u540e\uff0c\u53d1\u73b0\u95ee\u9898\u786e\u5b9e\u6709\u70b9\u5c11\u89c1\uff0c\u8fd9\u91cc\u7559\u4e2a\u8bb0\u5f55\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u9047\u5230\u540c\u6837\u95ee\u9898\u7684\u670b\u53cb\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u9996\u5148\uff0c\u54cd\u5e94\u7f13\u6162\u5177\u4f53\u6765\u8bf4\u5c31\u662f\uff0c\u767b\u5f55\u540e\u53f0\u9700\u8981\u7b49\u5f85\u5f88\u4e45\u624d\u80fd\u52a0\u8f7d\u5b8c\u6bd5\uff0c\u524d\u7aef\u5fae\u4fe1\u4e0b\u5355\u652f\u4ed8\u4e5f\u8981\u5f88\u4e45\u624d\u80fd\u5b8c\u6210\u56de\u8c03\u3002<\/p>\n<p>SSH\u4e0a\u53bb\u4e4b\u540e\uff0c\u5148\u662f\u68c0\u67e5\u4e86\u53ef\u7528\u5185\u5b58\u3001\u8d1f\u8f7d\u3001\u78c1\u76d8\u3001CPU\u4ee5\u53ca\u5bbd\u5e26\u5360\u7528\u8fd9\u4e9b\uff0c\u53d1\u73b0\u8fd9\u4e9b\u5360\u7528\u90fd\u4e0d\u9ad8\uff0c\u7cfb\u7edf\u8d44\u6e90\u8fd8\u5f88\u5145\u8db3\uff0c\u53ef\u4ee5\u786e\u5b9a\uff0c\u4e0d\u662f\u670d\u52a1\u5668\u8d44\u6e90\u4e0d\u8db3\u5bfc\u81f4\u7684\u3002<\/p>\n<p>\u7136\u540e\u662f\u68c0\u67e5PHP\u7684\u6162\u65e5\u5fd7\uff0c\u53d1\u73b0\u4e86\u4e00\u4e9b\u4fe1\u606f\uff1a<\/p>\n<pre><code>[18-Sep-2018 11:19:55]  [pool www] pid 21316\nscript_filename = \/path\/to\/file\/seller.php\n[0x00007f89e743c140] curl_exec() \/path\/to\/file\/Common\/function.php:1097\n<\/code><\/pre>\n<p>\u770b\u65e5\u5fd7\uff0c\u6211\u731c\u53ef\u80fd\u662f\u7531\u4e8ecurl\u8c03\u7528\u7b2c\u4e09\u65b9\u670d\u52a1\u5668\u8d44\u6e90\u5bfc\u81f4\u7684\uff0c\u67e5\u770b\u4ee3\u7801\uff0c\u53d1\u73b0\u786e\u5b9e\u662f\u6709\u76f8\u5173\u7684\u8c03\u7528\uff0c\u56e0\u4e3a\u6d89\u53ca\u5230\u516c\u53f8\u4ee3\u7801\uff0c\u4ee3\u7801\u6211\u5c31\u4e0d\u8d34\u4e86\uff0c\u53ea\u8bf4\u8bf4\u89e3\u51b3\u8fc7\u7a0b\u3002<\/p>\n<p>\u62ff\u5230\u5bf9\u5e94\u7684\u4ee3\u7801\u4e4b\u540e\uff0c\u6253\u5370\u51fa\u5b9e\u9645\u7684\u8bf7\u6c42\u5730\u5740\uff0c\u60f3\u624b\u52a8\u8bbf\u95ee\u8bd5\u8bd5\uff0c\u4f46\u662f\u53d1\u73b0\uff0c\u5373\u4f7f\u662f\u624b\u52a8\u8bbf\u95ee\uff0c\u7ed3\u679c\u8fd8\u662f\u8981\u597d\u4e45\u624d\u51fa\u6765\uff0c\u4f46\u662f\u672c\u5730\u8bbf\u95ee\u5374\u5f88\u5feb\u5c31\u80fd\u5f97\u5230\u7ed3\u679c\uff0c\u4e0d\u50cf\u662f\u5bf9\u65b9\u670d\u52a1\u5668\u6302\u4e86\u3002<\/p>\n<p>\u4e8e\u662f\u6253\u7b97\u5230\u670d\u52a1\u5668\u4e0a\u770b\u770b\u5177\u4f53\u89e3\u6790\u5230\u7684\u662f\u54ea\u4e2aIP\uff0cdig\u547d\u4ee4\u4e00\u4e0b\u679c\u7136\u53d1\u73b0\u95ee\u9898\u4e86\uff0c\u4ee5\u672c\u7ad9\u57df\u540d\u6765\u8bf4\uff1a<\/p>\n<pre><code>root@xxxx:~# dig zocodev.com\n\n; &lt;&lt;&gt;&gt; DiG 9.10.3-P4-Ubuntu &lt;&lt;&gt;&gt; zocodev.com\n;; global options: +cmd\n;; Got answer:\n;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 17960\n;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0\n\n;; QUESTION SECTION:\n;zocodev.com.           IN  A\n\n;; ANSWER SECTION:\nzocodev.com.        600 IN  A   111.231.230.249\n\n;; Query time: 38 msec\n;; SERVER: 223.5.5.5#53(223.5.5.5)\n;; WHEN: Thu Sep 20 10:57:19 CST 2018\n;; MSG SIZE  rcvd: 45\n\nreal    0m21.011s\nuser    0m0.004s\nsys 0m0.004s\n<\/code><\/pre>\n<p>\u89e3\u6790\u4e2a\u57df\u540d\u5c31\u82b1\u4e8620\u591a\u79d2\uff0c\u600e\u4e48\u53ef\u80fd\u4e0d\u6162\u3002<\/p>\n<p>\u4e8e\u662f\u770b\u4e86\u4e0b<strong>resolv.conf<\/strong>\u6587\u4ef6\uff0c\u53d1\u73b0\u91cc\u9762\u9ed8\u8ba4\u5c31\u662f\u4e24\u4e2a10\u5f00\u5934\u7684\u5185\u7f51IP\u5730\u5740\uff0c\u6211\u731c\u5e94\u8be5\u662f\u963f\u91cc\u4e91\u7cfb\u7edf\u6a21\u677f\u81ea\u5e26\u7684\u5185\u7f51DNS\u89e3\u6790IP\uff1a<\/p>\n<pre><code>root@xxxx:~# cat \/etc\/resolv.conf\n# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)\n#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN\nnameserver 10.143.22.118\nnameserver 10.143.22.116\noptions timeout:2 attempts:3 rotate single-request-reopen\n<\/code><\/pre>\n<p>\u7136\u540e\u5728\u670d\u52a1\u5668\u4e0aping\u4e86\u4e0b\u8fd9\u4e24\u4e2a\u5185\u7f51IP\uff0c\u53d1\u73b0\u4e24\u4e2aIP\u90fdping\u4e0d\u901a\uff0c\u8fd9\u5c31\u5f88\u5c34\u5c2c\u4e86\u3002<\/p>\n<p>\u7136\u540e\u4e0a\u7f51\u641c\u4e86\u4e00\u628a\uff0c\u53d1\u73b0<strong>10.143.22.118<\/strong>\u548c<strong>10.143.22.116<\/strong>\u8fd9\u4e24\u4e2aDNS\u670d\u52a1\u5668\u6839\u672c\u5c31\u4e0d\u662f\u670d\u52a1\u5668\u6240\u5728\u6df1\u5733\u533a\u57df\u7684DNS\u89e3\u6790\u670d\u52a1\u5668\uff0c\u7f51\u4e0a\u5012\u662f\u6709\u76f8\u5173\u4fe1\u606f\u663e\u793a\u8fd9\u4e24\u4e2aIP\u662f\u676d\u5dde\u3001\u9999\u6e2f\u3001\u7f8e\u56fd\u7684\u3002<\/p>\n<p>\u6211\u5c31\u597d\u5947\u4e86\uff0c\u600e\u4e48\u963f\u91cc\u8fd9\u79cd\u5927\u516c\u53f8\uff0c\u4f1a\u51fa\u8fd9\u79cd\u4f4e\u7ea7\u9519\u8bef\uff1f\u8fd9\u4e48\u628aDNS\u7ed9\u641e\u9519\u4e86\uff0c\u548c\u57df\u540d\u76f8\u5173\u7684\u670d\u52a1\u51e0\u4e4e\u90fd\u4f1a\u53d7\u5f71\u54cd\uff0c\u963f\u91cc\u4e91\u4e5f\u662f\u591f\u4e86\u3002<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u66f4\u6539\u4e0b\u9ed8\u8ba4\u7684DNS\u89e3\u6790IP\u5c31\u884c\uff1a<\/p>\n<pre><code>vim \/etc\/resolvconf\/resolv.conf.d\/tail\n\nnameserver 100.100.2.138\nnameserver 100.100.2.136\n<\/code><\/pre>\n<p>\u6539\u8fd9\u4e24\u884c\u5c31\u597d\u4e86\u3002<\/p>\n<p>PS\uff1a\u7f51\u4e0a\u6536\u96c6\u4e86\u4e0b\u963f\u91cc\u4e91\u76f8\u5173\u5185\u7f51DNS\u89e3\u6790IP\uff1a<br \/>\n\u9752\u5c9b:<br \/>\n10.202.72.116<br \/>\n10.202.72.118<\/p>\n<p>\u676d\u5dde:<br \/>\n10.143.22.116<br \/>\n10.143.22.118<\/p>\n<p>\u4e0a\u6d77\uff1a<br \/>\n100.100.2.136<br \/>\n100.100.2.138<\/p>\n<p>\u9999\u6e2f:<br \/>\n10.143.22.116<br \/>\n10.143.22.118<\/p>\n<p>\u7f8e\u56fd\uff1a<br \/>\n10.143.22.116<br \/>\n10.143.22.118<\/p>\n<p>\u5317\u4eac:<br \/>\n10.202.72.116<br \/>\n10.202.72.118<\/p>\n<p>\u6df1\u5733:<br \/>\n100.100.2.138<br \/>\n100.100.2.136<\/p>\n<p>\u65b0\u52a0\u5761:<br \/>\n100.100.2.136<br \/>\n100.100.2.138<\/p>\n<p>\u8bbe\u7f6e\u4e4b\u524d\u5efa\u8bae\u5148\u7528<strong><em>dig<\/em><\/strong>\u547d\u4ee4\u6d4b\u8bd5\u4e00\u4e0b\u8be5IP\u662f\u5426\u53ef\u7528\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>dig zocodev.com @100.100.2.138\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u540c\u4e8b\u8bf4\uff0c\u653e\u7f6e\u5728\u963f\u91cc\u4e91\u7684\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ad9\u767b\u5f55\u540e\u53f0\u53ca\u524d\u7aef\u63a5\u53e3\u8c03\u7528\u90fd\u5f88\u7f13\u6162\uff0c\u4e00\u76f4\u6ca1\u627e\u5230\u539f\u56e0\uff0c\u8ba9\u6211\u4e0a\u53bb\u770b\u770b\u3002\u89e3\u51b3 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/host-on-aliyun-website-slow.html\"> <span class=\"screen-reader-text\">\u8bb0\u4e00\u6b21\u90e8\u7f72\u5728\u963f\u91cc\u4e91\u7f51\u7ad9\u8bbf\u95ee\u7f13\u6162\u95ee\u9898\u89e3\u51b3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[31,132],"class_list":["post-1966","post","type-post","status-publish","format-standard","hentry","category-mess","tag-dns","tag-132"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=1966"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1966\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}