{"id":1694,"date":"2021-02-12T12:08:38","date_gmt":"2021-02-12T04:08:38","guid":{"rendered":"http:\/\/blog.zengqq.com.cn\/?p=1694"},"modified":"2021-02-15T17:15:10","modified_gmt":"2021-02-15T09:15:10","slug":"%e5%a6%82%e4%bd%95%e9%a1%ba%e6%bb%91%e6%88%91%e7%9a%84%e4%b8%aa%e4%ba%ba%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=1694","title":{"rendered":"\u7a33\u5b9a\u4f4f\u6211\u7684\u5c0f\u5185\u5b58\u4e2a\u4eba\u7f51\u7ad9"},"content":{"rendered":"\n<p>\u6211\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\u914d\u7f6e\u662f\u5185\u5b58512M\u7684\uff0c\u5728\u6700\u8fd1\u7684\u51e0\u6b21\u7f16\u5199\u6216\u8005\u4e0a\u4f20\u56fe\u7247\u540e\u65f6\u5e38\u4f1a\u65e0\u6cd5\u5efa\u7acb\u8054\u7cfb Error: Failed to establish connection with server\uff0c\u6bcf\u6b21\u90fd\u9700\u8981\u91cd\u542f\u670d\u52a1\u5668\u624d\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u4f30\u8ba1\u662fMariaDB\u7684\u8fd9\u8d27\u6709\u95ee\u9898\uff0c\u540e\u6765\u53d1\u73b0\u6211\u7684\u6570\u636e\u5e93\u4e5f\u6709\u95ee\u9898\uff0cMySQL\u4f1a\u5076\u5c14\u6ca1\u6709\u53cd\u5e94\u5bfc\u81f4Error establishing a database connection\uff0c\u5982\u56fe<\/p>\n\n\n\n<p>\u5728\u6307\u4ee4\u884cCli\u6267\u884c\u91cd\u542fMySQL\u5c31\u597d\u4e86<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[User ~] service mysqld restart\n # MySQL server PID file could not be found!                  [FAILED]\n # Starting MySQL.                                            [  OK  ]<\/pre>\n\n\n\n<p>\u8981\u60f3\u6c38\u4e45\u7684\u89e3\u51b3\u95ee\u9898\uff0c\u5927\u81f4\u4e0a\u529e\u6cd5\u5c31\u662f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>\u82b1\u94b1\u6d88\u707e<\/strong>\u3002\u628a\u670d\u52a1\u5668\u7684\u5185\u5b58\u5347\u7ea7\u52302GB\uff0c\u4f46\u662f\u6211\u5df2\u7ecf\u6709\u4e86\u82f1\u7279\u5c14\u53cc\u6838_2GB\u5185\u5b58_50GB_SSD\u7684\u4e3b\u670d\u52a1\u5668\u4e86\uff0c\u8fd9\u4e2a\u5c0f\u7684HK\u670d\u52a1\u5668\u4e3b\u8981\u662f\u62ff\u6765\u5728\u5927\u9646\u4e91\u7aef\u8bd5\u9519\u7684\uff0c\u56e0\u4e3a\u8fd8\u6709\u8d85\u5f3a\u5927\u672c\u5730Mac\u72488G_256GB_SSD\u670d\u52a1\u5668\u548c\u4e00\u4e2a\u514d\u8d39IP\u65f6\u523b\u5f85\u547d\uff0c\u53e6\u5916\u6211\u8fd8\u8981\u6512\u94b1\u4e702025\u5e74\u7248\u4fdd\u65f6\u6377911\uff0c\u6240\u4ee5\u4eca\u5e74\u4e0d\u9700\u8981\u82b1\u51a4\u6789\u94b1\u6765\u6d88\u707e<\/li><li><strong>\u633d\u56deLAMP<\/strong>\u3002\u4f18\u5316MariaDB\uff08\u540e\u6765\u53d1\u73b0\u8f7b\u91cf\u670d\u52a1\u5668\u5c45\u7136\u662f\u7528\u7684MySQL\u4f60NND\uff09\uff0c\u4fee\u6539\u6210\u9002\u5408\u5c0f\u670d\u52a1\u5668\u7684\u914d\u7f6e\u3002\u8fd9\u9700\u8981\u5177\u4f53\u7814\u7a76<s>MariaDB<\/s><a href=\"#MySQL_Fine\">MySQL<\/a><\/li><li><strong>\u8ddfNginx\u8d70<\/strong>\u3002\u653e\u5f03LAMP\uff0c\u6539\u6295LNMP\uff0c\u7528Nginx\u6765\u964d\u4f4e\u5bf9\u6570\u636e\u5e93\u7684\u538b\u529b\uff08\u751a\u81f3\u901a\u8fc7Nginx\u8bbe\u7f6e\u53cd\u5411\u4ee3\u7406\uff0c\u5b9e\u73b0\u5728Nginx\u5185\u90e8\u5efa\u7acb\u57df\u540d\u8bbf\u95ee\u4e0d\u540c\u5730\u5740\u7f51\u9875\u7684\u6784\u60f3\uff09<\/li><li>\uff08\u8fd9\u662f\u540e\u8bdd\uff01\u5176\u5b9e\u4e0e\u89e3\u51b3\u95ee\u9898\u65e0\u5173\uff09\u4f7f\u7528<span style=\"text-decoration: underline;\"><strong>\u767e\u5ea6\u7684\u4e91\u52a0\u901f\u514d\u8d39\u7248<\/strong><\/span>\u529f\u80fd\u6765\u7a33\u5b9a\u8bbf\u95ee\u7684\u901f\u5ea6<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\u914d\u7f6e\u662f\u5185\u5b58512M\u7684\uff0c\u5728\u6700\u8fd1\u7684\u51e0\u6b21 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[253],"tags":[301,54,300,312],"class_list":["post-1694","post","type-post","status-publish","format-standard","hentry","category-fun","tag-mariadb","tag-nginx","tag-300","tag-mysql"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1694"}],"version-history":[{"count":12,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1694\/revisions"}],"predecessor-version":[{"id":1803,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/1694\/revisions\/1803"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}