{"id":1477,"date":"2018-12-10T11:45:57","date_gmt":"2018-12-10T03:45:57","guid":{"rendered":"http:\/\/blog.eolinker.com\/?p=1477"},"modified":"2019-01-03T17:47:36","modified_gmt":"2019-01-03T09:47:36","slug":"%e7%bd%91%e5%85%b3%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e9%ab%98%e5%8f%af%e7%94%a8","status":"publish","type":"post","link":"http:\/\/blog.eolinker.com\/?p=1477","title":{"rendered":"\u7f51\u5173\u5982\u4f55\u5b9e\u73b0\u9ad8\u53ef\u7528?"},"content":{"rendered":"<p><img src=\"http:\/\/data.eolinker.com\/course\/wWERkcic50f87809e29246b515030821b57ebf387edc91d\" \/><\/p>\n<p>\u4e1a\u5185\u901a\u5e38\u7528\u591a\u5c119\u6765\u8861\u91cf\u7f51\u7ad9\u7684\u53ef\u7528\u6027\uff0c\u4f8b\u5982QQ\u7684\u53ef\u7528\u6027\u662f4\u4e2a9\uff0c\u4e5f\u5c31\u662fQQ\u80fd\u591f\u4fdd\u8bc1\u5728\u4e00\u5e74\u91cc\uff0c\u670d\u52a1\u572899.99%\u7684\u65f6\u95f4\u662f\u53ef\u7528\u7684\uff0c\u53ea\u67090.01%\u7684\u65f6\u95f4\u4e0d\u53ef\u7528\uff0c\u5927\u7ea6\u6700\u591a53\u5206\u949f\u3002<\/p>\n<p>\u5bf9\u4e8e\u5927\u591a\u6570\u7f51\u7ad9\uff0c2\u4e2a9\u662f\u57fa\u672c\u53ef\u7528\uff1b3\u4e2a9\u662f\u53eb\u9ad8\u53ef\u7528\uff1b4\u4e2a9\u662f\u62e5\u6709\u81ea\u52a8\u6062\u590d\u80fd\u529b\u7684\u9ad8\u53ef\u7528\u3002<\/p>\n<p>\u5b9e\u73b0\u9ad8\u53ef\u7528\u7684\u4e3b\u8981\u624b\u6bb5\u662f<strong>\u6570\u636e\u7684\u5197\u4f59\u5907\u4efd<\/strong>\u548c<strong>\u670d\u52a1\u7684\u5931\u6548\u8f6c\u79fb<\/strong>\uff0c\u8fd9\u4e24\u79cd\u624b\u6bb5\u5177\u4f53\u53ef\u4ee5\u600e\u4e48\u505a\u5462\uff0c\u5728\u7f51\u5173\u91cc\u5982\u4f55\u4f53\u73b0\uff1f<\/p>\n<p><!--more--><\/p>\n<h1>\u4e00\u3001\u96c6\u7fa4\u90e8\u7f72<\/h1>\n<p>\u4fdd\u969c\u670d\u52a1\u53ef\u7528\u662f\u7f51\u5173\u7684\u4e00\u4e2a\u91cd\u8981\u804c\u8d23\uff0c\u670d\u52a1\u901a\u8fc7\u7f51\u5173\u5f00\u653e\u51fa\u53bb\uff0c\u5982\u679c\u4e0d\u662f\u96c6\u7fa4\u90e8\u7f72\uff0c\u6574\u4e2a\u7f51\u5173\u53ea\u6709\u4e00\u4e2a\u8282\u70b9\uff0c\u8fd9\u4e2a\u8282\u70b9\u6302\u4e86\uff0c\u7f51\u5173\u5c31\u76f8\u5f53\u4e8e\u6302\u4e86\uff0c\u8fd9\u6837\u7f51\u5173\u5b58\u5728\u7684\u610f\u4e49\u5176\u5b9e\u4e0d\u5927\uff0c\u6240\u4ee5\u4e00\u822c\u7f51\u5173\u4f1a\u8ddf\u6839\u636e\u670d\u52a1\u5668\u6027\u80fd\u8fdb\u884c\u96c6\u7fa4\u90e8\u7f72\u3002\u867d\u7136\u7f51\u5173\u53ef\u4ee5\u53ea\u5728\u4e00\u4e2a\u5730\u65b9\u90e8\u7f72\u96c6\u7fa4\uff0c\u76f8\u5f53\u4e8e\u662f\u5355\u6570\u636e\u4e2d\u5fc3\u90e8\u7f72\uff0c\u4f46\u662f\u4f01\u4e1a\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u6027\u8d28\u8fdb\u884c\u5730\u57df\u6027\u7684\u6570\u636e\u4e2d\u5fc3\u90e8\u7f72\uff0c\u6bcf\u4e2a\u6570\u636e\u4e2d\u5fc3\u5305\u542b\u51e0\u4e2a\u7f51\u5173\u8282\u70b9\uff0c\u8fd9\u6837\u6bcf\u4e00\u4e2a\u6570\u636e\u4e2d\u5fc3\u65e2\u53ef\u4ee5\u5f53\u4f5c\u662f\u5730\u533a\u7528\u6237\u7684\u8bbf\u95ee\u4e2d\u5fc3\uff0c\u4e5f\u80fd\u591f\u5f53\u4f5c\u662f\u6570\u636e\u7684\u707e\u5907\u4e2d\u5fc3\u3002\u8fd9\u6837\u90e8\u7f72\u5df2\u7ecf\u80fd\u591f\u4fdd\u969c\u7f51\u5173\u7684\u6b63\u5e38\u53ef\u7528\u3002<\/p>\n<div style=\"width: 1377px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" src=\"http:\/\/data.eolinker.com\/course\/v53Ymq458f7f41cbaaa3d126caffdc6b651ca18a68ce826\" alt=\"\" width=\"1367\" height=\"840\" \/><p class=\"wp-caption-text\">EOLINKER AGW\uff08GOKU API Gateway\uff09\u7684\u96c6\u7fa4\u90e8\u7f72\u67b6\u6784\u56fe<\/p><\/div>\n<h1>\u4e8c\u3001\u8d1f\u8f7d\u5747\u8861<\/h1>\n<p>\u4e00\u5957\u5b8c\u6574\u7684\u7f51\u5173\u5e94\u8be5\u5305\u542b\u4e00\u4e2a\u63a7\u5236\u53f0\u4e0e\u591a\u4e2a\u7f51\u5173\u8282\u70b9\uff0c\u63a7\u5236\u53f0\u5185\u7684\u914d\u7f6e\u9879\u5bf9\u6240\u6709\u7684\u8282\u70b9\u751f\u6548\u3002\u901a\u5e38\u4e00\u53f0\u670d\u52a1\u5668\u53ea\u90e8\u7f72\u4e00\u4e2a\u7f51\u5173\u8282\u70b9\uff0c\u5e76\u4e14\u901a\u8fc7IP\u5730\u5740\u6ce8\u518c\u5728\u63a7\u5236\u53f0\u4e2d\uff0c\u8282\u70b9\u4f1a\u901a\u8fc7\u4e3b\u52a8\/\u88ab\u52a8\u66f4\u65b0\u7684\u65b9\u5f0f\u83b7\u53d6\u63a7\u5236\u53f0\u4e0a\u7684\u6700\u65b0\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<p>\u8fd9\u91cc\u8bf4\u7684\u8d1f\u8f7d\u5747\u8861\u4e0d\u662f\u67b6\u8bbe\u5728\u7f51\u5173\u524d\u7684\u8d1f\u8f7d\u8bbe\u5907\uff08nginx\u6216f5\uff09\uff0c\u800c\u662f\u7f51\u5173\u8282\u70b9\u672c\u8eab\u7684\u8d1f\u8f7d\uff0c<strong>\u7f51\u5173\u7684\u6bcf\u4e2a\u8282\u70b9\u90fd\u80fd\u591f\u5bf9\u6240\u6709\u540e\u7aef\u8fdb\u884c\u8d1f\u8f7d<\/strong>\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u6bcf\u4e2a\u7f51\u5173\u8282\u70b9\u90fd\u80fd\u591f\u5c06\u8bf7\u6c42\u5206\u53d1\u5230\u670d\u52a11\u3001\u670d\u52a12\u548c\u670d\u52a13\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e00\u4e2a\u8bf7\u6c42\u4ece\u5ba2\u6237\u7aef\u8fc7\u6765\uff0c\u9996\u5148\u88ab\u8d1f\u8f7d\u8bbe\u5907\uff08nginx\uff09\u5206\u53d1\u5230\u67d0\u4e2a\u8282\u70b9\uff0c\u518d\u7531\u8282\u70b9\uff08\u7f51\u5173\uff09\u5c06\u8bf7\u6c42\u5206\u53d1\u5230\u5177\u4f53\u540e\u7aef\u3002<\/p>\n<div style=\"width: 1167px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" src=\"http:\/\/data.eolinker.com\/course\/BY8hpLw59481a5a3c28406bc2128883c65b77cdfd5f6a4c\" alt=\"\" width=\"1157\" height=\"888\" \/><p class=\"wp-caption-text\">EOLINKER AGW\uff08GOKU API Gateway\uff09\u7684\u8d1f\u8f7d\u5747\u8861<\/p><\/div>\n<h1>\u4e09\u3001\u5065\u5eb7\u68c0\u67e5<\/h1>\n<p>\u5c3d\u7ba1\u4e0a\u9762\u5df2\u7ecf\u52a0\u4e86\u4e24\u5c42\u8d1f\u8f7d\uff0c\u4f46\u662f\uff0c\u5047\u8bbe\u6211\u4eec\u7684\u67d0\u4e2a\u8282\u70b9\u51fa\u4e86\u95ee\u9898\uff0c\u6216\u8005\u8bf4\u67d0\u4e2a\u540e\u7aef\u670d\u52a1\u51fa\u4e86\u95ee\u9898\u3002nginx\u6709\u53ef\u80fd\u4f1a\u628a\u8bf7\u6c42\u8d1f\u8f7d\u5230\u6709\u95ee\u9898\u7684\u8282\u70b9\uff0c\u8282\u70b9\u4e5f\u6709\u53ef\u80fd\u4f1a\u628a\u8bf7\u6c42\u8d1f\u8f7d\u5230\u6709\u95ee\u9898\u7684\u540e\u7aef\uff0c\u8fd9\u65f6\u5019\u670d\u52a1\u6700\u7ec8\u7684\u7ed3\u679c\u4ecd\u662f\u4e0d\u53ef\u7528\uff0c\u5982\u679c\u80fd\u53ca\u65f6\u628a\u6709\u95ee\u9898\u7684\u8282\u70b9\u548c\u6709\u95ee\u9898\u7684\u540e\u7aef\u79fb\u51fa\u8d1f\u8f7d\u8303\u56f4\u5c31\u597d\u4e86\u3002\u5982\u4f55\u53ca\u65f6\u77e5\u9053\u8282\u70b9\u51fa\u4e86\u95ee\u9898\u6216\u8005\u8bf4\u662f\u540e\u7aef\u51fa\u4e86\u95ee\u9898\uff1f\u5176\u5b9e\u4e5f\u4e0d\u96be\uff0c\u50cf\u662f\u76d1\u63a7\u68c0\u67e5\u4e00\u6837\uff0c\u5b9a\u671f\u53bb\u68c0\u67e5\u76ee\u6807\u5bf9\u8c61\uff0c\u5bf9\u8c61\u6ca1\u6709\u8fd4\u56de\u7ed3\u679c\u5c31\u662f\u6709\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u5065\u5eb7\u68c0\u67e5\u8fd9\u91cc\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662fnginx\u5bf9\u7f51\u5173\u8282\u70b9\u7684\u5065\u5eb7\u68c0\u67e5\uff0c\u53e6\u4e00\u79cd\u662f\u7f51\u5173\u8282\u70b9\u5bf9\u540e\u7aef\u670d\u52a1\u7684\u5065\u5eb7\u68c0\u67e5\u3002<\/p>\n<p>nginx\u5982\u4f55\u5bf9\u8282\u70b9\u8fdb\u884c\u5065\u5eb7\u68c0\u67e5\uff0c\u7f51\u4e0a\u6709\u5f88\u591a\u76f8\u5173\u6559\u7a0b\u3002\u8fd9\u91cc\u4e3b\u8981\u63a2\u8ba8\u7684\u662f\u7f51\u5173\u8282\u70b9\u5bf9\u670d\u52a1\u540e\u7aef\u7684\u5065\u5eb7\u68c0\u67e5\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u540e\u7aef\u8bbe\u5b9a\u6b63\u5e38\u8fd4\u56de\u7684\u7ed3\u679c\uff08\u6839\u636e\u8bf7\u6c42\u72b6\u6001\u7801\u3001\u8d85\u65f6\u671f\u9650\u3001\u6216\u662f\u5176\u4ed6\u6761\u4ef6\uff09\uff0c\u5b9a\u671f\u8bbf\u95ee\u540e\u7aef\u670d\u52a1\uff0c\u82e5\u53d1\u73b0\u8fd4\u56de\u5f02\u5e38\uff0c\u5219\u63a7\u5236\u53f0\u5c06\u8be5\u540e\u7aef\u4ece\u8d1f\u8f7d\u5217\u8868\u91cc\u79fb\u9664\u3002\u53d1\u73b0\u5f02\u5e38\u65f6\u7f51\u5173\u540c\u6837\u4f1a\u4ea7\u751f\u544a\u8b66\u3002\u79fb\u9664\u540e\u7f51\u5173\u4e5f\u4f1a\u5b9a\u671f\u8bbf\u95ee\u8be5\u540e\u7aef\u670d\u52a1\uff0c\u82e5\u53d1\u73b0\u540e\u7aef\u670d\u52a1\u5df2\u6062\u590d\uff0c\u5219\u6062\u590d\u5bf9\u8be5\u540e\u7aef\u7684\u8d1f\u8f7d\u3002<\/p>\n<h1>\u56db\u3001\u8282\u70b9\u81ea\u52a8\u91cd\u542f<\/h1>\n<p>\u7f51\u5173\u9488\u5bf9\u5f02\u5e38\u60c5\u51b5\u5bfc\u81f4\u505c\u6b62\u8fd0\u884c\u7684\u8282\u70b9\u4f1a\u8fdb\u884c\u81ea\u52a8\u91cd\u542f\u3002\u5236\u53f0\u6bcf\u969430\u79d2\u53bb\u8bbf\u95ee\u4e00\u904d\u8fd0\u884c\u4e2d\u7684\u8282\u70b9\u5217\u8868\uff0c\u82e5\u53d1\u73b0\u8282\u70b9\u8fd4\u56de\u5f02\u5e38\uff0c\u5219\u8fdb\u884c\u91cd\u8bd5\uff0c\u82e5\u91cd\u8bd5\u8fc7\u7a0b\u62ff\u5230\u6b63\u5e38\u8fd4\u56de\uff0c\u5219\u89c6\u4e3a\u8282\u70b9\u6b63\u5e38\uff1b\u82e5\u91cd\u8bd53\u6b21\u540e\u8282\u70b9\u4ecd\u8fd4\u56de\u5f02\u5e38\uff0c\u5219\u89c6\u4e3a\u8282\u70b9\u5f02\u5e38\uff0c\u81ea\u52a8\u91cd\u542f\u8282\u70b9\u3002<\/p>\n<h1>\u4e94\u3001\u7194\u65ad<\/h1>\n<p>\u6211\u4eec\u53ef\u80fd\u8fd8\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\uff0c\u7531\u4e8e\u67d0\u4e9b\u63a5\u53e3\u6216\u670d\u52a1\u7684\u4e0d\u53ef\u63a7\u56e0\u7d20\uff0c\u6bd4\u5982\u7f51\u7edc\u8fde\u63a5\u7f13\u6162\uff0c\u8d44\u6e90\u88ab\u5360\u7528\u6216\u8005\u6682\u65f6\u4e0d\u53ef\u7528\u7b49\uff0c\u5bfc\u81f4\u5bf9\u8fd9\u4e9b\u670d\u52a1\u7684\u8c03\u7528\u5931\u8d25\uff0c\u4f46\u662f\u8fd9\u4e9b\u9519\u8bef\u901a\u5e38\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u53ef\u4ee5\u6062\u590d\u6b63\u5e38\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u96be\u4fdd\u6709\u4e9b\u539f\u56e0\u4f7f\u9519\u8bef\u7ed3\u679c\u8d85\u51fa\u9884\u671f\uff0c\u5e76\u4e14\u8fd9\u79cd\u9519\u8bef\u53ef\u80fd\u4e25\u91cd\u5230\u7cfb\u7edf\u7684\u90e8\u5206\u5931\u53bb\u54cd\u5e94\uff0c\u751a\u81f3\u5bfc\u81f4\u6574\u4e2a\u670d\u52a1\u7684\u5b8c\u5168\u4e0d\u53ef\u7528\u3002\u6bd4\u5982\u7531\u5e76\u53d1\u8bf7\u6c42\u5f15\u8d77\u7684\u963b\u585e\uff0c\u8fd9\u79cd\u5bf9\u8bf7\u6c42\u7684\u963b\u585e\u53ef\u80fd\u4f1a\u5360\u7528\u5b9d\u8d35\u7684\u7cfb\u7edf\u8d44\u6e90\uff0c\u5982\u5185\u5b58\uff0c\u7ebf\u7a0b\uff0c\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u7b49\uff0c\u6d88\u8017\u7684\u8d44\u6e90\u4f7f\u5176\u4ed6\u7cfb\u7edf\u4e0d\u76f8\u5173\u7684\u90e8\u5206\u53d7\u5f71\u54cd\u751a\u81f3\u62d6\u7d2f\u6574\u4e2a\u7cfb\u7edf\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5bf9\u5ba2\u6237\u7aef\u7acb\u5373\u8fd4\u56de\u9519\u8bef\u53ef\u80fd\u662f\u4e00\u79cd\u66f4\u597d\u7684\u9009\u62e9\uff0c\u7b49\u5230\u53d1\u73b0\u670d\u52a1\u53ef\u7528\u7684\u65f6\u5019\u518d\u6062\u590d\u8bbf\u95ee\u3002<\/p>\n<p>\u5224\u65ad\u670d\u52a1\u4e0d\u53ef\u7528\u5c31\u5207\u65ad\u5bf9\u670d\u52a1\u7684\u8bbf\u95ee\uff0c\u8fd9\u79cd\u673a\u5236\u50cf\u662f\u7535\u8def\u7684\u4fdd\u62a4\u673a\u5236\uff0c\u6211\u4eec\u90fd\u5f62\u8c61\u5730\u79f0\u5176\u4e3a\u7194\u65ad\u3002\u7194\u65ad\u8ddf\u5fc3\u8df3\u68c0\u6d4b\u4e0d\u592a\u4e00\u6837\uff0c\u5fc3\u8df3\u68c0\u6d4b\u662f\u4e3b\u52a8\u5730\u53bb\u63a2\u6d4b\u63a5\u53e3\u662f\u5426\u6b63\u5e38\uff0c\u800c\u7194\u65ad\u662f\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u624d\u4f1a\u89e6\u53d1\u7684\u3002<\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583\">\u7b80\u5355\u6765\u8bf4\uff0c\u7194\u65ad\u662f\u6307\u63a5\u53e3\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u8bbf\u95ee\u5931\u8d25\u8fbe\u5230\u4e00\u5b9a\u7684\u6b21\u6570\uff0c\u5c31\u89e6\u53d1\u7194\u65ad\u3002\u7194\u65ad\u542f\u52a8\u540e\uff0c\u7f51\u5173\u4e0d\u4f1a\u5bf9\u8be5\u63a5\u53e3\u8fdb\u884c\u8f6c\u53d1\uff0c\u800c\u662f\u76f4\u63a5\u8fd4\u56de\u9884\u5148\u8bbe\u5b9a\u7684\u5185\u5bb9\u3002\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u7f51\u5173\u4f1a\u68c0\u6d4b\u63a5\u53e3\u662f\u5426\u6062\u590d\u6b63\u5e38\uff0c\u7b49\u5230\u63a5\u53e3\u6062\u590d\u6b63\u5e38\uff0c\u7f51\u5173\u624d\u4f1a\u6062\u590d\u5bf9\u8be5\u63a5\u53e3\u7684\u8f6c\u53d1\u3002\u5728EOLINKER AGW\uff08GOKU API Gateway\uff09\u91cc<\/span><span class=\"ql-author-6505583\">\u7194\u65ad\u662f\u6839\u636e\u63a5\u53e3\u8fd4\u56de\u7684\u72b6\u6001\u7801\u89e6\u53d1\u7684\uff0c\u5f02\u5e38\u7684\u72b6\u6001\u7801\u6211\u4eec\u80fd\u8bbe\u7f6e\u591a\u4e2a\uff0c\u6bd4\u5982\u8bf4\u5e38\u89c1\u7684404\u6216500\u3002<\/span><\/p>\n<p>\u6240\u4ee5\u7194\u65ad\u8fd9\u4e2a\u673a\u5236\u53ef\u4ee5\u5206\u4e3a\u4e09\u4e2a\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><span class=\"ql-author-6505583\"><strong>\u7194\u65ad\u6761\u4ef6<\/strong>\uff1a<\/span><\/li>\n<li style=\"list-style-type: none;\">\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">monitorPeriod\uff1a\u76d1\u63a7\u671f\uff08\u79d2\uff09\uff0c\u76d1\u63a7\u670d\u52a1\u7684\u5355\u4f4d\u65f6\u95f4<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">matchStatusCodes\uff1a\u89e6\u53d1\u7194\u65ad\u7684\u5f02\u5e38\u72b6\u6001\u7801\uff0c\u4e00\u822c\u662f404\u3001500\u7b49<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">minimumRequests\uff1a\u89e6\u53d1\u7194\u65ad\u7684\u8bf7\u6c42\u9608\u503c\uff0c\u8d85\u8fc7\u8be5\u9608\u503c\u624d\u4f1a\u89e6\u53d1\u7194\u65ad\u673a\u5236\uff0c\u56e0\u4e3a\u5355\u4f4d\u65f6\u95f4\u5185\u8bf7\u6c42\u6b21\u6570\u8fc7\u5c11\u4e0d\u4e00\u5b9a\u6709\u5fc5\u8981\u89e6\u53d1\u7194\u65ad<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">failurePercent\uff1a\u76d1\u63a7\u671f\u5185\uff0c\u603b\u8bf7\u6c42\u6b21\u6570\u7684\u9519\u8bef\u767e\u5206\u6bd4\uff0c\u4e00\u822c\u662f50%<\/span><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\"><span class=\"ql-author-6505583\"><strong>\u5f00\u542f\u7194\u65ad<\/strong>\uff1a<\/span><\/span><\/li>\n<li style=\"list-style-type: none;\">\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">breakPeriod\uff1a\u7194\u65ad\u671f\uff08\u79d2\uff09\uff0c\u6b64\u671f\u95f4\u5185\u7f51\u5173\u4e0d\u8f6c\u53d1\u8bf7\u6c42\uff0c\u76f4\u63a5\u7531\u7f51\u5173\u8fd4\u56de\u4e0b\u9762\u9884\u8bbe\u7684\u5185\u5bb9<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">statusCode\uff1a\u7194\u65ad\u542f\u52a8\uff0c\u7f51\u5173\u8fd4\u56de\u7684\u72b6\u6001\u7801<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">header\uff1a\u7194\u65ad\u542f\u52a8\uff0c\u7f51\u5173\u8fd4\u56de\u7684\u5934\u90e8\u4fe1\u606f<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">body\uff1a\u7194\u65ad\u542f\u52a8\uff0c\u7f51\u5173\u8fd4\u56de\u7684body\u4fe1\u606f<\/span><\/p>\n<\/li>\n<li class=\"ql-long-6505583\"><strong>\u5173\u95ed\u7194\u65ad\uff0c\u6062\u590d\u670d\u52a1<\/strong>\uff1a<\/li>\n<\/ul>\n<p><span class=\"ql-author-6505583 ql-font-monospace\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 successCounts\uff1a\u7194\u65ad\u671f\u540e\uff0c\u5224\u65ad\u8bf7\u6c42\u662f\u5426\u6062\u590d\u6b63\u5e38\u7684\u6761\u4ef6\uff0c\u82e5\u8fde\u7eed\u8bf7\u6c42\u6210\u529f\u6b21\u6570\u8fbe\u6807\uff0c\u5219\u6062\u590d\u8f6c\u53d1\uff0c\u670d\u52a1\u81ea\u52a8\u8f6c\u5165\u76d1\u63a7\u671f\uff1b\u5426\u5219\uff0c\u7ee7\u7eed\u8fdb\u5165\u7194\u65ad\u671f\u3002\u5982\u6b64\u53cd\u590d\u3002<\/span><\/p>\n<div style=\"width: 834px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" src=\"http:\/\/data.eolinker.com\/course\/kmrzxqT05f14cf4c7481f17ed1d1b84fc32f81a241ee4a4\" alt=\"\" width=\"824\" height=\"264\" \/><p class=\"wp-caption-text\">EOLINKER AGW\uff08GOKU API Gateway\uff09\u7194\u65ad\u63d2\u4ef6\u6267\u884c\u6d41\u7a0b<\/p><\/div>\n<h1>\u516d\u3001\u670d\u52a1\u964d\u7ea7<\/h1>\n<p>\u670d\u52a1\u964d\u7ea7\u6709\u70b9\u50cf\u7194\u65ad\u7684\u5176\u4e2d\u4e00\u90e8\u5206\uff0c\u4f46\u662f\u4f7f\u7528\u4e0a\u6ca1\u6709\u7194\u65ad\u90a3\u4e48\u82db\u523b\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u670d\u52a1\u7684\u8fd4\u56de\u6765\u5224\u65ad\u662f\u5426\u9700\u8981\u8fdb\u884c\u670d\u52a1\u964d\u7ea7\u3002\u4f8b\u5982\u6839\u636eHTTP\u72b6\u6001\u7801\uff0c<span class=\"ql-author-6505583\">\u53ea\u8981\u63a5\u53e3\u8fd4\u56de\u5f02\u5e38\u72b6\u6001\u7801\u5c31\u53ef\u4ee5\u8fdb\u884c\u670d\u52a1\u964d\u7ea7\uff0c\u63a5\u53e3\u8fd4\u56de\u6b63\u5e38\u7684\u72b6\u6001\u7801\uff0c\u7f51\u5173\u5c31\u4f1a\u6b63\u5e38\u8f6c\u53d1\u3002\u670d\u52a1\u964d\u7ea7\u65f6\uff0c\u7531<\/span><span class=\"ql-author-6505583\">\u7f51\u5173\u8fd4\u56de\u670d\u52a1\u964d\u7ea7\u9884\u5148\u8bbe\u5b9a\u7684\u5185\u5bb9\u3002<\/span><\/p>\n<p class=\"ql-long-6505583\">\u670d\u52a1\u964d\u7ea7\u4e5f\u80fd\u5206\u4e3a\u4e09\u4e2a\u90e8\u5206\uff1a<\/p>\n<ul class=\"ql-long-6505583\" data-list-style=\"circle\">\n<li class=\"bullet-item ql-long-6505583\" data-bullet-id=\"7KRR\"><span class=\"ql-author-6505583\"><strong>\u964d\u7ea7\u6761\u4ef6<\/strong>\uff1a<\/span><\/li>\n<\/ul>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"ql-author-6505583 ql-font-monospace\">matchStatusCodes\uff1a<\/span>\u5f02\u5e38\u72b6\u6001\u7801\uff1a\u4e00\u822c\u662f404\u3001500\u7b49<\/span><\/p>\n<ul class=\"ql-long-6505583\" data-list-style=\"circle\">\n<li class=\"bullet-item ql-long-6505583\" data-bullet-id=\"7KRR\"><span class=\"ql-author-6505583\"><strong>\u542f\u52a8\u670d\u52a1\u964d\u7ea7\uff0c\u8fd4\u56de\u9884\u8bbe\u5185\u5bb9<\/strong>\uff1a<\/span><\/li>\n<\/ul>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <span class=\"ql-author-6505583 ql-font-monospace\">statusCode\uff1a\u670d\u52a1\u964d\u7ea7\u65f6\u8fd4\u56de\u7684<\/span>\u72b6\u6001\u7801<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">header\uff1a\u670d\u52a1\u964d\u7ea7\u65f6\u8fd4\u56de\u7684\u5934\u90e8\u4fe1\u606f<\/span><\/p>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583 ql-font-monospace\">body\uff1a\u670d\u52a1\u964d\u7ea7\u65f6\u8fd4\u56de\u7684body\u4fe1\u606f<\/span><\/p>\n<\/li>\n<\/ul>\n<ul class=\"ql-long-6505583\" data-list-style=\"circle\">\n<li class=\"bullet-item ql-long-6505583\" data-bullet-id=\"7KRR\"><span class=\"ql-author-6505583\"><strong>\u5173\u95ed\u670d\u52a1\u964d\u7ea7\uff0c\u6062\u590d\u670d\u52a1<\/strong>\uff1a<\/span><\/li>\n<\/ul>\n<p class=\"ql-long-6505583\"><span class=\"ql-author-6505583\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u63a5\u53e3\u8fd4\u56de\u6b63\u5e38\u72b6\u6001\u7801\u5373\u53ef\u6062\u590d\u670d\u52a1\u3002<\/span><\/p>\n<h1>\u4e03\u3001\u63a5\u53e3\u91cd\u8bd5<\/h1>\n<p>\u867d\u7136\u6709\u5f88\u591a\u673a\u5236\u4fdd\u969c\u63a5\u53e3\u7684\u53ef\u8bbf\u95ee\uff0c\u4f46\u662f\u4e00\u4e2a\u8bf7\u6c42\u62a5\u9519\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u5076\u7136\u4e00\u6b21\u62a5\u9519\u4e0d\u4e00\u5b9a\u662f\u670d\u52a1\u4e0d\u53ef\u7528\uff0c\u6700\u7b80\u5355\u7684\uff0c\u7b2c\u4e00\u6b21\u4e0d\u884c\uff0c\u5e94\u8be5\u518d\u8bbf\u95ee\u4e00\u6b21\u6216\u51e0\u6b21\uff0c\u4ee5\u786e\u5b9a\u7ed3\u679c\u3002<\/p>\n<p>\u8bf7\u6c42\u91cd\u8bd5\u53ef\u4ee5\u8bf4\u662f\u7f51\u5173\u5bf9\u63a5\u53e3\u8f6c\u53d1\u7684\u57fa\u672c\u8981\u6c42\uff0c\u6bcf\u4e2a\u63a5\u53e3\u90fd\u5e94\u8be5\u53ef\u4ee5\u8bbe\u7f6e\u91cd\u8bd5\u6b21\u6570\u3002<span data-shimo-docs=\"[[20,&quot;\u6bcf\u4e2a\u63a5\u53e3\u5747\u53ef\u8bbe\u7f6e\u8bf7\u6c42\u5931\u8d25\u540e\uff0c\u7f51\u5173\u7acb\u5373\u518d\u6b21\u8bf7\u6c42\u7684\u6b21\u6570&quot;]]\"><span class=\"ql-author-6505583\">\u5f53\u8bf7\u6c42\u5931\u8d25\u540e\uff0c\u7f51\u5173\u5e94\u7acb\u5373\u518d\u6b21\u8bf7\u6c42\uff0c\u76f4\u5230\u62ff\u5230\u6b63\u5e38\u8fd4\u56de\uff0c\u6216\u662f\u8fbe\u5230\u91cd\u8bd5\u9608\u503c\uff0c\u518d\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/span><\/span><\/p>\n<h1>\u5c0f\u7ed3<\/h1>\n<p>\u4e00\u4e2a\u8bf7\u6c42\u8fc7\u6765\uff0c\u9996\u5148\u7ecf\u8fc7nginx\u7684\u4e00\u5c42\u8d1f\u8f7d\uff0c\u5230\u8fbe\u7f51\u5173\uff0c\u7136\u540e\u7531\u7f51\u5173\u8d1f\u8f7d\u5230\u771f\u5b9e\u540e\u7aef\uff0c\u82e5\u540e\u7aef\u6709\u95ee\u9898\uff0c\u7f51\u5173\u4f1a\u8fdb\u884c\u91cd\u8bd5\u8bbf\u95ee\uff0c\u591a\u6b21\u8bbf\u95ee\u540e\u4ecd\u8fd4\u56de\u5931\u8d25\uff0c\u53ef\u4ee5\u901a\u8fc7\u7194\u65ad\u6216\u670d\u52a1\u964d\u7ea7\u7acb\u5373\u8fd4\u56de\u7ed3\u679c\u3002\u800c\u4e14\uff0c\u7531\u4e8e\u662f\u8d1f\u8f7d\u5747\u8861\uff0c\u7f51\u5173\u91cd\u8bd5\u65f6\u4e0d\u4e00\u5b9a\u4f1a\u8bbf\u95ee\u5230\u51fa\u9519\u7684\u540e\u7aef\u3002<\/p>\n<p><a href=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2018\/11\/author_huimin.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1087\" src=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2018\/11\/author_huimin.jpg\" alt=\"\" width=\"750\" height=\"260\" srcset=\"http:\/\/blog.eolinker.com\/wp-content\/uploads\/2018\/11\/author_huimin.jpg 750w, http:\/\/blog.eolinker.com\/wp-content\/uploads\/2018\/11\/author_huimin-300x104.jpg 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e1a\u5185\u901a\u5e38\u7528\u591a\u5c119\u6765\u8861\u91cf\u7f51\u7ad9\u7684\u53ef\u7528\u6027\uff0c\u4f8b\u5982QQ\u7684\u53ef\u7528\u6027\u662f4\u4e2a9\uff0c\u4e5f\u5c31\u662fQQ\u80fd\u591f\u4fdd\u8bc1\u5728\u4e00\u5e74\u91cc\uff0c\u670d\u52a1\u572899.99%\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/1477"}],"collection":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1477"}],"version-history":[{"count":2,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/1477\/revisions"}],"predecessor-version":[{"id":1728,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/1477\/revisions\/1728"}],"wp:attachment":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}