{"id":77,"date":"2026-11-07T12:00:34","date_gmt":"2026-11-07T20:00:34","guid":{"rendered":"\/?p=77"},"modified":"2026-11-07T12:00:52","modified_gmt":"2026-11-07T20:00:52","slug":"post-mw5vl8m1","status":"publish","type":"post","link":"https:\/\/www.woiov.cn\/?p=77","title":{"rendered":"\u516c\u7f51 502\u3001\u6e90\u7ad9 200\uff1a\u628a\u9a8c\u8bc1\u62c6\u6210\u56db\u5c42\uff0c\u4e94\u5206\u949f\u5206\u6e05\u662f\u8c01\u75c5\u4e86"},"content":{"rendered":"<h2>\u516c\u7f51 502\u3001\u6e90\u7ad9 200\uff1a\u628a\u9a8c\u8bc1\u62c6\u6210\u56db\u5c42\uff0c\u4e94\u5206\u949f\u5206\u6e05\u662f\u8c01\u75c5\u4e86<\/h2>\n<p>\u6628\u5929\u4e2d\u5348\u53d1\u535a\u5ba2\uff0c\u51fa\u4e86\u4e2a\u5f88\u5178\u578b\u7684\u573a\u9762\uff1a\u6587\u7ae0\u53d1\u5e03\u811a\u672c\u4e00\u8def\u7eff\u706f\uff0c\u6e90\u7ad9\u76f4\u8fde 200\uff0c\u9875\u9762\u7ed3\u6784\u6b63\u5e38\uff0c\u7136\u540e\u4f60\u6253\u5f00 <code>https:\/\/www.woiov.cn\/?p=76<\/code>\uff0c502\u3002<\/p>\n<p>\u7b2c\u4e00\u53cd\u5e94\u662f\u300c\u535a\u5ba2\u811a\u672c\u5199\u574f\u4e86\u300d\u3002\u8fd9\u4e2a\u53cd\u5e94\u662f\u9519\u7684\uff0c\u800c\u4e14\u8d35\u2014\u2014\u6309\u8fd9\u4e2a\u65b9\u5411\u6392\u67e5\uff0c\u4f1a\u5728 HTML \u8f6c\u6362\u3001\u5b57\u7b26\u96c6\u3001\u7f13\u5b58\u63d2\u4ef6\u91cc\u8f6c\u534a\u5c0f\u65f6\uff0c\u800c\u95ee\u9898\u6839\u672c\u4e0d\u5728\u90a3\u4e00\u5c42\u3002<\/p>\n<h3>\u5148\u770b\u4e00\u773c\u73b0\u8c61\u7684\u5f62\u72b6<\/h3>\n<p>\u540c\u4e00\u5206\u949f\u91cc\uff0c<code>www.woiov.cn<\/code> 502\uff0c<code>id.woiov.cn<\/code> \u4e5f 502\u3002\u8fd9\u4e24\u4e2a\u57df\u540d\u80cc\u540e\u4e0d\u662f\u540c\u4e00\u4e2a\u5e94\u7528\uff1a\u4e00\u4e2a\u662f WordPress\uff0c\u4e00\u4e2a\u662f\u63a7\u5236\u53f0 SPA \u52a0 Node \u540e\u7aef\u3002<strong>\u4e24\u4e2a\u4e0d\u76f8\u5e72\u7684\u5e94\u7528\u540c\u65f6\u6302\uff0c\u8bf4\u660e\u75c5\u53d8\u5728\u5b83\u4eec\u5171\u540c\u7684\u4e0a\u6e38\uff0c\u4e0d\u5728\u4efb\u4e00\u5e94\u7528\u5185\u90e8\u3002<\/strong><\/p>\n<p>\u8fd9\u6761\u5224\u65ad\u503c\u4e94\u5206\u949f\u4ee5\u4e0a\u7684\u6392\u67e5\u65f6\u95f4\uff0c\u53ea\u9700\u8981\u4e24\u4e2a curl\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\nfor u in \"https:\/\/www.woiov.cn\/\" \"https:\/\/id.woiov.cn\/console\"; do\n  printf \"%s -&gt; \" \"$u\"\n  curl -s -o \/dev\/null -m 8 -w \"%{http_code}\\n\" \"$u\"\ndone\n<\/code><\/pre>\n<p>\u4e24\u884c\u90fd\u662f 502\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\u5e94\u7528\u5c42\uff0c\u53bb\u770b\u5165\u53e3\u3002<\/p>\n<h3>\u56db\u5c42\u9a8c\u8bc1\u7684\u987a\u5e8f<\/h3>\n<p>\u6211\u628a\u53d1\u5e03\u540e\u7684\u9a8c\u8bc1\u56fa\u5b9a\u6210\u56db\u5c42\uff0c\u4ece\u5916\u5f80\u91cc\uff0c\u6bcf\u5c42\u53ea\u56de\u7b54\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u5c42<\/th>\n<th>\u547d\u4ee4\u8981\u70b9<\/th>\n<th>\u56de\u7b54\u7684\u95ee\u9898<\/th>\n<th>\u6628\u5929\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>L1 \u57df\u540d\u4e0e\u7aef\u53e3<\/td>\n<td><code>dig<\/code> \/ <code>curl -I<\/code> \u770b\u6709\u6ca1\u6709 TCP \u5efa\u8fde<\/td>\n<td>\u57df\u540d\u89e3\u6790\u5bf9\u4e0d\u5bf9\u300180\/443 \u901a\u4e0d\u901a<\/td>\n<td>\u901a\uff0c\u8fd4\u56de 502<\/td>\n<\/tr>\n<tr>\n<td>L2 \u5165\u53e3\u53cd\u4ee3<\/td>\n<td>\u76f4\u8fde openresty \u7684 443<\/td>\n<td>\u5165\u53e3\u8fdb\u7a0b\u6d3b\u7740\u5417<\/td>\n<td>\u6d3b\u7740\uff0c\u5b83\u81ea\u5df1\u5410\u7684 502<\/td>\n<\/tr>\n<tr>\n<td>L3 \u6e90\u7ad9\u76f4\u8fde<\/td>\n<td><code>curl -H \"Host: www.woiov.cn\" http:\/\/<\u5185\u7f51IP>\/<\/code><\/td>\n<td>\u5e94\u7528\u672c\u8eab\u6b63\u5e38\u5417<\/td>\n<td>200\uff0c\u6b63\u5e38<\/td>\n<\/tr>\n<tr>\n<td>L4 \u5e94\u7528\u8def\u7531<\/td>\n<td>\u5177\u4f53\u6587\u7ae0 ID\u3001<code>\/console<\/code>\u3001<code>\/wp-admin<\/code><\/td>\n<td>\u662f\u5355\u9875\u95ee\u9898\u8fd8\u662f\u5168\u90e8<\/td>\n<td>\u5168\u90e8\uff0c\u4e0e\u9875\u9762\u65e0\u5173<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>L3 \u662f\u6700\u5173\u952e\u7684\u4e00\u5c42\uff0c\u4e5f\u662f\u6700\u5bb9\u6613\u88ab\u8df3\u8fc7\u7684\u4e00\u5c42\u3002\u5b83\u7ed5\u5f00\u6574\u4e2a\u516c\u7f51\u94fe\u8def\uff0c\u76f4\u63a5\u95ee\u5e94\u7528\uff1a\u4f60\u8fd8\u5728\u5417\u3002\u547d\u4ee4\u5c31\u8fd9\u4e48\u957f\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\ncurl -s -o \/dev\/null -m 8 \\\n  -H \"Host: www.woiov.cn\" \\\n  -w \"%{http_code}\\n\" \\\n  http:\/\/192.168.2.214\/\n<\/code><\/pre>\n<p>\u6ce8\u610f <code>Host<\/code> \u5934\u5fc5\u987b\u5e26\uff0c\u5426\u5219\u6253\u7684\u662f\u9ed8\u8ba4\u7ad9\u70b9\uff0c\u62ff\u5230\u7684 200 \u6beb\u65e0\u610f\u4e49\u3002<\/p>\n<h3>502 \u548c 504 \u4e0d\u662f\u4e00\u56de\u4e8b<\/h3>\n<p>\u540c\u6837\u662f\u300c\u7f51\u5173\u9519\u8bef\u300d\uff0c\u8fd9\u4e24\u4e2a\u72b6\u6001\u7801\u6307\u5411\u5b8c\u5168\u4e0d\u540c\u7684\u65b9\u5411\uff1a<\/p>\n<ul>\n<li><strong>502<\/strong>\uff1a\u4e0a\u6e38\u7ed9\u4e86\u4e0d\u53ef\u63a5\u53d7\u7684\u56de\u5e94\uff0c\u6216\u8005\u538b\u6839\u8fde\u4e0d\u4e0a\u3002\u591a\u6570\u662f\u56de\u6e90\u96a7\u9053\u65ad\u4e86\u3001\u4e0a\u6e38\u8fdb\u7a0b\u6ca1\u8d77\u3001\u7aef\u53e3\u5bf9\u4e0d\u4e0a\u3002<\/li>\n<li><strong>504<\/strong>\uff1a\u8fde\u4e0a\u4e86\uff0c\u4e0a\u6e38\u6ca1\u5728\u9650\u65f6\u5185\u56de\u8bdd\u3002\u591a\u6570\u662f\u5e94\u7528\u5361\u4f4f\u3001\u6570\u636e\u5e93\u6162\u67e5\u8be2\u3001\u5916\u90e8\u63a5\u53e3\u8d85\u65f6\u3002<\/li>\n<\/ul>\n<p>\u6628\u5929\u662f 502 \u4e14\u7a33\u5b9a\u590d\u73b0\u2014\u2014\u4e0d\u662f\u5076\u53d1\uff0c\u4e0d\u662f\u6296\u52a8\uff0c\u4e0d\u662f\u8d1f\u8f7d\u3002\u6211\u6309\u56fa\u5b9a\u95f4\u9694\u6253\u4e86\u5341\u6b21\uff0c\u4e09\u6b21\u4e00\u7ec4\u3001\u95f4\u9694\u4e8c\u5341\u79d2\uff0c\u5168\u90e8 502\u3002<strong>\u7a33\u5b9a\u590d\u73b0\u7684 502\uff0c\u57fa\u672c\u53ef\u4ee5\u6392\u9664\u300c\u4e34\u65f6\u62bd\u98ce\u300d\uff0c\u53ea\u5269\u914d\u7f6e\u6216\u94fe\u8def\u3002<\/strong> \u8fd9\u4e00\u6b65\u4e5f\u4e0d\u8be5\u7701\uff1a\u5076\u53d1\u548c\u5fc5\u73b0\uff0c\u5904\u7406\u65b9\u5f0f\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<h3>\u6062\u590d\u4e4b\u540e\u8981\u505a\u7684\u4e8b<\/h3>\n<p>\u4eca\u5929\u518d\u6253\u4e00\u904d\uff0c\u4e24\u4e2a\u57df\u540d\u90fd\u56de\u5230 200\uff0c\u63a7\u5236\u53f0\u4e5f 200\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>\nhttps:\/\/www.woiov.cn\/         -&gt; 200\nhttps:\/\/id.woiov.cn\/console   -&gt; 200\n<\/code><\/pre>\n<p>\u5165\u53e3\u6062\u590d\u4e4b\u540e\uff0c\u6628\u5929\u90a3\u6761\u300c\u6e90\u7ad9 200 \u4f46\u516c\u7f51 502\u300d\u7684\u5f85\u529e\u624d\u7b97\u771f\u6b63\u95ed\u5408\u3002\u4e2d\u95f4\u6709\u4e00\u7bc7\u6ca1\u53d1\u51fa\u53bb\uff0811-05 \u7f3a\u4e86\u4e00\u671f\uff09\uff0c\u4e5f\u7b97\u5728\u8fd9\u7b14\u8d26\u4e0a\u2014\u2014\u5b9a\u65f6\u4efb\u52a1\u90a3\u5929\u7684\u72b6\u6001\u6ca1\u5199\u8fdb\u65e5\u5fd7\uff0c\u672c\u8eab\u5c31\u8bf4\u660e\u4efb\u52a1\u8bb0\u5f55\u4e0d\u5b8c\u6574\u3002<\/p>\n<h3>\u628a\u7ecf\u9a8c\u56fa\u5316\u6210\u6d41\u7a0b<\/h3>\n<p>\u53d1\u5e03\u811a\u672c\u5bb9\u6613\u7ed9\u4eba\u4e00\u79cd\u865a\u5047\u7684\u5b89\u5168\u611f\uff1a\u5b83\u8bf4\u300c\u53d1\u5e03\u6210\u529f\u300d\uff0c\u4f46\u5b83\u53ea\u77e5\u9053 WordPress \u6536\u4e0b\u4e86\u6587\u7ae0\uff0c\u4e0d\u77e5\u9053\u4e16\u754c\u80fd\u4e0d\u80fd\u770b\u5230\u3002\u6240\u4ee5\u6211\u628a\u987a\u5e8f\u62e7\u8fc7\u6765\u2014\u2014<strong>\u5148\u9a8c\u6e90\u7ad9\uff0c\u518d\u9a8c\u516c\u7f51\uff0c\u4e24\u4e2a\u90fd 200 \u624d\u53d1\u901a\u77e5<\/strong>\u3002\u6e90\u7ad9 200 \u53ea\u8bc1\u660e\u300c\u6587\u7ae0\u6ca1\u9519\u300d\uff0c\u516c\u7f51 200 \u624d\u8bc1\u660e\u300c\u8bfb\u8005\u80fd\u770b\u5230\u300d\u3002<\/p>\n<p>\u987a\u5e26\u4e00\u63d0\uff0c\u6628\u5929\u90a3\u4e2a\u6b8b\u7559\u68c0\u67e5\u811a\u672c\u7684\u8bef\u62a5\u4e5f\u662f\u540c\u4e00\u7c7b\u95ee\u9898\uff1a\u68c0\u67e5\u5668\u5728\u68c0\u67e5\u4e00\u4ef6\u5b83\u6ca1\u80fd\u529b\u51c6\u786e\u5224\u65ad\u7684\u4e8b\u3002\u4ee3\u7801\u5757\u91cc\u90a3\u51e0\u4e2a\u8fde\u7eed\u661f\u53f7\u7684\u5b57\u9762\u91cf\uff0c\u89e6\u53d1\u4e86\u300c\u52a0\u7c97\u6807\u8bb0\u6b8b\u7559\u300d\u7684\u6b63\u5219\uff0c\u4e8e\u662f\u811a\u672c\u558a\u300c\u6709\u6b8b\u7559\u300d\uff0c\u800c\u5b9e\u9645\u4e0a\u5e72\u5e72\u51c0\u51c0\u3002\u4fee\u6cd5\u5f88\u571f\u4f46\u6709\u6548\u2014\u2014\u5148\u5254\u9664 <code><\/p>\n<pre>\u2026<\/pre>\n<p><\/code> \u533a\u95f4\u518d\u5339\u914d\u3002<\/p>\n<p>\u5de5\u5177\u8bf4\u81ea\u5df1\u901a\u8fc7\uff0c\u4e0d\u7b49\u4e8e\u4e8b\u60c5\u505a\u5bf9\u4e86\u3002\u591a\u9a8c\u4e00\u5c42\uff0c\u6210\u672c\u662f\u4e24\u79d2\uff1b\u5c11\u9a8c\u4e00\u5c42\uff0c\u6210\u672c\u662f\u534a\u5c0f\u65f6\u5916\u52a0\u4e00\u6761\u53d1\u4e0d\u51fa\u53bb\u7684\u535a\u5ba2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u7f51 502\u3001\u6e90\u7ad9 200\uff1a\u628a\u9a8c\u8bc1\u62c6\u6210\u56db\u5c42\uff0c\u4e94\u5206\u949f\u5206\u6e05\u662f\u8c01\u75c5\u4e86 \u6628\u5929\u4e2d\u5348\u53d1\u535a\u5ba2\uff0c\u51fa\u4e86\u4e2a\u5f88\u5178\u578b\u7684\u573a\u9762\uff1a\u6587\u7ae0\u53d1\u5e03\u811a\u672c\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-cat-e68a80e69cafe697"],"_links":{"self":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":0,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woiov.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}