{"id":777,"date":"2023-08-11T09:46:59","date_gmt":"2023-08-11T01:46:59","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=777"},"modified":"2023-08-11T09:55:07","modified_gmt":"2023-08-11T01:55:07","slug":"openrestylua","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/","title":{"rendered":"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>OpenResty \u662f\u4e00\u4e2a\u57fa\u4e8e Nginx \u548c Lua \u7684\u9ad8\u6027\u80fd Web \u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u4f60\u5728 Nginx \u670d\u52a1\u5668\u4e0a\u4f7f\u7528 Lua \u811a\u672c\u6765\u5b9e\u73b0\u7075\u6d3b\u7684\u6d41\u91cf\u63a7\u5236\u548c\u5904\u7406\u3002<\/p>\n<h1>\u8be6\u7ec6\u7684\u64cd\u4f5c\u6b65\u9aa4<\/h1>\n<p>Ubuntu 20.04 \u4e0a\u5b89\u88c5\u548c\u914d\u7f6e OpenResty \u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<br \/>\n\u66f4\u65b0\u7cfb\u7edf\uff1a<\/p>\n<pre><code class=\"language-bash\">sudo apt update\nsudo apt upgrade<\/code><\/pre>\n<p>\u5b89\u88c5\u4f9d\u8d56\uff1a<\/p>\n<pre><code class=\"language-bash\">sudo apt install build-essential curl libpcre3-dev libssl-dev zlib1g-dev<\/code><\/pre>\n<p>\u4e0b\u8f7d OpenResty\uff1a<\/p>\n<pre><code class=\"language-bash\">mkdir ~\/openresty_installation\ncd ~\/openresty_installation\ncurl -O https:\/\/openresty.org\/download\/openresty-1.19.9.1.tar.gz\ntar -xzvf openresty-1.19.9.1.tar.gz\ncd openresty-1.19.9.1<\/code><\/pre>\n<p>\u7f16\u8bd1\u548c\u5b89\u88c5 OpenResty\uff1a<\/p>\n<pre><code class=\"language-bash\">.\/configure --prefix=\/usr\/local\/openresty --with-pcre-jit --with-ipv6 --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --with-http_v2_module\nmake\nsudo make install<\/code><\/pre>\n<p>\u6dfb\u52a0 OpenResty \u5230\u7cfb\u7edf PATH\uff1a<\/p>\n<p>\u6253\u5f00\u4f60\u7684\u7ec8\u7aef\u914d\u7f6e\u6587\u4ef6\uff08\u5982 ~\/.bashrc \u6216 ~\/.zshrc\uff09\uff0c\u5e76\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code class=\"language-bash\">export PATH=\/usr\/local\/openresty\/nginx\/sbin:$PATH<\/code><\/pre>\n<p>\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code class=\"language-bash\">source ~\/.bashrc  # \u6216 source ~\/.zshrc<\/code><\/pre>\n<p>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1 OpenResty \u662f\u5426\u6210\u529f\u5b89\u88c5\uff1a<\/p>\n<pre><code class=\"language-bash\">nginx -v<\/code><\/pre>\n<p>\u8fd9\u5e94\u8be5\u663e\u793a OpenResty \u7684\u7248\u672c\u4fe1\u606f\u3002<br \/>\n\u542f\u52a8 Nginx \u670d\u52a1\u5668\uff1a<\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u542f\u52a8 Nginx \u670d\u52a1\u5668\uff1a<\/p>\n<pre><code class=\"language-bash\">nginx<\/code><\/pre>\n<p>\u5982\u679c\u6ca1\u6709\u9519\u8bef\uff0cNginx \u5c06\u4f1a\u542f\u52a8\u3002<\/p>\n<p>\u9a8c\u8bc1 Nginx \u670d\u52a1\u5668\u662f\u5426\u5de5\u4f5c\uff1a<\/p>\n<p>\u6253\u5f00\u4f60\u7684\u6d4f\u89c8\u5668\u5e76\u8bbf\u95ee <a href=\"http:\/\/localhost\/\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u770b\u5230\u4e00\u4e2a\u6b22\u8fce\u9875\u9762\">http:\/\/localhost\/\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u770b\u5230\u4e00\u4e2a\u6b22\u8fce\u9875\u9762<\/a>\u3002<\/p>\n<p>\u505c\u6b62 Nginx \u670d\u52a1\u5668\uff1a<\/p>\n<p>\u5f53\u4f60\u5b8c\u6210\u6d4b\u8bd5\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u505c\u6b62 Nginx \u670d\u52a1\u5668\uff1a<\/p>\n<pre><code class=\"language-bash\">nginx -s stop<\/code><\/pre>\n<p>\u9650\u6d41\u5b9e\u73b0\uff1a \u4f7f\u7528 OpenResty \u7684 Lua \u6a21\u5757\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8bf7\u6c42\u7684\u9650\u6d41\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u9650\u6d41\u5b9e\u73b0\u793a\u4f8b\uff0c\u6bcf\u79d2\u949f\u53ea\u5141\u8bb8\u4e00\u5b9a\u6570\u91cf\u7684\u8bf7\u6c42\u901a\u8fc7\uff1a<\/p>\n<pre><code class=\"language-bash\">-- nginx.conf\nhttp {\n    lua_shared_dict limit_req_store 10m;\n    server {\n        location \/ {\n            access_by_lua_block {\n                local limit_req = require &quot;resty.limit.req&quot;\n                local lim, err = limit_req.new(&quot;limit_req_store&quot;, 10, 5)\n                if not lim then\n                    ngx.log(ngx.ERR, &quot;failed to instantiate a resty.limit.req object: &quot;, err)\n                    return ngx.exit(500)\n                end\n                local key = ngx.var.binary_remote_addr\n                local delay, err = lim:incoming(key, true)\n                if not delay then\n                    if err == &quot;rejected&quot; then\n                        return ngx.exit(503)\n                    end\n                    ngx.log(ngx.ERR, &quot;failed to limit request: &quot;, err)\n                    return ngx.exit(500)\n                end\n            }\n            proxy_pass http:\/\/backend_servers;\n        }\n    }\n}<\/code><\/pre>\n<p>\u4f7f\u7528\u4e86 resty.limit.req \u6a21\u5757\u6765\u5b9e\u73b0\u4e86\u4e00\u4e2a\u57fa\u4e8e\u5ba2\u6237\u7aef IP \u5730\u5740\u7684\u8bf7\u6c42\u9650\u6d41\u7b56\u7565\u3002<br \/>\n\u5206\u6d41\u5b9e\u73b0\uff1a \u4f7f\u7528 OpenResty\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u8bf7\u6c42\u7684\u6761\u4ef6\u5c06\u6d41\u91cf\u5206\u6d41\u5230\u4e0d\u540c\u7684\u540e\u7aef\u670d\u52a1\u5668\u96c6\u7fa4\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5206\u6d41\u5b9e\u73b0\u793a\u4f8b\uff0c\u57fa\u4e8e\u8bf7\u6c42\u8def\u5f84\u5c06\u8bf7\u6c42\u5206\u6d41\u5230\u4e0d\u540c\u7684\u540e\u7aef\u670d\u52a1\u5668\u96c6\u7fa4\uff1a<\/p>\n<pre><code class=\"language-bash\">-- nginx.conf\nhttp {\n    upstream backend_servers_group1 {\n        server backend_group1_server1;\n        server backend_group1_server2;\n    }\n    upstream backend_servers_group2 {\n        server backend_group2_server1;\n        server backend_group2_server2;\n    }\n    server {\n        location \/group1\/ {\n            proxy_pass http:\/\/backend_servers_group1;\n        }\n        location \/group2\/ {\n            proxy_pass http:\/\/backend_servers_group2;\n        }\n    }\n}<\/code><\/pre>\n<p>\u8bf7\u6c42\u8def\u5f84\u4ee5 &quot;\/group1\/&quot; \u5f00\u5934\u7684\u8bf7\u6c42\u4f1a\u88ab\u5206\u6d41\u5230 backend_servers_group1 \u96c6\u7fa4\uff0c\u800c\u4ee5 &quot;\/group2\/&quot; \u5f00\u5934\u7684\u8bf7\u6c42\u4f1a\u88ab\u5206\u6d41\u5230 backend_servers_group2 \u96c6\u7fa4\u3002<br \/>\n\u7efc\u5408\u8003\u8651\uff0c\u53ef\u4ee5\u5728 Nginx \u914d\u7f6e\u4e2d\u7ed3\u5408\u9650\u6d41\u548c\u5206\u6d41\uff0c\u6839\u636e\u4e0d\u540c\u7684\u6761\u4ef6\u5bf9\u8bf7\u6c42\u8fdb\u884c\u9650\u5236\u548c\u5206\u6d41\uff0c\u4ee5\u5b9e\u73b0\u66f4\u597d\u7684\u6d41\u91cf\u63a7\u5236\u548c\u670d\u52a1\u5668\u4f18\u5316\u3002\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u9002\u5f53\u7684\u8c03\u6574\u548c\u6269\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 OpenResty \u662f\u4e00\u4e2a\u57fa\u4e8e Nginx \u548c Lua \u7684\u9ad8\u6027\u80fd Web \u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u4f60\u5728 Nginx  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 OpenResty \u662f\u4e00\u4e2a\u57fa\u4e8e Nginx \u548c Lua \u7684\u9ad8\u6027\u80fd Web \u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u4f60\u5728 Nginx [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-11T01:46:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-11T01:55:07+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/\",\"name\":\"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-08-11T01:46:59+00:00\",\"dateModified\":\"2023-08-11T01:55:07+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/","og_locale":"zh_CN","og_type":"article","og_title":"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"\u524d\u8a00 OpenResty \u662f\u4e00\u4e2a\u57fa\u4e8e Nginx \u548c Lua \u7684\u9ad8\u6027\u80fd Web \u5e73\u53f0\uff0c\u5b83\u5141\u8bb8\u4f60\u5728 Nginx [&hellip;]","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-08-11T01:46:59+00:00","article_modified_time":"2023-08-11T01:55:07+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/","name":"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1 - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-08-11T01:46:59+00:00","dateModified":"2023-08-11T01:55:07+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/11\/openrestylua\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"Openresty+Lua\u5b9e\u73b0\u9650\u6d41\u548c\u5206\u6d41\u7ed3\u5408\u7684\u5b9e\u6218\u8bbe\u8ba1"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/777"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":778,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions\/778"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}