{"id":1875,"date":"2012-07-19T19:42:37","date_gmt":"2012-07-19T11:42:37","guid":{"rendered":"http:\/\/blog.dword1511.info\/?p=1875"},"modified":"2012-07-19T19:42:37","modified_gmt":"2012-07-19T11:42:37","slug":"%e8%ae%b0%e4%b8%80%e6%ac%a1%e8%af%a1%e5%bc%82%e7%9a%84-wordpress-%e6%95%85%e9%9a%9c%e6%8e%92%e6%9f%a5","status":"publish","type":"post","link":"http:\/\/blog.dword1511.info\/?p=1875","title":{"rendered":"\u8bb0\u4e00\u6b21\u8be1\u5f02\u7684 WordPress \u6545\u969c\u6392\u67e5"},"content":{"rendered":"<p>\u518d\u9760\u8c31\u7684\u4e1c\u897f\u4e5f\u6709\u4e0d\u9760\u8c31\u7684\u65f6\u5019\u3002\u524d\u4e9b\u5929 XeHost \u8fde\u7eed\u4e24\u5929\u5728\u5927\u7247\u533a\u57df\u8bbf\u95ee\u56f0\u96be\uff0c\u8fde ping VPS \u7684\u7f51\u5173\u90fd\u72c2\u4e22\u5305\uff0c\u6700\u540e\u8fd8\u662f\u89e3\u51b3\u4e86\uff0c\u8bf4\u662f\u673a\u623f\u90a3\u8fb9\u7684\u4eba\u624b\u6ed1\u4e86\u3002\u65e0\u6240\u8c13\uff0c\u6700\u591a\u5c31\u635f\u5931\u70b9\u6d41\u91cf\u4ec0\u4e48\u7684\uff0c\u6211\u4e5f\u6ca1\u592a\u5728\u610f\u3002\u4e0d\u8fc7\u6700\u8fd1\u5374\u53d1\u73b0 VPS \u4e0a\u7684 WordPress \u53d1\u4e0d\u4e86\u6587\u7ae0\u4e86\u3002\u5177\u4f53\u7684\u8868\u73b0\u8fd8\u76f8\u5f53\u8be1\u5f02\uff0c\u5bf9\u4e8e\u4e0d\u540c\u7684\u6587\u7ae0\uff0c\u6807\u9898 + \u6b63\u6587\u8d85\u8fc7\u4e00\u5b9a\u957f\u5ea6\u4e4b\u540e\u5c31\u65e0\u6cd5\u6b63\u5e38\u5730\u4fdd\u5b58\u8349\u7a3f\u4e86\uff0c\u70b9\u4fdd\u5b58\u4ee5\u540e\u53cd\u5e94\u8d85\u6162\uff0c\u6700\u540e\u8fd8\u8df3\u5230\u4e86\u6587\u7ae0\u5217\u8868\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4e00\u5f00\u59cb\u5c31\u60f3\u5230\u662f\u7f51\u7edc\u95ee\u9898\u3002\u5176\u5b9e\u6211\u7684\u8fd9\u4e2a\u5224\u65ad\u662f\u5bf9\u7684\uff0c\u4e0d\u8fc7\u63a5\u4e0b\u6765\u6309\u7167\u5172\u671d\u4eba\u7684\u60ef\u6027\u601d\u7ef4\u6211\u81ea\u7136\u4f1a\u60f3\u5230\u662f\u67d0 MGC \u5728\u4f5c\u602a\uff0c\u4e8e\u662f SSH \u8fde\u4e0a VPS \uff0c\u518d\u53d1\uff0c\u53d1\u73b0 SSH \u5c45\u7136\u6b7b\u6389\u4e86\u3002\u83ab\u975e\u524d\u4e9b\u5929\u90a3\u4e2a\u63a2\u6d4b\u52a0\u5bc6\u901a\u4fe1\u5185\u5bb9\u7684\u8bba\u6587\u662f\u771f\u7684\uff1f\u4e0d\u5927\u53ef\u80fd\u5427\u3002<\/p>\n<p>\u53c8\u6298\u817e\u4e86\u597d\u4e00\u9635\u5b50\uff0c\u6211\u9519\u8bef\u5730\u8ba4\u4e3a\u662f VPS \u672c\u8eab\u6709\u95ee\u9898\u3002\u91cd\u542f Apache \u65e0\u679c\uff0c\u91cd\u88c5 WP \u65e0\u679c\uff0c\u6700\u540e\u628a Apache \u3001PHP \u3001MySQL \u90fd\u7281\u4e86\u4e00\u904d\uff0c\u8fd8\u662f\u4e0d\u884c\u3002\u8fd9\u662f\u80bf\u4e48\u56de\u4e8b\u554a\uff1f<\/p>\n<p>\u4e8e\u662f\u5f00\u59cb\u5728 VPS \u4e0a\u7ffb\u5404\u79cd\u65e5\u5fd7\uff0c\u522b\u7684\u6ca1\u770b\u5230\u5565\u6709\u8da3\u7684\uff0c\u4e0d\u8fc7 MySQL \u7684\u65e5\u5fd7\u91cc\u9762\u5374\u60ca\u73b0\u4e86\u201c ERROR: 1064 \u00a0You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;ALTER TABLE user ADD column Show_view_priv enum(&#8216;N&#8217;,&#8217;Y&#8217;) CHARACTER SET utf8 NOT &#8216; at line 1\u00a0\u201d\u8fd9\u6837\u7684\u5185\u5bb9\uff0c\u6211\u5728\u60f3\u4e0d\u4f1a Ubuntu \u6e90\u91cc\u9762\u7684 wp \u6709 SQL \u6ce8\u5165\u7684\u6f0f\u6d1e\u5427\uff1f<\/p>\n<p>\u4e8e\u662f\u5174\u9ad8\u91c7\u70c8\u5730\u5347\u7ea7 WordPress \u5230 3.4.1 \uff0c\u53d1\u73b0\u8fd9\u4e2a\u7248\u672c\u76f8\u6bd4\u4e8e\u4ee5\u524d\u5b9e\u5728\u662f\u592a\u597d\u7528\u4e86\uff01\u53ef\u60dc\u6211\u9047\u5230\u7684\u95ee\u9898\u4ecd\u7136\u6ca1\u89e3\u51b3\u3002<\/p>\n<p>\u7136\u540e MySQL \u7684\u65e5\u5fd7\u91cc\u9762\u8fd8\u6709\u201c<\/p>\n<pre>120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_commentmeta' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_commentmeta'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_comments' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_comments'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_links' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_links'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_options' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_options'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_postmeta' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_postmeta'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_posts' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_posts'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_term_relationships' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_term_relationships'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_term_taxonomy' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_term_taxonomy'\r\n120707  4:44:40 [ERROR] \/usr\/sbin\/mysqld: Table '.\/dwordblog\/wp_usermeta' is marked as crashed and should be repaired\r\n120707  4:44:40 [Warning] Checking table:   '.\/dwordblog\/wp_usermeta'<\/pre>\n<p>\u201d\u8fd9\u6837\u7684\u73a9\u610f\u3002\u56de\u60f3\u8d77\u6765\u6bcf\u6b21 XeHost \u7ef4\u62a4\u4f3c\u4e4e\u90fd\u4f1a\u628a VPS \u6302\u8d77\u5230\u786c\u76d8\u800c\u4e0d\u662f\u5173\u673a\uff08\u4ece VPS \u7684 uptime \u548c\u5185\u6838\u65e5\u5fd7\u53ef\u4ee5\u770b\u51fa\u6765\uff09\uff0c\u6240\u4ee5\u8fd9\u4e5f\u4e0d\u592a\u53ef\u80fd\u662f\u610f\u5916\uff0c\u5e94\u8be5\u662f\u7f51\u7edc\u51fa\u73b0\u95ee\u9898\u65f6\u81ea\u5df1\u5c1d\u8bd5\u901a\u8fc7 Control panel \u91cd\u542f VPS \u9020\u6210\u7684\u3002<\/p>\n<p>\u540e\u6765\u900f\u8fc7 SSH \u53d1\u73b0\u53ea\u8981\u53d1\u9001\u7684\u8bf7\u6c42\u7a0d\u5fae\u4e00\u591a SSH \u5c31\u5361\u6b7b\uff0c\u867d\u7136\u7535\u4fe1\u4f1a\u6390\u8fd9\u4e9b\u73a9\u610f\u4f46\u662f\u4ee5\u524d\u4f3c\u4e4e\u4ece\u6765\u6ca1\u8fd9\u6837\u554a\uff1f\u518d\u7ed3\u5408\u7528\u201c sudo mtr -u -t -i 0.5 -s 1000 -n dword1511.info\u00a0\u201d trace \u5230 VPS \u7684\u65f6\u5019\u5728\u4e00\u6bb5\u65f6\u95f4\u540e\u4f1a\u4ece\u5b66\u6821\u91cc\u9762\u5f00\u59cb\u4e22\u5305\uff0c\u6211\u5f00\u59cb\u6000\u7591\u8fd9\u62a0\u95e8\u5b66\u6821\u4f1a\u4e0d\u4f1a\u5f00\u59cb\u9650\u5236\u51fa\u56fd\u4e0a\u884c\u6d41\u91cf\u4e86\uff1f<\/p>\n<p>\u5f88\u5feb\uff0c\u6211\u5c31\u8bc1\u660e\u4e86\u81ea\u5df1\u7684\u731c\u60f3\u3002\u6211\u968f\u4fbf\u6293\u4e86\u4e00\u4e2a\u56fd\u5185 HTTP \u4ee3\u7406\uff08\u8fd9\u6837\u505a\u771f\u662f\u597d\u5371\u9669\u7684\uff01\u5b66\u5f1f\u5b66\u59b9\u4eec\u8bf7\u52ff\u6a21\u4eff\uff01\u4f46\u662f\u6211\u61d2 =\u3002=\uff09\uff0c\u7136\u540e\u628a\u4fdd\u5b58\u5728\u672c\u5730\u7684\u6587\u7ae0 POST \u4e86\u4e00\u4e0b\u2026\u2026 \u6210\u529f\u4e86\uff01<\/p>\n<p>\u6700\u540e\u7ed3\u8bba\u662f\uff0c\u5b66\u6821\u9650\u5236\u4e86\u51fa\u56fd\u8fde\u63a5\u6bcf\u8fde\u63a5\u7684\u4e0a\u884c\u6d41\u91cf\uff0c\u610f\u601d\u662f\u4f60\u4eec\u4ee5\u540e\u6d4f\u89c8\u70b9\u5c0f\u7f51\u9875\u5c31\u597d\u4e86\u3002\u53ef\u4ee5\u7406\u89e3\uff0c\u4e0d\u80fd\u539f\u8c05\u3002\u8fd9\u7bc7\u6587\u7ae0\u6b63\u662f\u4f9d\u9760\u90a3\u4e9b\u6765\u5386\u4e0d\u660e\u7684\u56fd\u5185 HTTP \u4ee3\u7406\u624d\u5f97\u4ee5\u53d1\u51fa\u6765\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u518d\u9760\u8c31\u7684\u4e1c\u897f\u4e5f\u6709\u4e0d\u9760\u8c31\u7684\u65f6\u5019\u3002\u524d\u4e9b\u5929 XeHost \u8fde\u7eed\u4e24\u5929\u5728\u5927\u7247\u533a\u57df\u8bbf\u95ee\u56f0\u96be\uff0c\u8fde ping VPS \u7684\u7f51\u5173\u90fd &hellip; <a href=\"http:\/\/blog.dword1511.info\/?p=1875\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u8bb0\u4e00\u6b21\u8be1\u5f02\u7684 WordPress \u6545\u969c\u6392\u67e5<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/1875"}],"collection":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1875"}],"version-history":[{"count":5,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/1875\/revisions"}],"predecessor-version":[{"id":1881,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=\/wp\/v2\/posts\/1875\/revisions\/1881"}],"wp:attachment":[{"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1875"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.dword1511.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}