{"id":21457,"date":"2024-01-02T09:42:25","date_gmt":"2024-01-02T09:42:25","guid":{"rendered":"https:\/\/server.hk\/blog\/21457\/"},"modified":"2024-11-14T10:34:00","modified_gmt":"2024-11-14T02:34:00","slug":"how-to-fix-postgresql-error-code-57p02-crash_shutdown","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/21457\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown"},"content":{"rendered":"<h1 id=\"how-to-fix-postgresql-error-code-57p02-crash_shutdown-AJcATZTgLm\">\u5982\u4f55\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown<\/h1>\n<p>PostgreSQL \u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u95dc\u806f\u5f0f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u88ab\u5168\u7403\u4f01\u696d\u548c\u7d44\u7e54\u4f7f\u7528\u3002\u7136\u800c\uff0c\u8207\u4efb\u4f55\u8edf\u4ef6\u4e00\u6a23\uff0cPostgreSQL \u53ef\u80fd\u6703\u9047\u5230\u932f\u8aa4\u548c\u554f\u984c\uff0c\u9700\u8981\u52a0\u4ee5\u89e3\u6c7a\u3002\u5176\u4e2d\u4e00\u500b\u932f\u8aa4\u662f PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u8a0e\u9019\u500b\u932f\u8aa4\u7684\u542b\u7fa9\uff0c\u4e26\u63d0\u4f9b\u89e3\u6c7a\u6b65\u9a5f\u3002<\/p>\n<h2 id=\"understanding-postgresql-error-code-57p02-crash_shutdown-AJcATZTgLm\">\u4e86\u89e3 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown<\/h2>\n<p>PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown \u767c\u751f\u5728 PostgreSQL \u4f3a\u670d\u5668\u610f\u5916\u5d29\u6f70\u6216\u95dc\u9589\u6642\u3002\u6b64\u932f\u8aa4\u901a\u5e38\u6703\u4f34\u96a8\u4e00\u689d\u8a0a\u606f\uff0c\u63d0\u4f9b\u6709\u95dc\u5d29\u6f70\u539f\u56e0\u7684\u66f4\u591a\u8a73\u60c5\u3002\u5e38\u898b\u7684\u5d29\u6f70\u539f\u56e0\u5305\u62ec\u786c\u4ef6\u6545\u969c\u3001\u96fb\u6e90\u4e2d\u65b7\u6216\u8edf\u4ef6\u6f0f\u6d1e\u3002<\/p>\n<p>\u7576\u767c\u751f\u6b64\u932f\u8aa4\u6642\uff0c\u9700\u7acb\u5373\u63a1\u53d6\u884c\u52d5\u89e3\u6c7a\u554f\u984c\uff0c\u4e26\u6062\u5fa9 PostgreSQL \u4f3a\u670d\u5668\u7684\u6b63\u5e38\u904b\u4f5c\u3002<\/p>\n<h2 id=\"steps-to-fix-postgresql-error-code-57p02-crash_shutdown-AJcATZTgLm\">\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown \u7684\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4fee\u5fa9 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown \u7684\u4e00\u4e9b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-check-postgresql-logs-AJcATZTgLm\">1. \u6aa2\u67e5 PostgreSQL \u65e5\u8a8c<\/h3>\n<p>\u7b2c\u4e00\u6b65\u662f\u6aa2\u67e5 PostgreSQL \u65e5\u8a8c\uff0c\u4ee5\u67e5\u770b\u662f\u5426\u6709\u4efb\u4f55\u932f\u8aa4\u8a0a\u606f\u6216\u8207\u5d29\u6f70\u539f\u56e0\u76f8\u95dc\u7684\u7dda\u7d22\u3002\u65e5\u8a8c\u901a\u5e38\u4f4d\u65bc PostgreSQL \u6578\u64da\u76ee\u9304\u4e2d\u3002\u67e5\u627e\u767c\u751f\u5d29\u6f70\u6642\u7684\u932f\u8aa4\u8a0a\u606f\uff0c\u9019\u4e9b\u8a0a\u606f\u53ef\u4ee5\u63d0\u4f9b\u6709\u95dc\u554f\u984c\u7684\u91cd\u8981\u8cc7\u8a0a\u3002<\/p>\n<h3 id=\"2-restart-postgresql-server-AJcATZTgLm\">2. \u91cd\u555f PostgreSQL \u4f3a\u670d\u5668<\/h3>\n<p>\u5982\u679c\u5d29\u6f70\u53ea\u662f\u4e00\u6b21\u6027\u7684\uff0c\u4e26\u4e14\u6c92\u6709\u6f5b\u5728\u7684\u554f\u984c\uff0c\u60a8\u53ef\u4ee5\u5617\u8a66\u91cd\u555f PostgreSQL \u4f3a\u670d\u5668\u3002\u9019\u53ef\u4ee5\u901a\u904e\u4f7f\u7528\u60a8\u64cd\u4f5c\u7cfb\u7d71\u7684\u9069\u7576\u547d\u4ee4\u4f86\u5b8c\u6210\u3002\u91cd\u555f\u5f8c\uff0c\u8acb\u76e3\u63a7\u4f3a\u670d\u5668\u4ee5\u78ba\u4fdd\u5d29\u6f70\u4e0d\u518d\u767c\u751f\u3002<\/p>\n<h3 id=\"3-check-hardware-and-power-supply-AJcATZTgLm\">3. \u6aa2\u67e5\u786c\u4ef6\u548c\u96fb\u6e90\u4f9b\u61c9<\/h3>\n<p>\u5982\u679c\u5d29\u6f70\u662f\u7531\u786c\u4ef6\u6545\u969c\u6216\u96fb\u6e90\u4e2d\u65b7\u5f15\u8d77\u7684\uff0c\u8acb\u6aa2\u67e5\u786c\u4ef6\u7d44\u4ef6\u548c\u96fb\u6e90\u4f9b\u61c9\u3002\u78ba\u4fdd\u6240\u6709\u786c\u4ef6\u7d44\u4ef6\u904b\u884c\u6b63\u5e38\uff0c\u4e26\u4e14\u96fb\u6e90\u4f9b\u61c9\u6c92\u6709\u554f\u984c\u3002\u4fee\u5fa9\u4efb\u4f55\u8207\u786c\u4ef6\u6216\u96fb\u6e90\u76f8\u95dc\u7684\u554f\u984c\u5f8c\uff0c\u624d\u91cd\u65b0\u555f\u52d5 PostgreSQL \u4f3a\u670d\u5668\u3002<\/p>\n<h3 id=\"4-update-postgresql-and-dependencies-AJcATZTgLm\">4. \u66f4\u65b0 PostgreSQL \u548c\u4f9d\u8cf4\u9805<\/h3>\n<p>PostgreSQL \u6216\u5176\u4f9d\u8cf4\u9805\u7684\u904e\u6642\u7248\u672c\u6709\u6642\u53ef\u80fd\u5c0e\u81f4\u5d29\u6f70\u3002\u5efa\u8b70\u5c07\u60a8\u7684 PostgreSQL \u5b89\u88dd\u66f4\u65b0\u81f3\u6700\u65b0\u7684\u7a69\u5b9a\u7248\u672c\u3002\u6b64\u5916\uff0c\u8acb\u78ba\u4fdd PostgreSQL \u4f7f\u7528\u7684\u6240\u6709\u4f9d\u8cf4\u9805\u548c\u5eab\u4e5f\u66f4\u65b0\u81f3\u6700\u65b0\u7248\u672c\u3002<\/p>\n<h3 id=\"5-analyze-crash-dump-AJcATZTgLm\">5. \u5206\u6790\u5d29\u6f70\u8f49\u5132<\/h3>\n<p>\u5982\u679c\u5d29\u6f70\u6301\u7e8c\u6216\u983b\u7e41\u767c\u751f\uff0c\u53ef\u80fd\u9700\u8981\u5206\u6790 PostgreSQL \u751f\u6210\u7684\u5d29\u6f70\u8f49\u5132\u3002\u5d29\u6f70\u8f49\u5132\u5305\u542b\u6709\u95dc\u4f3a\u670d\u5668\u5728\u5d29\u6f70\u6642\u72c0\u614b\u7684\u8a73\u7d30\u8cc7\u8a0a\u3002\u5206\u6790\u5d29\u6f70\u8f49\u5132\u6709\u52a9\u65bc\u8b58\u5225\u554f\u984c\u7684\u6839\u672c\u539f\u56e0\uff0c\u4e26\u5f15\u5c0e\u6545\u969c\u6392\u9664\u904e\u7a0b\u3002<\/p>\n<h3 id=\"6-seek-professional-support-AJcATZTgLm\">6. \u5c0b\u6c42\u5c08\u696d\u652f\u63f4<\/h3>\n<p>\u5982\u679c\u60a8\u7121\u6cd5\u81ea\u884c\u89e3\u6c7a PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown\uff0c\u5efa\u8b70\u5c0b\u6c42\u5c08\u696d\u652f\u63f4\u3002\u7d93\u9a57\u8c50\u5bcc\u7684\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u6216 PostgreSQL \u5c08\u5bb6\u53ef\u4ee5\u63d0\u4f9b\u6545\u969c\u6392\u9664\u548c\u89e3\u6c7a\u554f\u984c\u7684\u6307\u5c0e\u8207\u5e6b\u52a9\u3002<\/p>\n<h2 id=\"summary-AJcATZTgLm\">\u7e3d\u7d50<\/h2>\n<p>\u7e3d\u7d50\u4f86\u8aaa\uff0cPostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown \u662f\u4e00\u500b\u5e38\u898b\u7684\u932f\u8aa4\uff0c\u7576 PostgreSQL \u4f3a\u670d\u5668\u610f\u5916\u5d29\u6f70\u6216\u95dc\u9589\u6642\u6703\u767c\u751f\u3002\u70ba\u4e86\u89e3\u6c7a\u9019\u500b\u932f\u8aa4\uff0c\u60a8\u61c9\u8a72\u6aa2\u67e5 PostgreSQL \u65e5\u8a8c\u3001\u91cd\u555f\u4f3a\u670d\u5668\u3001\u6aa2\u67e5\u786c\u4ef6\u548c\u96fb\u6e90\u4f9b\u61c9\u3001\u66f4\u65b0 PostgreSQL \u548c\u4f9d\u8cf4\u9805\u3001\u5206\u6790\u5d29\u6f70\u8f49\u5132\uff0c\u4e26\u5728\u5fc5\u8981\u6642\u5c0b\u6c42\u5c08\u696d\u652f\u63f4\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9047\u5230 PostgreSQL \u932f\u8aa4\u4ee3\u78bc\uff1a57P02 &#8211; crash_shutdown \u6216\u4efb\u4f55\u5176\u4ed6\u8207 PostgreSQL \u76f8\u95dc\u7684\u554f\u984c\uff0cServer.HK \u63d0\u4f9b\u53ef\u9760\u4e14\u9ad8\u6548\u80fd\u7684 VPS \u8a17\u7ba1\u89e3\u6c7a\u65b9\u6848\u3002\u6211\u5011\u7684 VPS \u89e3\u6c7a\u65b9\u6848\u65e8\u5728\u70ba PostgreSQL \u548c\u5176\u4ed6\u61c9\u7528\u7a0b\u5f0f\u63d0\u4f9b\u6700\u4f73\u6548\u80fd\u548c\u7a69\u5b9a\u6027\u3002\u8acb\u8a2a\u554f <a href=\"https:\/\/server.hk\">server.hk<\/a> \u4e86\u89e3\u66f4\u591a\u6709\u95dc\u6211\u5011\u9999\u6e2f VPS \u8a17\u7ba1\u670d\u52d9\u7684\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4fee\u5fa9 PostgreSQL &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-21457","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=21457"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21457\/revisions"}],"predecessor-version":[{"id":24025,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/21457\/revisions\/24025"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=21457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=21457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=21457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}