{"id":10006033,"date":"2022-07-27T23:17:08","date_gmt":"2022-07-27T15:17:08","guid":{"rendered":"https:\/\/ityet.com\/?p=10006033"},"modified":"2022-07-27T23:17:08","modified_gmt":"2022-07-27T15:17:08","slug":"%e3%80%90serverless%e5%ae%9e%e6%88%98%e3%80%91b%e7%ab%99%e6%af%8f%e6%97%a5%e8%87%aa%e5%8a%a8%e7%ad%be%e5%88%b0%e4%bc%a0%e7%bb%9f%e5%8d%95%e8%8a%82%e7%82%b9%e7%bd%91%e7%ab%99%e7%9a%84serverle","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006033","title":{"rendered":"\u3010Serverless\u5b9e\u6218\u3011B\u7ad9\u6bcf\u65e5\u81ea\u52a8\u7b7e\u5230&amp;&amp;\u4f20\u7edf\u5355\u8282\u70b9\u7f51\u7ad9\u7684Serverless\u4e0a\u4e91"},"content":{"rendered":"<p>\u7b80\u4ecb\uff1a\u00a0Serverless\u597d\u54c7\uff01\u8fd9\u91cc\u5c06\u9488\u5bf9\u4e2a\u4eba\u4e0e\u751f\u4ea7\u4e24\u4e2a\u5e94\u7528\u65b9\u5411\u7684\u6d4b\u8bc4 \u4f7f\u7528Serverless\u5b9e\u73b0\u81ea\u52a8\u83b7\u53d6\u6bcf\u65e5B\u7ad9\u7684\u7ecf\u9a8c\u503c\uff0c\u8ba9\u4f60\u66f4\u5feb\u51b2\u5230LV6\uff01 \u4f60\u7684\u4e1a\u52a1\u7ad9\u70b9\u8fd8\u662f\u4e00\u53f0\u670d\u52a1\u5668All in One\u5417\uff1f\u57fa\u4e8eServerless\u4e0e\u963f\u91cc\u4e91\u4ea7\u54c1\u7684\u519c\u4ea7\u54c1\u7535\u5546\u7f51\u7ad9\u4e0a\u4e91\uff01\u00a0 \u00a0\u4ec0\u4e48\u662f\u51fd\u6570\uff1f\u521a\u521a\u8003\u5b8c\u6570\u5b66\u6ca1\u591a\u4e45\u7684\u6211\uff0c\u8111\u529b\u91cc\u7acb\u9a6c\u60f3\u5230\u7684\u662f\u81ea\u53d8\u91cf\u3001\u56e0\u53d8\u91cf\u3001\u51fd\u6570\u503c\uff0c\u4e5f\u5c31\u662fy=f(x)\u3002\u5f53\u7136\uff0c\u5728\u8ba1\u7b97\u673a\u91cc\uff0c\u51fd\u6570function\u5f80\u5f80\u6307\u7684\u662f\u4e00\u6bb5\u88ab\u5b9a\u4e49\u597d\u7684\u4ee3\u7801\u7a0b\u5e8f\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f20\u53c2\u8c03\u7528\u8fd9\u4e2a\u5b9a\u4e49\u597d\u7684\u51fd\u6570\uff0c\u5b9e\u73b0\u6211\u4eec\u6240\u9700\u8981\u7684\u529f\u80fd\u3002\u90a3\u4e48\uff0c\u4eca\u5929\u7684\u51fd\u6570\u8ba1\u7b97FC\u53c8\u662f\u4ec0\u4e48\uff1f\u00a0 \u00a0\u4e91\u8ba1\u7b97\u65f6\u4ee3\u7684\u5f53\u4e0b\uff0c\u5bb9\u5668\u5316\u6280\u672f\u4e0e\u5404\u79cd\u5de5\u5177\u53d1\u5c55\u7684DevOps\uff0c\u5df2\u7ecf\u628a\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u7684\u5de5\u4f5c\u8fdb\u884c\u4e86\u65b0\u7684\u7edf\u7b79\uff0c\u5f00\u53d1\u4eba\u5458\u5728\u5b8c\u6210\u4ee3\u7801\u7684\u7f16\u5199\u540e\uff0c\u65e0\u9700\u8003\u8651\u73af\u5883\uff0c\u76f4\u63a5\u63d0\u4ea4\u5230\u5404\u79cd\u6d41\u6c34\u7ebf\u5c31\u53ef\u4ee5\u5b8c\u6210\u6d4b\u8bd5\u3001\u5f00\u53d1\u3001\u90e8\u7f72\uff0c\u9879\u76ee\u6784\u5efa\u5fae\u670d\u52a1\uff0c\u7531\u5bb9\u5668\u5b8c\u6210\u73af\u5883\u7684\u5c01\u88c5\u3002\u4f46\u662f\u5f80\u5f80\u6211\u4eec\u6700\u7ec8\u8fd8\u662f\u9700\u8981\u6295\u5165\u7cbe\u529b\u5230\u4e1a\u52a1\u4e0a\u7ebf\u7684\u96c6\u7fa4\uff0c\u662f\u79c1\u6709\u4e91\u73af\u5883\u8fd8\u662f\u516c\u6709\u4e91\uff1f\u662f\u88f8\u91d1\u5c5e\u670d\u52a1\u5668\u8fd8\u662f\u4e91\u5b9e\u4f8bECS\uff1f\u662f\u81ea\u8d2d\u8fd8\u662f\u79df\u7528\uff1f<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231432\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0 \u00a0\u5f53\u7136\uff0cDevOps\u7684\u843d\u5730\uff0c\u670d\u52a1\u5668\/\u96c6\u7fa4\u7684\u8fd0\u7ef4\uff0c\u8fd9\u4e9b\u90fd\u662f\u9700\u8981\u6295\u5165\u5927\u91cf\u7684\u8d44\u6e90\u4e0e\u7cbe\u529b\uff0cDevOps\u662f\u4e00\u6761\u6377\u5f84\uff0c\u4f46\u4e0d\u662f\u552f\u4e00\u7684\u51fa\u8def\u3002\u56e0\u6b64\u51fd\u6570\u8ba1\u7b97FC\u7684\u51fa\u73b0\uff0c\u5e26\u6765\u4e86\u65e0\u670d\u52a1Serverless\u7684\u67b6\u6784\uff0c\u8ba9\u5f00\u53d1\u8005\u5728\u5f00\u53d1\u548c\u90e8\u7f72\u7684\u65f6\u5019\uff0c\u4e0d\u5728\u6709\u90e8\u7f72\u670d\u52a1\u590d\u6742\u7684\u611f\u89c9\uff0c\u5bf9\u670d\u52a1\u5668\u7684\u65e0\u611f\u5316\uff0c\u53ef\u4ee5\u4f7f\u5f00\u53d1\u8005\u771f\u6b63\u7684\u5173\u6ce8\u5728\u81ea\u5df1\u7684\u4ee3\u7801\u4e0a\u3002\u963f\u91cc\u4e91Serverless\u51fd\u6570\u5f0f\u6781\u7b80\u7f16\u7a0b\u53ef\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u521b\u65b0\uff0c\u65e0\u91c7\u8d2d\u548c\u90e8\u7f72\u6210\u672c\u3001\u63d0\u4f9b\u76d1\u63a7\u62a5\u8b66\u7b49\u5b8c\u5907\u7684\u53ef\u89c2\u6d4b\u80fd\u529b\u3002\u51fd\u6570\u8ba1\u7b97\u662f\u4e8b\u4ef6\u9a71\u52a8\u7684\u5168\u6258\u7ba1\u8ba1\u7b97\u670d\u52a1\uff0c\u771f\u6b63\u7684\u65e0\u9700\u53bb\u8003\u8651\u670d\u52a1\u5668\u7684\u8fd0\u7ef4\u7ba1\u7406\uff0c\u53ea\u9700\u8981\u5b8c\u6210\u5f00\u53d1\u7684\u4ee3\u7801\u8fdb\u884c\u4e0a\u4f20\uff0c\u51fd\u6570\u8ba1\u7b97\u4f1a\u901a\u8fc7\u89d2\u8272\u7b56\u7565\u53bb\u89c4\u5212\u8ba1\u7b97\u8d44\u6e90\uff0c\u5f39\u6027\u7684\u65b9\u5f0f\u6267\u884c\u51fd\u6570\uff0c\u6700\u540e\u9ad8\u6548\u7684\u6267\u884c\u90e8\u7f72\u3002\u4f18\u96c5\uff01<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231433\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0Serverless \u5c06\u4f1a\u6709\u90a3\u4e9b\u9002\u7528\u573a\u666f\uff1f\u662f\u4e2a\u4eba\uff1f\u8fd8\u662f\u751f\u4ea7\uff1f\u90a3\u4e48\u8fd9\u6b21\u6211\u5c06\u90e8\u7f72\u4e24\u79cd\u4e0d\u540c\u65b9\u5411\u7684\u5e94\u7528\u5bf9Serverless\u8fdb\u884c\u6d4b\u8bc4\u00a0\u4e00\u3001\u901a\u77e5\u7cfb\u7edf\u4e0eWebhook\uff0cTrigger\u89e6\u53d1\u4e0eChat\u673a\u5668\u4eba\u3002\u8bb8\u591a\u7cfb\u7edf\u4e2d\u6d89\u53ca\u5230\u7684push\u7c7b\u529f\u80fd\uff0c\u4f8b\u5982\u90ae\u4ef6\u3001\u77ed\u4fe1\u3001Webhook\u3002\u5f53\u7136Webhook\u7684\u80fd\u529b\u4e0d\u53ea\u662f\u4fe1\u606f\u901a\u77e5\uff0c\u4e0d\u8fc7\u8fd9\u91cc\u6240\u6307\u7684\u901a\u77e5\u529f\u80fd\u5fc5\u7136\u662f\u9700\u8981\u57fa\u7840\u8bbe\u65bd\u4e5f\u5c31\u662f\u670d\u52a1\u5668\u6765\u652f\u6491\u8fd0\u884c\uff0c\u5982\u679c\u5c06\u8fd9\u4e9b\u529f\u80fd\u76f4\u63a5\u7531Serverless\u6765\u64cd\u4f5c\uff0c\u6211\u4eec\u4fbf\u65e0\u9700\u652f\u4ed8\u8fd0\u7ef4\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u8282\u7701\u4e86\u5927\u91cf\u7684\u5de5\u4f5c\u4e0e\u8d39\u7528\u3002\u540c\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528Serverless\u4e8b\u4ef6\u9a71\u52a8\u6a21\u578b\u5b9e\u73b0\u5b9a\u65f6\u81ea\u52a8\u89e6\u53d1\u4efb\u52a1\uff0c\u81ea\u52a8\u7b7e\u5230\u81ea\u52a8\u53d1\u9001\u3002\u00a0\u00a0\u4e8c\u3001\u5176\u6b21\u5f53\u7136\u662fWeb\u7c7b\u7684\u5e94\u7528\u3002\u57fa\u4e8e\u5404\u7c7bWeb\u6846\u67b6\u7684\u5e94\u7528\u90e8\u7f72\uff0c\u6784\u5efa\u57fa\u4e8eJava\u3001Python\u3001PHP\u7b49\u8bed\u8a00\u7684\u7ad9\u70b9\uff0cServerless\u5f88\u5bb9\u6613\u5b9e\u73b0\u5982wordpress\u8fd9\u6837\u7684\u535a\u5ba2\u5e94\u7528\u7684\u4e0a\u7ebf\u3002\u914d\u5408\u5176\u4ed6\u4e91\u4ea7\u54c1\uff0cCodeup\u3001OSS\u3001RDS\u7b49\uff0c\u66f4\u80fd\u5b9e\u73b0\u9ad8\u53ef\u7528\u9ad8\u6027\u80fd\u7684Web\u5e94\u7528\uff0c\u5982\u5b98\u65b9\u63d0\u4f9b\u7684Kod\u4e91\u76d8\u7cfb\u7edf\u3002\u00a0 \u00a0\u00a0\u00a0\u4e00\u3001\u4f7f\u7528Serverless\u5b9e\u73b0B\u7ad9\u6bcf\u65e5\u767b\u9646\u7b7e\u5230\u00a0 \u00a0 \u00a0 \u00a0\u4f5c\u4e3a\u4e00\u4e2a\u8001b\u7ad9\u7528\u6237\uff0cb\u7ad9\u7b49\u7ea7\u65e0\u7591\u662f\u59a5\u59a5\u7684&#8221;\u540d\u7247&#8221;\uff0c\u5f53\u7136\u6211\u65e9\u5df2\u662f\u516d\u7ea7\u5927\u4f6c\u7684\u4e00\u5458\u4e86\u3002b\u7ad9\u5347\u7ea7\u6240\u9700\u7684\u7ecf\u9a8c\u503c\u662f\u5173\u952e\uff0c\u767b\u9646\u3001\u6295\u5e01\u3001\u89c2\u770b\u90fd\u4f1a\u79ef\u7d2f\u7ecf\u9a8c\u3002\u4e3a\u4e86\u53ef\u4ee5\u5feb\u901f\u5347\u7ea7\uff0c\u8fd9\u6b21\u6211\u5c06\u4f7f\u7528\u963f\u91cc\u4e91Serverless\uff0c\u5b9e\u73b0\u6bcf\u65e5b\u7ad9\u7684\u767b\u9646\u7ecf\u9a8cGet\uff0c\u89c2\u770b\u89c6\u9891\u7ecf\u9a8cGet\uff0c\u89c2\u770b\u76f4\u64ad\u94f6\u74dc\u5b50Get(\u767d\u5ad6\u7684\u76f4\u64ad\u9001\u793c\u9053\u5177)\uff0c\u5e76\u4e14\u914d\u5408\u9489\u9489\u673a\u5668\u4eba\uff0c\u5b9e\u73b0Webhook\u7684\u6d88\u606f\u63a8\u9001\u30021.\u521b\u5efaServerless\u670d\u52a1\u53ca\u51fd\u6570\u00a0\u8fdb\u5165\u51fd\u6570\u8ba1\u7b97FC\u63a7\u5236\u53f0\uff0c\u9009\u62e9\u3010\u670d\u52a1\u53ca\u51fd\u6570\u3011\uff0c\u70b9\u51fb\u3010\u521b\u5efa\u670d\u52a1\u3011<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231434\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u5728\u3010\u521b\u5efa\u670d\u52a1\u3011\u7684\u9875\u9762\u4e2d\uff0c\u8f93\u5165\u670d\u52a1\u540d\u79f0\uff0c\u5e76\u9009\u62e9\u542f\u7528\u65e5\u5fd7\u529f\u80fd\uff0c\u65e5\u5fd7\u66f4\u80fd\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u7684\u6392\u67e5\u9519\u8bef\u8fd9\u91cc\u6211\u5f53\u7136\u9700\u8981\u6807\u6ce8\u670d\u52a1\u7684\u529f\u80fd\uff0c\u5373\u5b9e\u73b0bilibili\u7684\u65e5\u5e38\u767b\u9646\u7b7e\u5230\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231435\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u8fdb\u5165\u3010\u521b\u5efa\u51fd\u6570\u3011\u9875\u9762\uff0c\u9009\u62e9\u3010\u4f7f\u7528\u6807\u51c6Runtime\u4ece\u96f6\u521b\u5efa\u3011\u914d\u7f6e\u51fd\u6570\u540d\u79f0\uff0c\u9009\u62e9\u8fd0\u884c\u73af\u5883\u4e3aPython3\uff0c\u5e76\u4e14\u9009\u62e9\u4ece\u6587\u4ef6\u5939\u4e0a\u4f20\u4ee3\u7801\u3002\u6ce8\u610f\uff0c\u8fd9\u91cc\u5982\u679c\u6709\u4f9d\u8d56\u5305\u9700\u8981\u63d0\u524d\u4e0b\u8f7d\u5230\u4ee3\u7801\u5305\u4e0b\uff0c\u6211\u8fd9\u91cc\u9700\u8981\u7528\u5230requests\u5305 \uff0c\u5728\u672c\u5730\u9700\u8981\u6267\u884c pip install -t . &lt;\u6a21\u5757\u540d\u79f0&gt;\u3002\u4e0d\u8fc7\u540e\u7eed\u4e5f\u53ef\u4ee5\u5728\u63a7\u5236\u53f0\u5904\u6267\u884c\u4e0b\u8f7d\u547d\u4ee4\u8fd9\u91cc\u7684Python\u529f\u80fd\u5b9e\u73b0\u7684\u811a\u672c\u662f\u5b9a\u65f6\u89e6\u53d1\u7c7b\u7684\uff0c\u56e0\u6b64\u6211\u4eec\u9009\u62e9\u8bf7\u6c42\u5904\u7406\u7a0b\u5e8f\u7c7b\u578b\u4e3a\u3010\u5904\u7406\u4e8b\u4ef6\u8bf7\u6c42\u3011<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231436\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u4e0b\u65b9\u914d\u7f6e\u89e6\u53d1\u5668\uff0c\u9009\u62e9\u5b9a\u65f6\u89e6\u53d1\u5668\uff0c\u8f93\u5165\u540d\u79f0\uff0c\u9009\u62e9\u3010\u6307\u5b9a\u65f6\u95f4\u3011\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u7684\u662f\u6bcf\u65e5\u768423\u70b9\u8fdb\u884c\u811a\u672c\u7684\u8fd0\u884c\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231437\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>Python\u811a\u672c\u5185\u5bb9# &#8211;<em>&#8211; coding: utf8 &#8211;<\/em>&#8211;<br \/>import requests <br \/>import json<br \/>import time<br \/>import re<br \/>import sys<br \/>import codecs<br \/>from bs4 import BeautifulSoup<br \/>from json.decoder import JSONDecodeError<\/p>\n<h2>B\u7ad9\u767b\u9646Cookie<\/h2>\n<p>cookie = &#8220;&#8221;<\/p>\n<h2>Webhook\u5730\u5740<\/h2>\n<p>webhook = &#8220;https:\/\/oapi.dingtalk.com\/robot\/send?access_token=xxxx&#8221;<\/p>\n<h2>\u81ea\u52a8\u89c2\u770b\u7684BV\u53f7,\u6770\u4f26\u65b0\u4e13-\u6700\u4f1f\u5927\u7684\u4f5c\u54c1<\/h2>\n<p>bid = &#8216;BV1ua411p7iA&#8217; <\/p>\n<p>uid=re.match(&#8216;(?&lt;=DedeUserID=).*?(?=;)&#8217;,cookie)<br \/>sid=re.match(&#8216;(?&lt;=sid=).*?(?=;)&#8217;,cookie)<br \/>csrf=re.match(&#8216;(?&lt;=bili_jct=).*&#8217;,cookie)<\/p>\n<h2>\u90e8\u5206\u7f16\u7801\u95ee\u9898<\/h2>\n<p>sys.stdout = codecs.getwriter(&#8220;utf-8&#8221;)(sys.stdout.detach())<\/p>\n<h2>bv\u8f6c\u4e3aav<\/h2>\n<p>def bv_to_av(bv):<\/p>\n<pre><code>headers={   \n'User-Agent': 'Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/80.0.3987.163 Safari\/537.36',\n}\nr = requests.get('https:\/\/api.bilibili.com\/x\/web-interface\/view', {'bvid': bv}, headers=headers)\nresponse = decode_json(r)\ntry:\n    return str(response['data']['aid'])\nexcept (KeyError, TypeError):\n    return '883409884'\n<\/code><\/pre>\n<h2>json\u89e3\u6790<\/h2>\n<p>def decode_json(r):<\/p>\n<pre><code>try:\n    response = r.json()\nexcept JSONDecodeError:\n    return -1\nelse:\n    return response\n\n<\/code><\/pre>\n<h2>\u81ea\u5b9a\u4e49\u9489\u9489\u673a\u5668\u4eba\u63a8\u9001<\/h2>\n<p>def pushinfo(info,specific):<\/p>\n<h2>\u5b9a\u4e49\u63a8\u9001\u5185\u5bb9\uff0c\u683c\u5f0f\u53c2\u8003<a href=\"https:\/\/link.segmentfault.com\/?enc=MMtCSqoG4SLCbNxwmm8uWw%3D%3D.vz0gir%2BuFbfbd6aAkfPDRHQ3gQUmdjW4koIfTJdLeBnmvb%2B7l16La273tC9KQ%2FUDPRPa2owBBICKfTJt9ISWejR6VERYFI3jmyT%2FvK5GKOg%3D\" rel=\"nofollow\">https:\/\/open.dingtalk.com\/doc&#8230;<\/a><\/h2>\n<h2>\u6ce8\u610f\u673a\u5668\u4eba\u7684\u5173\u952e\u8bcd<\/h2>\n<pre><code>data = {\n &quot;msgtype&quot;: &quot;text&quot;,\n  &quot;text&quot;: {\n  &quot;title&quot;:&quot;Taoreset&quot;,\n      &quot;content&quot;: &quot;\u3010Taoreset-Serverless\u63a8\u9001\u3011\/n&quot;+info+specific\n }<\/code><\/pre>\n<p>}<\/p>\n<pre><code>headers = {'content-type': 'application\/json'} # \u8bf7\u6c42\u5934\nr = requests.post(webhook, headers=headers, data=json.dumps(data))\nr.encoding = 'utf-8'\nprint (r.text)\n<\/code><\/pre>\n<h2>\u963fb\u767b\u5f55\uff0c\u5f97\u767b\u9646\u7ecf\u9a8c<\/h2>\n<p>def login():<\/p>\n<pre><code>headers={   \n'User-Agent': 'Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/80.0.3987.163 Safari\/537.36',\n'Cookie':cookie\n}\nresponse = requests.session().get('http:\/\/api.bilibili.com\/x\/space\/myinfo',headers=headers)\nrejson = json.loads(response.text)\ncode = rejson['code']\nmsg = rejson['message']\nif code == 0:\n    print('\u767b\u5f55\u6210\u529f')\n    return True\nelse:\n    print('\u767b\u5f55\u5931\u8d25\uff1a'+msg)\n    return False\n<\/code><\/pre>\n<h2>\u83b7\u53d6\u7528\u6237\u4fe1\u606f<\/h2>\n<p>def get_user_info():<\/p>\n<pre><code>headers = {\n    'Cookie':cookie\n}\nresponse = requests.session().get('http:\/\/api.bilibili.com\/x\/space\/myinfo?jsonp=jsonp',headers=headers)\nrejson = json.loads(response.text)\ncode = rejson['code']\nmsg = rejson['message']\nif code == 0:\n    userInfo=['\u8d26\u53f7\uff1a'+str(rejson['data']['silence']),\n    '\u786c\u5e01\uff1a'+str(rejson['data']['coins']),\n    '\u7ecf\u9a8c\uff1a'+str(rejson['data']['level_exp']['current_exp'])+&quot;\/&quot;+str(rejson['data']['level_exp']['next_exp']),\n    '\u7b49\u7ea7\uff1a'+str(rejson['data']['level']),\n    '\u6635\u79f0\uff1a'+str(rejson['data']['name'])\n    ]\n    print(userInfo[0]) \n    print (userInfo[1])\n    print(userInfo[2])\n    print(userInfo[3])\n    print(userInfo[4])\n    return userInfo\nelse:\n    print(&quot;\u7528\u6237\u4fe1\u606f\u83b7\u53d6\u5931\u8d25\uff1a&quot;+msg)\n    return &quot;\u7528\u6237\u4fe1\u606f\u83b7\u53d6\u5931\u8d25\uff1a&quot;+msg\n<\/code><\/pre>\n<h2>\u76f4\u64ad\u7b7e\u5230\uff0c\u8d5a\u94f6\u74dc\u5b50\u513f<\/h2>\n<p>def do_sign():<\/p>\n<pre><code>headers = {\n    'Cookie':cookie\n}\nresponse = requests.session().get('https:\/\/api.live.bilibili.com\/sign\/doSign',headers=headers)\nrejson = json.loads(response.text)\ncode = rejson['code']\nmsg = rejson['message']\n\nif code == 0:\n    print('\u76f4\u64ad\u7b7e\u5230\u6210\u529f\uff01') \n    return True\nelse:\n    print(&quot;\u76f4\u64ad\u7b7e\u5230\u5931\u8d25\uff1a&quot;+msg)\n    return False\n<\/code><\/pre>\n<h2>\u770bBV\u53f7\u89c6\u9891\uff0c\u5f97\u89c2\u770b\u7ecf\u9a8c<\/h2>\n<p>def watch():<\/p>\n<pre><code>    aid=bv_to_av(bid)\n    headers = {\n        'Cookie':cookie\n    }\n    response = requests.session().get('http:\/\/api.bilibili.com\/x\/web-interface\/view?aid='+str(aid),headers=headers)\n    rejson = json.loads(response.text)\n    code = rejson['code']\n    #print(response.text)\n    if code == 0:\n        cid = rejson['data']['cid']\n        duration = rejson['data']['duration']\n    else:\n        print('\u89c6\u9891\u4fe1\u606f\u89e3\u6790\u5931\u8d25')\n        return False\n    payload = {\n        'aid': aid,\n        'cid': cid,\n        'jsonp': &quot;jsonp&quot;,\n        'mid': uid,\n        'csrf': csrf,\n        'played_time': 0,\n        'pause': False,\n        'realtime': duration,\n        'dt': 7,\n        'play_type': 1,\n        'start_ts': int(time.time()),\n    }\n    response = requests.session().post('http:\/\/api.bilibili.com\/x\/report\/web\/heartbeat',data=payload,headers=headers)\n    rejson = json.loads(response.text)\n    code = rejson['code']\n    if code == 0:\n        time.sleep(5)\n        payload['played_time'] = duration - 1\n        payload['play_type'] = 0\n        payload['start_ts'] = int(time.time())\n        response = requests.session().post('http:\/\/api.bilibili.com\/x\/report\/web\/heartbeat',data=payload,headers=headers)\n        rejson = json.loads(response.text)\n        code = rejson['code']\n        if code == 0:\n            print(f&quot;av{aid}\u89c2\u770b\u6210\u529f&quot;)\n            return True\n    print(f&quot;av{aid}\u89c2\u770b\u5931\u8d25 {response}&quot;)\n    return False<\/code><\/pre>\n<p>def main(*args):<\/p>\n<pre><code>if login():\n    ui = get_user_info()\n    desp='\u76f4\u64ad\u7b7e\u5230\uff1a'+str(do_sign())+'\/n\/n'+'\u89c2\u770b\u89c6\u9891\uff1a'+str(watch())+'\/n\/n'+ui[0]+'\/n\/n'+ui[1]+'\/n\/n'+ui[2]+'\/n\/n'+ui[3]+'\/n\/n'+ui[4]+'\/n\/n'\n    pushinfo('\u54d4\u54e9\u54d4\u54e9\u7b7e\u5230\u6210\u529f',desp)\nelse:\n    pushinfo('\u54d4\u54e9\u54d4\u54e9\u7b7e\u5230\u5931\u8d25','')<\/code><\/pre>\n<p>if <strong>name<\/strong> == &#8216;__main__&#8217;:<\/p>\n<pre><code>main()\u00a02.\u4fee\u6539\u51fd\u6570\u914d\u7f6e\u5b8c\u6210\u51fd\u6570\u7684\u521b\u5efa\u540e\u5c31\u8fdb\u5165\u4e86\u51fd\u6570\u7ba1\u7406\u7684\u754c\u9762\u3002\u51fd\u6570\u4ee3\u7801\u8fd9\u91cc\u5c31\u663e\u793a\u4e86\u6211\u4eec\u4e0a\u4f20\u7684\u4ee3\u7801\u6587\u4ef6\uff0c\u6240\u6709\u4ee3\u7801\u6267\u884c\u7684\u672c\u5730\u8def\u5f84\u90fd\u5728\/code\u76ee\u5f55\u4e0b\u3002<\/code><\/pre>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231438\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u5982\u679c\u6709\u4f9d\u8d56\u6a21\u5757\u63d0\u793a\u6ca1\u6709\uff0c\u5728\u4e0b\u65b9\u7684\u63a7\u5236\u53f0\u7ec8\u7aef\u8f93\u5165\u547d\u4ee4\u4e5f\u53ef\u4ee5\u5b8c\u6210\u6a21\u5757\u5b89\u88c5\u4e0b\u8f7d\uff0c\u6240\u6709\u5de5\u4f5c\u76ee\u5f55\u4e0b\u7684\u4ee3\u7801\u4fee\u6539\uff0c\u5b8c\u6210\u540e\u90fd\u9700\u8981\u70b9\u51fb\u90e8\u7f72\u4ee3\u7801\u8fdb\u884c\u90e8\u7f72\u4e0a\u4f20\u3002pip install -t . requests bs4<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231439\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u5176\u4f59\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u51fd\u6570\u7684\u914d\u7f6e\uff0c\u70b9\u51fb\u3010\u51fd\u6570\u914d\u7f6e\u3011\uff0c\u627e\u5230\u3010\u73af\u5883\u4fe1\u606f\u3011\u7f16\u8f91\uff0c\u4fee\u6539\u3010\u8bf7\u6c42\u5904\u7406\u7a0b\u5e8f\u3011\uff0c\u4fee\u6539\u51fd\u6570\u5165\u53e3\u4e3a&lt;\u8981\u6267\u884c\u7684\u4ee3\u7801\u6587\u4ef6\u540d.\u6267\u884c\u7684\u51fd\u6570\u540d&gt;\uff0c\u6211\u8fd9\u91cc\u811a\u672c\u7684\u6587\u4ef6\u540d\u4e3abilibiliSignin.py\uff0c\u4ee3\u7801\u91cc\u7684\u4e3b\u51fd\u6570\u4e3amain\uff0c\u56e0\u6b64\u51fd\u6570\u5165\u53e3\u5c31\u4e3a&lt;bilibiliSignin.main&gt;<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231440\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a03.\u5b8c\u6210\u51fd\u6570\u529f\u80fd\u6d4b\u8bd5\u9009\u62e9\u3010\u6d4b\u8bd5\u51fd\u6570\u3011\uff0c\u5373\u53ef\u7acb\u5373\u5bf9\u51fd\u6570\u8fdb\u884c\u89e6\u53d1\uff0c\u70b9\u51fb\u6d4b\u8bd5\u51fd\u6570\u8fdb\u884c\u6d4b\u8bd5<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231441\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u5b8c\u6210\u6d4b\u8bd5\u540e\u4e0b\u65b9\u5c31\u4f1a\u663e\u793a\u65e5\u5fd7\u8f93\u51fa\u5185\u5bb9\uff0c\u65b9\u4fbf\u67e5\u770b\u7ed3\u679c\u548c\u6392\u9519<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231442\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u5b8c\u6210\u6548\u679c\uff0c\u5b9a\u65f6\u89e6\u53d123\u70b9\u51c6\u65f6\u5b8c\u6210\u7b7e\u5230\uff0c\u5e76\u7531\u9489\u9489\u7684\u673a\u5668\u4eba\u63a8\u9001\u6d88\u606f<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231443\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u6b38\u563f\uff0c\u5927\u4f19\u4e00\u8d77\u5427Serverless\u811a\u672c\u8dd1\u8d77\u6765\uff0c\u65e9\u65e5\u8fce\u63a5B\u7ad9\u516d\u7ea7\u4f1a\u5458\uff01\uff01\uff01<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231444\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u811a\u672c\u53c2\u8003Github ,by sanshuifeibing\u00a0\u4e8c\u3001Serverless\u519c\u4ea7\u54c1\u7535\u5546\u7f51\u7ad9\u4e0a\u4e91\u6539\u9020\u00a0 \u00a0\u8fd9\u91cc\u6211\u62ff\u9694\u58c1\u8f6f\u4ef6\u4e13\u4e1a\uff08\u4ffa\u662f\u7f51\u7edc\u6280\u672f\u7684\uff09\u7684\u4e00\u4e2a\u5927\u4f5c\u4e1a\u9879\u76ee\u4f5c\u4e3a\u90e8\u7f72\u7684\u6848\u4f8b\u3002\u9879\u76ee\u662f\u975e\u5e38\u7b80\u5355\u5e76\u4e14\u529f\u80fd\u5355\u4e00\u7684\uff0c\u4f46\u662f\u4e5f\u662f\u975e\u5e38\u7ecf\u5178\u7684\u524d\u540e\u7aef\u5206\u79bb\u9879\u76ee\uff0c\u7531\u4e8e\u6211\u5f00\u53d1\u4e0d\u592a\u4f1a\uff0c\u9879\u76ee\u5177\u4f53\u6280\u672f\u5c31\u4e0d\u732e\u4e11\u4e86\u3002\u4e4b\u524d\u636e\u8bf4\u662f\u6709\u4ec0\u4e48\u7248\u6743\u7684\uff0c\u6211\u5c31\u4e0d\u653e\u6e90\u4ee3\u7801\u4e86hhhh\u00a0 \u00a0\u5728\u6539\u9020\u4e4b\u524d\uff0c\u6211\u76f8\u4fe1\u662f\u5f88\u591a\u4e2d\u5c0f\u578b\u516c\u53f8\u4e1a\u52a1\u7684\u7ecf\u5178AllinOne\u7ed3\u6784\uff0c\u628a\u4e1a\u52a1\u6d89\u53ca\u5230\u7684\u6240\u6709\u670d\u52a1\u4e2d\u95f4\u4ef6\u8fd0\u884c\u5728\u4e00\u53f0\u670d\u52a1\u5668\/\u865a\u62df\u673a\u4e0a\uff0c\u867d\u7136\u73b0\u5728\u770b\u53ef\u80fd\u5b8c\u5b8c\u5168\u5168\u662f\u5b9e\u9a8c\u5ba4\u73af\u5883\uff0c\u4f46\u662f\u5b9e\u9645\u770b\u5230\u7684\u4f9d\u7136\u6709\u5f88\u591a\u9879\u76ee\u662f\u8fd9\u4e48\u505a\u7684\u3002\u574f\u5904\u4e5f\u4e0d\u7528\u591a\u63d0\uff0c\u90e8\u7f72\u8fd0\u7ef4\u96be\u3001\u96be\u4ee5\u8fdb\u884c\u8d44\u6e90\u7684\u6269\u5bb9\u3001\u540e\u7eed\u6539\u9020\u590d\u6742\u3001\u6027\u80fd\u5dee\u6ca1\u6709\u5e94\u7528\u9ad8\u53ef\u7528\u6280\u672f\u7b49\u7b49\u3002\u3002\u3002\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231445\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0 \u00a0Serverless\u7684\u519c\u4ea7\u54c1\u7535\u5546\u5e73\u53f0\u4e0a\u4e91\uff0c\u9879\u76ee\u6bd4\u8f83\u7b80\u5355\uff0c\u89c4\u5212\u5c31\u5728\u540c\u4e00\u5730\u57df\u4e86\u3002\u4e3b\u8981\u662f\u5c06\u524d\u7aefHTML\u9875\u9762\u4e0e\u540e\u7aefJar\u5305\u8fd0\u884c\u5206\u522b\u7531\u4e24\u4e2a\u5355\u72ec\u7684Serverless\u51fd\u6570\u5b8c\u6210\u8fd0\u884c\u8ba1\u7b97\u3002\u5176\u4f59\u652f\u6491\u670d\u52a1\u4e0a\u4e91\uff0c\u5206\u522b\u7528\u5bf9\u5e94\u7684\u4e91\u4ea7\u54c1\u5b9e\u73b0\uff0c\u8fd9\u91ccRedis\u670d\u52a1\u7531\u4e8e\u6211\u81ea\u5df1ECS\u4e0a\u6709\u8fd0\u884credis\u670d\u52a1\uff0c\u5c31\u4e0d\u518d\u5355\u72ec\u8d2d\u4e70\u4e91\u6570\u636e\u5e93Redis\u7248\u4e86\uff0c\u5f53\u7136\u63a8\u8350\u4f7f\u7528\u963f\u91cc\u4e91\u7684Redis\u4e91\u6570\u636e\u5e93\u4ea7\u54c1\u3002\u00a0\u00a0\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231446\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a01.Serverless\u670d\u52a1\u521b\u5efa\u8fdb\u5165\u51fd\u6570\u8ba1\u7b97\u63a7\u5236\u53f0\uff0c\u9009\u62e9\u3010\u670d\u52a1\u53ca\u51fd\u6570\u3011\uff0c\u70b9\u51fb\u3010\u521b\u5efa\u670d\u52a1\u3011\u8f93\u5165\u521b\u5efa\u670d\u52a1\u7684\u540d\u79f0\u4e0e\u63cf\u8ff0\uff0c\u5f00\u542f\u65e5\u5fd7\u529f\u80fd\uff0c\u70b9\u51fb\u786e\u5b9a\uff0c\u5b8c\u6210\u670d\u52a1\u7684\u521b\u5efa<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231447\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u670d\u52a1\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u8fdb\u5165\u3010\u670d\u52a1\u8be6\u60c5\u3011\uff0c\u627e\u5230\u3010\u7f51\u7edc\u914d\u7f6e\u3011\uff0c\u70b9\u51fb\u3010\u7f16\u8f91\u3011\u9009\u62e9\u5141\u8bb8\u8bbf\u95eeVPC\uff0c\u9009\u62e9\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u9009\u62e9VPC\u3001vSwitch\u3001\u5b89\u5168\u7ec4\uff0c\u8fd9\u91cc\u9700\u8981\u548c\u540e\u7eed\u5176\u4ed6\u652f\u6491\u7684\u4e91\u4ea7\u54c1\uff08\u6570\u636e\u5e93\u7b49\uff09\u4fdd\u6301\u5728\u540c\u4e00VPC\u4e0b\u3002\u56e0\u6b64\u9700\u8981\u505a\u597d\u4e91\u4e0a\u7f51\u7edc\u7684\u89c4\u5212\uff0c\u4e5f\u8981\u770b\u4e00\u4e0b\u4ea7\u54c1\u662f\u5426\u5728\u5730\u57df\u4e0b\u6709\u6ca1\u6709\u5e93\u5b58\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231448\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a02.\u524d\u7aef\u9875\u9762Serverless\u51fd\u6570\u521b\u5efa\u5b8c\u6210\u670d\u52a1\u521b\u5efa\u540e\uff0c\u70b9\u51fb\u3010\u521b\u5efa\u51fd\u6570\u3011\uff0c\u8fdb\u5165\u51fd\u6570\u7684\u521b\u5efa\u9875\u9762\u9009\u62e9\u3010\u4f7f\u7528\u81ea\u5b9a\u4e49\u8fd0\u884c\u65f6\u5e73\u6ed1\u8fc1\u79fbWebServer\u3011\uff0c\u8f93\u5165\u51fd\u6570\u540d\u79f0\uff0c\u9009\u62e9\u8fd0\u884c\u73af\u5883\u4e3a\u3010Nginx\u3011\uff0c\u4e0a\u4f20\u524d\u7aefhtml\u4ee3\u7801\u4e0enginx\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u9009\u62e9\u76d1\u542c\u7aef\u53e3\u4e3a80\uff0c\u5373\u4e3a\u539fnginx\u4e2d\u95f4\u4ef6\u7684\u670d\u52a1\u7aef\u53e3\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231449\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u00a0\u00a0 \u00a0\u5b8c\u6210\u51fd\u6570\u521b\u5efa\u540e\uff0c\u8fdb\u5165\u5230\u51fd\u6570\u8be6\u60c5\u754c\u9762\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u4ee3\u7801\u4e2d\u5bf9\u4ee3\u7801\u8fdb\u884c\u7f16\u8f91\u4fee\u6539\uff0c\u4ee3\u7801\u6539\u52a8\u540e\u9700\u8981\u70b9\u51fb\u90e8\u7f72\u4ee3\u7801\u91cd\u65b0\u4e0a\u4f20\u3002\u4e0a\u8ff0\u4e5f\u63d0\u5230\u4e86\uff0c\u8fd9\u91cc\u9700\u8981\u5c06Nginx\u670d\u52a1\u914d\u7f6e\u4e00\u540c\u4e0a\u4f20\uff0c\u5176\u4e2d\u9700\u8981\u62f7\u8d1d\u4e00\u4efd\/etc\/nginx\/mime.types\u6587\u4ef6\u5230\u5f53\u4e0b\u76ee\u5f55\uff0c\u907f\u514dmime\u6587\u4ef6\u7c7b\u578b\u6620\u5c04\u9519\u8bef\u3002\u00a0 \u00a0\u8fd9\u91cc\u653enginx\u5173\u952e\u914d\u7f6e\uff0c\u6839\u636e\u81ea\u5df1\u7684\u4e1a\u52a1\u60c5\u51b5\u4fee\u6539\uff0c\u6ce8\u610f\u914d\u7f6e\u4e2d\u7aef\u53e3\u76d1\u542c\u9700\u8981\u4e0e\u51fd\u6570\u521b\u5efa\u76d1\u542c\u7aef\u53e3\u4fdd\u6301\u4e00\u81f4\uff0c\u540c\u65f6\u7f51\u9875\u4ee3\u7801\u7684\u8def\u5f84\u8bbe\u7f6e\u4e3a\/codehttp {<\/p>\n<pre><code>include mime.types;  #\u6ce8\u610f\u5f15\u5165\u6b64\u6587\u4ef6\nkeepalive_timeout  900;\nserver {\n    listen       80;        \n    server_name  localhost;\n    location \/ {\n        root   \/code;\n        index  index.html index.htm;\n        proxy_set_header    Host $host; \n        proxy_set_header    X-Real-IP $remote_addr;  \n        proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;\n   }\n    location \/users {\n        proxy_pass http:\/\/serverless.\u540e\u7aef\u51fd\u6570\u8bbf\u95ee\u5730\u5740.run;      <\/code><\/pre>\n<h2>Nginx\u53cd\u4ee3\u4f20\u7ed9\u540e\u7aef\u7684\u51fd\u6570\uff0c\u5730\u5740\u5728\u540e\u7eed\u540e\u7aef\u51fd\u6570\u521b\u5efa\u5b8c\u53ef\u4ee5\u62f7\u8d1d<\/h2>\n<pre><code>    }\n    location \/items {\n        proxy_pass http:\/\/serverless.\u540e\u7aef\u51fd\u6570\u8bbf\u95ee\u5730\u5740.run; <\/code><\/pre>\n<h2>Nginx\u53cd\u4ee3\u4f20\u7ed9\u540e\u7aef\u7684\u51fd\u6570\uff0c\u5730\u5740\u5728\u540e\u7eed\u540e\u7aef\u51fd\u6570\u521b\u5efa\u5b8c\u53ef\u4ee5\u62f7\u8d1d<\/h2>\n<pre><code>    }\u00a0<\/code><\/pre>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231450\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u53ef\u4ee5\u5728\u8c03\u7528\u65e5\u5fd7\u67e5\u8be2\u76f8\u5173\u65e5\u5fd7<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231451\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u5f53\u51fd\u6570\u89e6\u53d1\u8fd0\u884c\uff0cServerless\u5c06\u4f1a\u6839\u636e\u8bbf\u95ee\u8bf7\u6c42\u81ea\u52a8\u8d77\u5b9e\u4f8b\uff0c\u5728\u8fd9\u91cc\u53ef\u4ee5\u624b\u52a8\u767b\u9646\u5b9e\u4f8b\uff0c\u53bb\u8fdb\u884c\u4e2d\u95f4\u4ef6\u670d\u52a1\u7684\u65e5\u5fd7\u3001\u8fd0\u884c\u73af\u5883\u7684\u4e00\u4e9b\u67e5\u770b\u4e0e\u6392\u9519\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231452\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>3.\u540e\u7aefServerless\u51fd\u6570\u521b\u5efa\u00a0 \u00a0\u56de\u5230\u51fd\u6570\u670d\u52a1\u754c\u9762\uff0c\u518d\u6b21\u70b9\u51fb\u3010\u521b\u5efa\u51fd\u6570\u3011\uff0c\u8fdb\u5165\u51fd\u6570\u7684\u521b\u5efa\u9875\u9762\u9009\u62e9\u3010\u4f7f\u7528\u81ea\u5b9a\u4e49\u8fd0\u884c\u65f6\u5e73\u6ed1\u8fc1\u79fbWebServer\u3011\uff0c\u8f93\u5165\u51fd\u6570\u540d\u79f0\uff0c\u9009\u62e9\u8fd0\u884c\u73af\u5883\u4e3a\u3010Java\u3011\uff0c\u4e0a\u4f20\u6253\u5305\u597d\u7684Jar\u5305\u6587\u4ef6\u3002\u00a0 \u00a0\u6839\u636e\u5177\u4f53\u4e1a\u52a1\u4fee\u6539\u3010\u542f\u52a8\u547d\u4ee4\u3011\u4e0e\u3010\u76d1\u542c\u7aef\u53e3\u3011\u3002\u6211\u8fd9\u91cc\u9700\u8981\u76d1\u542c\u4e1a\u52a1\u7aef\u53e3\u4e3a8080\uff0c\u5e76\u4e14\u9700\u8981\u5728\u8fd0\u884c\u65f6\u4f20\u5165\u6570\u636e\u5e93\u8fde\u63a5\u7684\u53c2\u6570\uff0c\u8fd9\u91cc\u6240\u914d\u7f6e\u7684\u6570\u636e\u5e93\u6e90\u7528\u6237\u540d\u5bc6\u7801\u8fde\u63a5\u5730\u5740\uff0c\u5728\u540e\u7eed\u7684\u4e91\u6570\u636e\u5e93RDS\u4e2d\u4f1a\u8fdb\u884c\u76f8\u5173\u8bbe\u7f6e\u3002\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231453\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u540e\u7aef\u51fd\u6570\u521b\u5efa\u5b8c\u6210\u540e\u8fdb\u5165\u51fd\u6570\u8be6\u60c5\u754c\u9762\uff0c\u5176\u4f59\u529f\u80fd\u4e0e\u4e0a\u8ff0\u524d\u7aef\u51fd\u6570\u76f8\u540c\uff0c\u4e0d\u518d\u590d\u8ff0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231454\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u70b9\u51fb\u3010\u89e6\u53d1\u5668\u7ba1\u7406\u3011\uff0c\u6b64\u5904HTTP\u89e6\u53d1\u5668\u63d0\u4f9b\u4e86\u516c\u7f51\u4e0e\u5185\u7f51\u8bbf\u95ee\u5730\u5740\uff0c\u6211\u4eec\u62f7\u8d1d\u5185\u7f51\u5730\u5740\u5728\u524d\u7aef\u4e2d\u95f4\u4ef6\u53cd\u4ee3\u914d\u7f6e\u5904\u586b\u5165\u6b64\u57df\u540d\uff0c\u5b9e\u73b0\u8bbf\u95ee\u524d\u7aef\u89e6\u53d1\u540e\u7aef\u51fd\u6570<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231455\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a04.\u4e91\u6570\u636e\u5e93RDS MySQL Serverless\u521b\u5efa\u4e0e\u8fc1\u79fb\u5bfc\u5165\u00a0 \u00a0\u539f\u6709Allinone\u67b6\u6784\u4e2d\u6ca1\u6709\u505a\u5230\u6570\u636e\u5e93\u670d\u52a1\u7684\u72ec\u7acb\u4e0e\u9ad8\u53ef\u7528\uff0c\u5728\u6b64\u6b21\u4e91\u5316\u90e8\u7f72\uff0c\u6211\u4eec\u5c06\u9009\u7528\u963f\u91cc\u4e91\u516c\u6d4b\u4e2d\u7684\u4e91\u6570\u636e\u5e93Serverless\u7248\u672c\u3002RDS MySQL Serverless\u63d0\u4f9b\u4e86CPU\u3001\u5185\u5b58\u7684\u5b9e\u65f6\u5f39\u6027\u80fd\u529b\uff0c\u5177\u6709\u8d44\u6e90\u7528\u91cf\u4f4e\u3001\u7b80\u5355\u6613\u7528\u3001\u5f39\u6027\u7075\u6d3b\u548c\u4ef7\u683c\u4f4e\u5ec9\u7b49\u4f18\u70b9\uff0c\u5408\u7406\u4f18\u5316\u4f7f\u7528\u6210\u672c\uff0c\u8fdb\u4e00\u6b65\u964d\u672c\u589e\u6548\u3002RDS MySQL Serverless\u5b9e\u4f8b\u521b\u5efa\u00a0 \u00a0\u8fdb\u5165\u4e91\u6570\u636e\u5e93RDS\u63a7\u5236\u53f0\uff0c\u70b9\u51fb\u3010\u521b\u5efa\u5b9e\u4f8b\u3011\uff0c\u5f00\u59cb\u521b\u5efa\u5b9e\u4f8b\u7684\u6d41\u7a0b\uff0c\u5728\u3010\u57fa\u7840\u8d44\u6e90\u3011\u8bbe\u7f6e\u754c\u9762\uff0c\u9009\u62e9Serverless\u7248\uff0c\u5176\u4f59\u6839\u636e\u5b9e\u9645\u8fdb\u884c\u9009\u62e9\u00a0\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231456\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0Serverless RDS\u521b\u5efa\u65f6\u3010\u5b9e\u4f8b\u914d\u7f6e\u3011\u9700\u8981\u6ce8\u610f\u7f51\u7edcVPC\u7684\u8bbe\u7f6e\uff0c\u8981\u4e0eServerless\u670d\u52a1\u6240\u8bbe\u5b9a\u7684VPC\u4e00\u81f4\uff0c\u5b9e\u73b0\u5185\u7f51\u6570\u636e\u4e92\u901a\u3002\u786e\u5b9a\u8ba2\u5355\u540e\uff0c\u7b49\u5f85\u5b9e\u4f8b\u521b\u5efa\u5b8c\u6210\u5373\u53ef<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231457\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>RDS\u6570\u636e\u5e93\u7528\u6237\u8bbe\u7f6e\u5b8c\u6210\u5b9e\u4f8b\u521b\u5efa\uff0c\u9009\u62e9\u7ba1\u7406\u5b9e\u4f8b\u3002\u5728\u5de6\u4fa7\u4efb\u52a1\u680f\u9009\u62e9\u3010\u8d26\u53f7\u7ba1\u7406\u3011\uff0c\u70b9\u51fb\u3010\u521b\u5efa\u8d26\u53f7\u3011\u521b\u5efa\u6570\u636e\u5e93\u8d26\u6237\u4f9b\u7535\u5546\u5e73\u53f0\u540e\u7aef\u8fdb\u884c\u8fde\u63a5\u3002\u8f93\u5165\u8d26\u6237\u540d\u3001\u5bc6\u7801\uff0c\u9009\u62e9\u4e3a\u666e\u901a\u8d26\u6237\uff0c\u70b9\u51fb\u786e\u5b9a\u5b8c\u6210\u7528\u6237\u521b\u5efa\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231458\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0RDS \u4e1a\u52a1\u6570\u636e\u5e93\u521b\u5efa\u9009\u62e9\u5de6\u4fa7\u680f\u4e2d\u3010\u6570\u636e\u5e93\u7ba1\u7406\u3011\uff0c\u9009\u62e9\u3010\u521b\u5efa\u6570\u636e\u5e93\u3011\u8f93\u5165\u519c\u4ea7\u54c1\u7535\u5546\u4e1a\u52a1\u6240\u9700\u7684\u5e93\u540d\uff0c\u5e76\u4e14\u6388\u6743\u8d26\u6237\u7ed9\u524d\u4e00\u6b65\u8bbe\u7f6e\u7684\u7528\u6237\uff0c\u70b9\u51fb\u521b\u5efa\u5b8c\u6210\u5e93\u7684\u8bbe\u7f6e\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231459\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0RDS \u670d\u52a1\u8fde\u63a5\u5730\u5740\u6211\u4eec\u7684Serverless\u51fd\u6570\u4e2d\u6240\u9700\u8981\u8fde\u63a5\u5e93\u7684\u5730\u5740\uff0c\u5728rds\u5b9e\u4f8b\u4e2d\u3010\u6570\u636e\u5e93\u3011\u8fde\u63a5\u5904\u53ef\u4ee5\u67e5\u5230\uff0c\u4e0d\u8fc7\u9700\u8981\u63d0\u524d\u8bbe\u5b9a\u767d\u540d\u5355\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231460\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u6211\u4eec\u5c06\u5185\u7f51\u5730\u5740\u8fdb\u884c\u62f7\u8d1d\uff0c\u5e76\u4e14\u4e5f\u5b8c\u6210\u4e86\u8fde\u63a5\u7528\u6237\u3001\u5bc6\u7801\u3001\u5e93\u7684\u914d\u7f6e\uff0c\u5c31\u53ef\u4ee5\u914d\u7f6e\u5230Serverless\u51fd\u6570\u6216\u8005\u662f\u540e\u7aef\u4ee3\u7801\u4e2d\u4e86<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231461\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0RDS \u4e1a\u52a1\u6570\u636e\u5e93\u7684\u5bfc\u5165\u6062\u590d\u00a0 \u00a0\u6570\u636e\u5e93\u7684\u4e0a\u4e91\u5173\u952e\u662f\u6570\u636e\u5185\u5bb9\u7684\u8fc1\u79fb\uff0c\u8fd9\u6b21\u90e8\u7f72\u7684\u4e1a\u52a1\u6570\u636e\u5e93\u5f88\u5c11\u53c8\u5f88\u5c0f\uff0c\u56e0\u6b64\u4f7f\u7528\u7b80\u5355\u7684\u5907\u4efdSQL\u811a\u672c\u6587\u4ef6\u4f5c\u4e3a\u8fc1\u79fb\u7684\u65b9\u5f0f\u3002MySQL\/Mariadb\u7684\u6570\u636e\u5bfc\u51fa\u6709\u591a\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u5907\u4efd\u5bfc\u51fa\uff0c\u5f53\u7136\u5927\u578b\u4e1a\u52a1\u5e93\u6709\u4e13\u7528\u7684\u5907\u4efd\u8fc1\u79fb\u5de5\u5177\uff0c\u8fd9\u91cc\u4e0d\u7ec6\u8bf4\u4e86\u3002\u8fdb\u5165DMS\u6570\u636e\u7ba1\u7406\u670d\u52a1\uff0c\u9009\u62e9\u3010\u6570\u636e\u5e93\u5f00\u53d1\u3011\uff0c\u5728\u3010\u6570\u636e\u53d8\u66f4\u3011\u4e0b\u70b9\u51fb\u3010\u6570\u636e\u5bfc\u5165\u3011\u3002\u6839\u636e\u5177\u4f53\u5907\u4efd\u65b9\u5f0f\u5bfc\u5165\u6570\u636e\u5e93\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u4e0a\u4f20\u5907\u4efd\u7684sql\u811a\u672c\uff0c\u63d0\u4ea4\u7533\u8bf7\u5f00\u59cb\u5bfc\u5165\u6570\u636e<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231462\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u6570\u636e\u5bfc\u5165\u5b8c\u6210\uff0c\u6570\u636e\u8fc1\u79fb\u5b8c\u6210<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231463\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u00a05.Redis\u670d\u52a1\u4e0a\u4e91\u4e0e\u9759\u6001\u8d44\u6e90CDN\u00a0 \u00a0Redis\u670d\u52a1\u4e0a\u4e91\uff0c\u524d\u6587\u4e5f\u63d0\u5230\u4e86\uff0c\u8fd9\u91ccRedis\u670d\u52a1\u7531\u4e8e\u6211\u81ea\u5df1ECS\u4e0a\u6709\u8fd0\u884credis\u670d\u52a1\uff0c\u5c31\u4e0d\u518d\u5355\u72ec\u8d2d\u4e70\u4e91\u6570\u636e\u5e93Redis\u7248\u4e86\uff0cECS\u4e5f\u5904\u4e8e\u540c\u4e00VPC\u4e4b\u4e0b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5185\u7f51\u4e92\u901a\u3002\u5f53\u7136\u63a8\u8350\u4f7f\u7528\u963f\u91cc\u4e91\u7684Redis\u4e91\u6570\u636e\u5e93\u4ea7\u54c1\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231464\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0 \u00a0\u9759\u6001\u8d44\u6e90\u7684CDN\uff0c\u5305\u62eccss\/js\/\u56fe\u7247\u7684\u52a0\u901f\uff0c\u539f\u6709\u67b6\u6784\u4e2d\u5df2\u7ecf\u5b58\u653e\u5728\u963f\u91cc\u7684CDN\u670d\u52a1\u4e0a\u4e86\uff0c\u6211\u8fd9\u91cc\u5c31\u4e0d\u591a\u505a\u6539\u52a8\u4e86\u3002\u00a0\u00a0\u00a06.\u516c\u7f51\u4e1a\u52a1\u8bbf\u95ee\u57df\u540d\u914d\u7f6e\u00a0 \u00a0\u6700\u540e\u4e00\u6b65\uff0c\u7528\u6237\u6700\u7ec8\u8bbf\u95ee\u7684\u662f\u524d\u7aefServerless\u51fd\u6570\uff0c\u5982\u540c\u963f\u91cc\u4e91\u7ed9\u51fa\u7684\u63d0\u793a\uff0c\u8bbf\u95ee\u9ed8\u8ba4\u7684\u516c\u7f51\u5730\u5740\u4e0d\u4f1a\u505a\u4efb\u4f55\u4e2d\u95f4\u4ef6\u89e3\u6790\uff0c\u800c\u662f\u76f4\u63a5\u4e0b\u8f7d\u9996\u9875html\u9759\u6001\u6587\u4ef6\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u81ea\u5df1\u914d\u7f6e\u8bbf\u95ee\u57df\u540d\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231465\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0 \u00a0\u56de\u5230\u51fd\u6570\u8ba1\u7b97\u63a7\u5236\u53f0\uff0c\u9009\u62e9\u3010\u57df\u540d\u7ba1\u7406\u3011\uff0c\u70b9\u51fb\u3010\u6dfb\u52a0\u81ea\u5b9a\u4e49\u57df\u540d\u3011\u8f93\u5165\u81ea\u5b9a\u7684\u57df\u540d\uff0c\u914d\u7f6e\u8def\u7531\uff0c\u9009\u62e9\u5bf9\u5e94\u51fd\u6570\u7684\u670d\u52a1\u540d\u79f0\u3001\u51fd\u6570\u540d\u79f0\u3001\u7248\u672c\u53f7LATEST(\u6700\u65b0)\u5c06\u9700\u8981\u89e3\u6790\u7684CNAME\u503c\uff0c\u62f7\u8d1d<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231466\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u62f7\u8d1dCNAME\u8bb0\u5f55\u503c\uff0c\u70b9\u51fb\u3010\u4e91\u89e3\u6790DNS\u63a7\u5236\u53f0\u3011\uff0c\u8fdb\u5165\u89e3\u6790\u8bbe\u7f6e\uff0c\u70b9\u51fb\u3010\u6dfb\u52a0\u8bb0\u5f55\u3011\u9009\u62e9\u8bb0\u5f55\u7c7b\u578b\u3010CNAME\u3011\uff0c\u8f93\u5165\u4e3b\u673a\u5934\uff0c\u586b\u5165\u62f7\u8d1d\u7684\u8bb0\u5f55\u503c\uff0c\u786e\u8ba4\u5b8c\u6210\u6dfb\u52a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231467\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a07.\u519c\u4ea7\u54c1\u7535\u5546\u9879\u76eeServerless\u4e0a\u4e91\u6548\u679c\u9996\u9875\uff0c\u8bbf\u95ee\u6548\u679c\uff0c\u524d\u7aef\u51fd\u6570\u65e0\u8bef<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231468\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u519c\u4ea7\u54c1\u8be6\u60c5\u9875\u8bbf\u95ee<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231469\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u7528\u6237\u6ce8\u518c\u529f\u80fd\u6d4b\u8bd5\uff0c\u6570\u636e\u5e93\u8fde\u63a5\u4e0e\u5199\u5165\u65e0\u8bef<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231470\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0RDS\u4e2d\u6570\u636e\u5df2\u6210\u529f\u5199\u5165<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231471\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u7528\u6237\u767b\u9646\u6d4b\u8bd5<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231472\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u8ba2\u5355\u63d0\u4ea4\u6d4b\u8bd5\uff0c\u540e\u7aef\u51fd\u6570\u65e0\u8bef<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231473\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u4e09\u3001\u4f7f\u7528Serverless\u5e94\u7528\u6a21\u677f\u5feb\u901f\u6784\u5efalitemall\u7535\u5546\u5e94\u7528\u7cfb\u7edf1.\u57fa\u4e8e\u5b98\u65b9\u6a21\u677f\u521b\u5efa\u5e94\u7528Serverless\u5e94\u7528\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u5b98\u65b9\u5e94\u7528\u6a21\u677f\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u7ed9\u51fa\u7684\u6a21\u677f\u6765\u4fee\u6539\u81ea\u5df1\u7684\u4e1a\u52a1\uff0c\u56e0\u6b64\u719f\u6089\u6a21\u677f\u7684\u90e8\u7f72\u4e5f\u5f88\u91cd\u8981\u3002\u8fdb\u5165\u5230\u51fd\u6570\u8ba1\u7b97FC\u7684\u63a7\u5236\u53f0\u9875\u9762\uff0c\u70b9\u51fb\u3010\u5e94\u7528\u3011\uff0c\u9009\u62e9\u3010\u901a\u8fc7\u6a21\u677f\u521b\u5efa\u5e94\u7528\u3011\uff0c\u9009\u62e9\u3010\u5546\u57ce\u6848\u4f8b\u3011\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231474\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u901a\u8fc7\u8be6\u60c5\u67e5\u770b\u90e8\u7f72\u6a21\u677f\u7684\u4fe1\u606f\uff0c\u4ee5\u53ca\u67e5\u8be2\u6e90\u4ee3\u7801\uff0c\u70b9\u51fb\u7acb\u5373\u521b\u5efa\u53ef\u4ee5\u5feb\u901f\u4f53\u9a8cServerless\u5e94\u7528\u7684\u521b\u5efa\uff0c\u672c\u5730\u90e8\u7f72\u53ef\u4ee5\u901a\u8fc7ServerlessDev\u5de5\u5177\u8fdb\u884c\u90e8\u7f72<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231475\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a02.\u5bf9\u521b\u5efa\u5e94\u7528\u8fdb\u884c\u914d\u7f6e\u70b9\u51fb\u7acb\u5373\u521b\u5efa\u540e\uff0c\u6211\u4eec\u8fdb\u884c\u5e94\u7528\u7684\u521d\u59cb\u5316\u914d\u7f6e\u3002\u90e8\u7f72\u7c7b\u578b\u6709\u4e24\u79cd\uff1a1.\u901a\u8fc7\u7b2c\u4e09\u65b9\u4ee3\u7801\u4ed3\u5e93\u90e8\u7f72\uff0c2.\u76f4\u63a5\u90e8\u7f72\u4e24\u8005\u533a\u522b\u5c31\u662f\u4f7f\u7528\u81ea\u5df1\u7684\u4ed3\u5e93\u4ee3\u7801\u540e\u7eed\u53ef\u4ee5\u901a\u8fc7push\u66f4\u65b0\u9879\u76ee\u53d1\u5e03\uff0c\u800c\u76f4\u63a5\u90e8\u7f72\u9700\u8981\u624b\u52a8\u914d\u7f6e\u3002\u8fd9\u91cc\u5c31\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u7684\u4ea4\u4ed8\u89e6\u53d1\u4e5f\u662f\u4ee5Git\u4ed3\u5e93push\u63d0\u4ea4\u4e3a\u4e3b\uff0c\u6bcf\u6b21\u63d0\u4ea4\u4f1a\u81ea\u52a8\u89e6\u53d1\u90e8\u7f72\u3002\u5982\u662f\u81ea\u5df1\u914d\u7f6e\u5e94\u7528\uff0c\u9700\u8981\u6839\u636e\u4e1a\u52a1\u914d\u7f6es.yaml\u6587\u4ef6\uff0c\u53c2\u8003\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=yEy8q4WUTDx%2BOWaJB3Ms1A%3D%3D.T0rk%2B%2BQKPU0%2BEJ8njjMaTFMTvs09JJTl%2FnY%2BYWGNaz3eC9iTlQPbsIsYrotCH6Ss\" rel=\"nofollow\">https:\/\/www.serverless-devs.c&#8230;<\/a>\u00a0\u8fd9\u91cc\u6211\u9009\u62e9Gitee\u4ed3\u5e93\u8fdb\u884c\u90e8\u7f72\uff0c\u4f46\u662f\u9700\u8981\u8fdb\u884c\u4ed3\u5e93\u7b2c\u4e09\u65b9\u5e94\u7528\u7684\u6388\u6743<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231476\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u70b9\u51fb\u524d\u5f80\u6388\u6743\uff0c\u8df3\u8f6c\u5230gitee\u7684\u7ad9\u70b9\u8fdb\u884cOAuth\u6388\u6743\u8bf7\u6c42\uff0c\u70b9\u51fb\u540c\u610f\u6388\u6743<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231477\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u963f\u91cc\u7528\u6237\u5728\u7b2c\u4e00\u6b21\u4f7f\u7528FC\u51fd\u6570\u8ba1\u7b97\u65f6\uff0c\u9700\u8981\u5bf9\u89d2\u8272\u7b56\u7565\u8fdb\u884c\u6dfb\u52a0\u7684\uff0c\u6211\u8fd9\u91cc\u5df2\u7ecf\u4f7f\u7528\u8fc7FC\u4e86\uff0c\u82e5\u63d0\u793a\u9700\u8981\u6dfb\u52a0\u7b56\u7565\uff0c\u6309\u7167\u63d0\u793a\u70b9\u51fb\u6dfb\u52a0\u5373\u53ef\u3002\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231478\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u5176\u4ed6\u9ad8\u7ea7\u914d\u7f6e\uff0c\u9700\u8981\u6839\u636e\u4e1a\u52a1\u8fdb\u884c\u4fee\u6539\uff0c\u8fd9\u91cc\u6ce8\u610f\u5730\u57df\u7684\u9009\u5b9a\uff0c\u540e\u7eed\u7684\u5176\u4ed6\u5f39\u6027\u8d44\u6e90\u90fd\u4f1a\u5728\u6b64\u5730\u57df\u4e0b\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u672c\u5730\u676d\u5dde\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231479\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u5b8c\u6210\u914d\u7f6e\u540e\u70b9\u51fb\u521b\u5efa\uff0c\u4ee3\u7801\u5df2\u7ecf\u65b0\u5efa\u4e0a\u4f20\u5230\u6211\u7684Gitee\u4ed3\u5e93\u4e86\u3002\u8fd9\u91cc\u63d0\u4f9b\u7684s.yaml\u53ef\u4ee5\u4f5c\u4e3a\u914d\u7f6e\u7684\u53c2\u8003\uff0c\u540e\u7eed\u6839\u636e\u6240\u90e8\u7f72\u7684\u4e1a\u52a1\u53bb\u4fee\u6539yaml<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231480\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a03.\u5e94\u7528\u90e8\u7f72\u4e0a\u7ebf<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231481\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u5e94\u7528\u521b\u5efa\u5b8c\u6210\uff0c\u9996\u6b21\u81ea\u52a8\u8fdb\u884c\u90e8\u7f72\uff0c\u8fd9\u91cc\u90e8\u7f72\u72b6\u6001\u53ef\u4ee5\u770b\u5230\u6b63\u5728\u90e8\u7f72<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231482\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u67e5\u770b\u90e8\u7f72\u65e5\u5fd7\uff0c\u5982\u679c\u90e8\u7f72\u51fa\u73b0\u9519\u8bef\u4e5f\u53ef\u4ee5\u4ece\u65e5\u5fd7\u4fe1\u606f\u4e2d\u67e5\u8be2\u62a5\u9519\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231483\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u90e8\u7f72\u7ecf\u5386\u4e86\u524d\u7f6e\u73af\u5883\u3001\u8d44\u6e90\u540c\u6b65\u3001\u8d44\u6e90\u68c0\u67e5\u3001\u6267\u884c\u90e8\u7f72\u8fd9\u56db\u4e2a\u6b65\u9aa4\u540e\uff0c\u6211\u4eec\u7684\u7535\u5546\u5e94\u7528\u5c31\u5b8c\u6210\u4e86\u90e8\u7f72\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231484\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u9996\u6b21\u90e8\u7f72\u5b8c\u6210\uff0c\u4e5f\u662f\u6700\u65b0latest\u7684\u4e00\u6b21\u90e8\u7f72\u7248\u672c\uff0c\u53ef\u4ee5\u901a\u8fc7\u90e8\u7f72\u5386\u53f2\u81ea\u7531\u7684\u8fdb\u884c\u56de\u6eda\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231485\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a04.\u8bbf\u95ee\u90e8\u7f72\u4e0a\u7ebf\u7684\u7535\u5546\u5e94\u7528\u8bbf\u95ee\u6d4b\u8bd5\u7684\u57df\u540d\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u4e0a\u7ebf\u7684litemall\u7535\u5546\u7cfb\u7edf\uff0c\u8fdb\u5165\u7535\u5546\u5e94\u7528\u7684\u540e\u53f0\u7ba1\u7406\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231486\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0litemall\u7535\u5546\u7cfb\u7edf\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u524d\u540e\u7aef\u5206\u79bb\u5e26\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u7535\u5546\u7cfb\u7edf\uff0c\u5177\u6709\u7535\u5546\u5e73\u53f0\u57fa\u7840\u7684\u4f1a\u5458\u7ba1\u7406\u3001\u5546\u57ce\u7ba1\u7406\u3001\u5546\u54c1\u7ba1\u7406\u3001\u63a8\u5e7f\u7ba1\u7406\u3001\u7cfb\u7edf\u7ba1\u7406\u3001\u914d\u7f6e\u7ba1\u7406\u3001\u7edf\u8ba1\u62a5\u8868\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231487\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0litemall\u7535\u5546\u7cfb\u7edf\uff0c\u9700\u8981\u914d\u7f6e\u6700\u5c0f\u5f00\u53d1\u73af\u5883\u6709\u4ee5\u4e0b\uff1aMySQLJDK1.8\u6216\u4ee5\u4e0aMavenNodejs<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231488\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u00a05.\u66f4\u6362\u4e1a\u52a1\u57df\u540d\u8bbf\u95ee\u540c\u6837\uff0c\u5f53\u6211\u4eec\u6b63\u5e38\u4e0a\u7ebf\u4e86FC\u7684\u4e1a\u52a1\u65f6\uff0cServerless\u7528\u7684\u662f\u9ed8\u8ba4\u8bbf\u95ee\u5730\u5740\u51fd\u6570\u8ba1\u7b97\u4e0a\u7ebf\u63d0\u4f9b\u7684\u57df\u540d\u662f\u4ee5..fc.aliyuncs.com\/\/proxy\/\/\/[action?queries]\u4e3a\u9ed8\u8ba4\u7684\uff0c\u82e5\u662f\u6b63\u5e38\u4e1a\u52a1\u8bbf\u95ee\u6211\u4eec\u5fc5\u7136\u8981\u4fee\u6539\u8bbf\u95ee\u7684\u57df\u540d\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231489\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u8fdb\u5165\u5230\u51fd\u6570\u8ba1\u7b97FC\u7684\u9996\u9875\uff0c\u70b9\u51fb\u9ad8\u7ea7\u529f\u80fd\u4e0b\u7684\u57df\u540d\u7ba1\u7406\uff0c\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u4e0a\u7ebf\u7535\u5546\u5e94\u7528\u65f6\u7684\u9ed8\u8ba4\u57df\u540d\u5df2\u7ecf\u8def\u7531\u4fe1\u606f\u6211\u4eec\u9009\u62e9\u6dfb\u52a0\u81ea\u5b9a\u4e49\u57df\u540d\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231490\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u8f93\u5165\u57df\u540d\u7684\u540d\u79f0\uff0c\u4e5f\u5c31\u662f\u8d2d\u4e70\u5907\u6848\u7684\u57df\u540d\u4e0b\u7684\u81ea\u5b9a\u4e49\u4e8c\u7ea7\u57df\u540d\u70b9\u51fb\u8def\u7531\u914d\u7f6e\uff0c\u9009\u62e9\u670d\u52a1\u540d\u79f0\uff0c\u8fd9\u91cc\u662f\u6211\u4eec\u90e8\u7f72\u7684\u7535\u5546\u7cfb\u7edflitemall\uff0c\u9009\u62e9\u51fd\u6570\u540d\u79f0\u4e0e\u7248\u672c\u62f7\u8d1d\u516c\u7f51CNAME\u5730\u5740\uff0c\u540e\u7eed\u5728DNS\u57df\u540d\u7ba1\u7406\u5904\u6dfb\u52a0\u89e3\u6790<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231491\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u8fdb\u5165\u5230\u57df\u540d\u7ba1\u7406\u4e0b\uff0c\u6dfb\u52a0\u4e00\u6761\u8bb0\u5f55\uff0c\u8bb0\u5f55\u7c7b\u578b\u9009\u62e9CNAME\uff0c\u8f93\u5165\u4e3b\u673a\u8bb0\u5f55\uff0c\u5c06\u521a\u521a\u62f7\u8d1d\u7684\u516c\u7f51CNAME\u5730\u5740\u7c98\u5230\u8bb0\u5f55\u503c\uff0c\u70b9\u51fb\u6dfb\u52a0\u5373\u53ef<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231492\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u56de\u5230\u51fd\u6570\u8ba1\u7b97FC\uff0c\u5728\u6700\u540e\u70b9\u51fb\u521b\u5efa\u5373\u53ef\uff0c\u56de\u5230\u4e3b\u9875\u770b\u5230\u6211\u4eec\u65b0\u7ed1\u5b9a\u7684\u57df\u540d<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231493\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u6700\u540e\uff0c\u62ff\u624b\u673a\u8bbf\u95ee\u6211\u81ea\u5b9a\u4e49\u914d\u7f6e\u7684\u516c\u7f51\u5730\u5740\u7535\u5546\u670d\u52a1\u6b63\u5e38\u4e0a\u7ebf\uff0c\u516c\u7f51\u5730\u5740\u6b63\u5e38\u8bbf\u95ee\u4e3b\u9875\u00a0<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231494\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u5546\u54c1\u7684\u8be6\u60c5\u8d2d\u4e70\u9875\u9762<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000042231495\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><br \/>\u00a0\u00a0\u6700\u540eServerless\u76f8\u5bf9\u5176\u4ed6\u65b9\u6848\u6765\u8bf4\uff0c\u4e5f\u662f\u975e\u5e38\u5bb9\u6613\u4e0a\u624b\u5e76\u9ad8\u6548\u7684\u6280\u672f\u65b9\u6848\u3002\u4e0a\u9762\u7684\u90e8\u7f72\u6d4b\u8bd5\uff0c\u5176\u5b9e\u8fd8\u6709\u5f88\u591a\u9700\u8981\u6539\u8fdb\u7684\u5730\u65b9\uff0c\u4f8b\u5982\u7b2c\u4e8c\u4e2a\u519c\u4ea7\u54c1\u7535\u5546\u4e0a\u4e91\u9879\u76ee\uff0c\u771f\u6b63\u53ef\u9760\u7684\u4e91\u4e0a\u4e1a\u52a1\u8fd8\u9700\u8981\u8d1f\u8f7d\u5747\u8861\u3001\u9ad8\u53ef\u7528\u591a\u5730\u5bb9\u707e\u3001\u5b89\u5168\u7b49\u5176\u4ed6\u4e91\u4ea7\u54c1\u7684\u5f15\u5165\uff0c\u6211\u60f3\u628a\u6848\u4f8b\u7684\u91cd\u70b9\u653e\u5728Serverless\u670d\u52a1\u5668\u65e0\u611f\u5316\u4e0a\uff0c\u672c\u4eba\u4e5f\u4f7f\u7528\u8fc7\u4e0d\u5c11\u963f\u91cc\u4e91\u7684\u6280\u672f\u4ea7\u54c1\uff0c\u6df1\u77e5\u5bf9\u5e95\u5c42\u57fa\u7840\u8bbe\u65bd\u8fd0\u7ef4\u96be\u5ea6\u3002\u867d\u7136\u8fd9\u51e0\u4e2a\u6708\u5b66\u4e60\u751f\u6d3b\u6bd4\u8f83\u7e41\u5fd9\uff0c\u4f46\u662f\u8fd8\u662f\u5bf9\u793e\u533a\u7684\u5404\u79cd\u6d3b\u52a8\u975e\u5e38\u611f\u5174\u8da3\uff0c\u4e5f\u60f3\u505a\u4e00\u4e9b\u66f4\u597d\u7684\u6d4b\u8bd5\u3002\u8fd9\u6b21\u7684Serverless\u65e0\u8bba\u662f\u5bf9\u4e2a\u4eba\u7528\u6237\uff0c\u8fd8\u662f\u4f01\u4e1a\u7528\u6237\u3002\u90fd\u662f\u4e00\u79cd\u975e\u5e38\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u5f39\u6027\u8d44\u6e90\u4e0e\u6309\u9700\u4ed8\u8d39\uff0c\u66f4\u52a0\u8282\u7701\u8d44\u6e90\u4e0eMoney\uff0c\u66f4\u52a0\u4f18\u96c5\uff01\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=uV5Cni2YKdXHmEA9tWs00A%3D%3D.%2Fg61R0v4vHsPPTtz8j4PQSouACiSZRKNOMASOZqL%2BHeLHbzfqeovYPRfzTeD9D6h\" rel=\"nofollow\">http:\/\/click.aliyun.com\/m\/100&#8230;<\/a>\u672c\u6587\u4e3a\u963f\u91cc\u4e91\u539f\u521b\u5185\u5bb9\uff0c\u672a\u7ecf\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042231430\">https:\/\/segmentfault.com\/a\/1190000042231430<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb\uff1a\u00a0Serverless\u597d\u54c7\uff01\u8fd9\u91cc\u5c06\u9488\u5bf9\u4e2a\u4eba\u4e0e\u751f\u4ea7\u4e24\u4e2a\u5e94\u7528\u65b9\u5411\u7684\u6d4b\u8bc4 \u4f7f\u7528Serverless\u5b9e\u73b0\u81ea\u52a8\u83b7\u53d6 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006033","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006033"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006033\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}