{"id":200622,"date":"2020-09-22T08:48:08","date_gmt":"2020-09-22T00:48:08","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=200622"},"modified":"2020-09-11T09:49:55","modified_gmt":"2020-09-11T01:49:55","slug":"hown-nginx-connect","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/hown-nginx-connect.html","title":{"rendered":"\u4e0d\u4f1a\u8fd9\u4e9b\u4e1c\u4e1c\uff0c\u4e0d\u6562\u8bf4\u4f60\u4f1anginx?"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4e00\u76f4\u4ee5\u4e3a\u81ea\u5df1\u5f88\u61c2nginx\uff0c\u4e0d\u5c31\u662f\u914d\u7f6e\u4e00\u4e9b\u8d1f\u8f7d\u4e00\u4e9b\u8def\u7531\u561b\uff0c\u76f4\u5230\u8fd9\u6b21\u9700\u8981\u81ea\u5df1\u8fdb\u884c\u8c03\u8bd5\u90e8\u7f72\u65f6\u624d\u53d1\u73b0\u4f9d\u7136\u5b58\u5728\u597d\u591a\u6982\u5ff5\u4e0d\u6e05\u7684\u60c5\u51b5\uff0c\u6bd4\u5982location\u5339\u914d\u7684\u51e0\u79cd\u4f18\u5148\u7ea7\uff0crewrite \u9636\u6bb5\u3001access \u9636\u6bb5\u4ee5\u53ca content \u9636\u6bb5\u7684\u8fd0\u884c\u987a\u5e8f<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u56e0\u4e3a\u5de5\u4f5c\u9700\u8981\uff0c\u8fd9\u91cc\u4e3b\u8981\u603b\u7ed3\u6211\u4eec\u5e38\u7528\u7684server,location\u6a21\u5757\u7684\u4e00\u4e9b\u4fe1\u606f<\/p>\n

\u5148\u6765\u770b\u4e00\u4e0bnginx\u914d\u7f6e\u6587\u4ef6\u7684\u5927\u4f53\u5206\u533a<\/strong><\/div>\n

\"\"<\/a><\/p>\n

mian\u5168\u5c40\u5757<\/strong>\uff1a<\/strong><\/span><\/div>\n

\u5f71\u54cdnginx\u5168\u5c40\u7684\u914d\u7f6e\u6a21\u5757\uff0c\u4e00\u822c\u6709\u8fd0\u884cnginx\u670d\u52a1\u5668\u7684\u7528\u6237\u7ec4\uff0cnginx\u8fdb\u7a0bpid\u5b58\u653e\u8def\u5f84\uff0c\u65e5\u5fd7\u5b58\u653e\u8def\u5f84\uff0c\u914d\u7f6e\u6587\u4ef6\u5f15\u5165\uff0c\u5141\u8bb8\u751f\u6210worker process\u6570\u7b49\u3002<\/p>\n

events\u6a21\u5757<\/strong>\uff1a<\/strong><\/span><\/div>\n
 events{\r\n  use epoll;\r\n  worker_connections      65536;\r\n}\r\n<\/pre>\n

use epoll;<\/span>use\u662f\u4e2a\u4e8b\u4ef6\u6a21\u5757\u6307\u4ee4\uff0c\u7528\u6765\u6307\u5b9aNginx\u7684\u5de5\u4f5c\u6a21\u5f0f\u3002Nginx\u652f\u6301\u7684\u5de5\u4f5c\u6a21\u5f0f\u6709select\u3001poll\u3001kqueue\u3001epoll\u3001rtsig\u548c\/dev\/poll\u3002\u5176\u4e2dselect\u548cpoll\u90fd\u662f\u6807\u51c6\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0ckqueue\u548cepoll\u662f\u9ad8\u6548\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u4e0d\u540c\u7684\u662fepoll\u7528\u5728Linux\u5e73\u53f0\u4e0a\uff0c\u800ckqueue\u7528\u5728BSD\u7cfb\u7edf\u4e2d\u3002==\u5bf9\u4e8eLinux\u7cfb\u7edf\uff0cepoll\u5de5\u4f5c\u6a21\u5f0f\u662f\u9996\u9009\u3002==\u5728\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u652f\u6301\u8fd9\u4e9b\u9ad8\u6548\u6a21\u578b\u65f6\u624d\u4f7f\u7528select\u3002<\/p>\n

worker_connections 65536;<\/span>\u6bcf\u4e00\u4e2aworker\u8fdb\u7a0b\u80fd\u5e76\u53d1\u5904\u7406\uff08\u53d1\u8d77\uff09\u7684\u6700\u5927\u8fde\u63a5\u6570\uff08\u5305\u542b\u4e0e\u5ba2\u6237\u7aef\u6216\u540e\u7aef\u88ab\u4ee3\u7406\u670d\u52a1\u5668\u95f4\u7b49\u6240\u6709\u8fde\u63a5\u6570\uff09\u3002nginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u8ba1\u7b97\u516c\u5f0f \u6700\u5927\u8fde\u63a5\u6570 = worker_processes * worker_connections\/4\uff0c\u6240\u4ee5\u8fd9\u91cc\u5ba2\u6237\u7aef\u6700\u5927\u8fde\u63a5\u6570\u662f65536\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u589e\u5230\u52308192\u90fd\u6ca1\u5173\u7cfb\uff0c\u770b\u60c5\u51b5\u800c\u5b9a\uff0c\u4f46\u4e0d\u80fd\u8d85\u8fc7\u540e\u9762\u7684worker_rlimit_nofile\u3002\u5f53nginx\u4f5c\u4e3ahttp\u670d\u52a1\u5668\u65f6\uff0c\u8ba1\u7b97\u516c\u5f0f\u91cc\u9762\u662f\u9664\u4ee52\u3002\u8fdb\u7a0b\u7684\u6700\u5927\u8fde\u63a5\u6570\u53d7Linux\u7cfb\u7edf\u8fdb\u7a0b\u7684\u6700\u5927\u6253\u5f00\u6587\u4ef6\u6570\u9650\u5236\uff0c\u5728\u6267\u884c\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4ulimit -n 65536\u540eworker_connections\u7684\u8bbe\u7f6e\u624d\u80fd\u751f\u6548\u3002
\nhttp\u5757\uff1a<\/span>\u53ef\u4ee5\u5d4c\u5957\u591a\u4e2aserver\uff0c\u914d\u7f6e\u4ee3\u7406\uff0c\u7f13\u5b58\uff0c\u65e5\u5fd7\u5b9a\u4e49\u7b49\u7edd\u5927\u591a\u6570\u529f\u80fd\u548c\u7b2c\u4e09\u65b9\u6a21\u5757\u7684\u914d\u7f6e\u3002\u5982\u6587\u4ef6\u5f15\u5165\uff0cmime-type\u5b9a\u4e49\uff0c\u65e5\u5fd7\u81ea\u5b9a\u4e49\uff0c\u662f\u5426\u4f7f\u7528sendfile\u4f20\u8f93\u6587\u4ef6\uff0c\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\uff0c\u5355\u8fde\u63a5\u8bf7\u6c42\u6570\u7b49\u3002<\/p>\n

\u4e0b\u9762\u8fdb\u5165\u91cd\u70b9\u6a21\u5757<\/p>\n

server\u5757<\/strong><\/span><\/div>\n

Server\u5757\uff1a<\/span>\u00a0\u4e00\u4e2aserver\u53ef\u4ee5\u770b\u4f5c\u4e00\u4e2anginx\u7684\u865a\u62df\u4e3b\u673a\u62f7\u8d1d\u4e00\u4efdserver\u6bb5\u7684\u6587\u4ef6\u5982\u4e0b<\/p>\n

 upstream backend {\r\n#    ip_hash;    #\u4f18\u5148IP hash\u7684\u89c4\u5219\r\n    server backend1.example.com       weight=5;\r\n    server backend2.example.com:8080;\r\n    server backup1.example.com:8080   backup;\r\n    server backup2.example.com:8080   backup;\r\n}\r\nserver {\r\n        listen       9033;             #\u865a\u62df\u673a\u76d1\u542c\u7684\u7aef\u53e3\r\n        server_name  localhost;  #\u5339\u914d\u7684\u57df\u540d\r\n        root \/data\/htdocs\/www;  #\u670d\u52a1\u5668\u9ed8\u8ba4\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\u4f4d\u7f6e\uff08html\u6587\u4ef6\u5b58\u653e\u76ee\u5f55\uff09\r\n        index index.html index.htm index.php;  #\u9ed8\u8ba4\u8bbf\u95ee\u7684html\u540d\u79f0   \u4e00\u822c\u5728root\u5b9a\u4e49\u7684\u8def\u5f84\u4e0b\u5b58\u653e\r\n        location \/ftpFile {   #\u5339\u914d\u65b9\u5f0f\u89c1\u4e0b\u65b9\r\n            proxy_set_header Host $http_host;\r\n            proxy_set_header X-Real-IP $remote_addr;\r\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n            proxy_set_header X-Forwarded-Proto $scheme;\r\n   #         alias   \/home\/migu_nginx\/ftpdata;\r\n        }\r\nlocation \/img\/ {\r\n    alias \/var\/www\/image\/;     #alias\u4f1a\u76f4\u63a5\u8986\u76d6\u4e0a\u9762\u7684\u5339\u914d\u5185\u5bb9\/img\uff0c\u5e76\u66ff\u6362\u6210\u5b9a\u4e49\u5185\u5bb9\u52a0\u4e0a\u622a\u53d6\u7684\u540e\u7f00\r\n}\r\nlocation \/img\/ {\r\n    root \/var\/www\/image;   #root\u4e0d\u4f1a\u76f4\u63a5\u8986\u76d6\u4e0a\u9762\u7684\u5339\u914d\u5185\u5bb9\/img\uff0c\u5e76\u66ff\u6362\u6210\u5b9a\u4e49\u5185\u5bb9\u52a0\u4e0a\u622a\u53d6\u7684\u540e\u7f00\r\n}\r\n<\/pre>\n
location\u5339\u914d\u89c4\u5219\uff1a<\/strong><\/span><\/div>\n

\u8bed\u6cd5\u89c4\u5219\uff1a location [=||<\/sub>*|^~] \/uri\/ {\u2026 }<\/span>\u9996\u5148\u5339\u914d =\uff0c\u5176\u6b21\u5339\u914d^~,\u5176\u6b21\u662f\u6309\u6587\u4ef6\u4e2d\u987a\u5e8f\u7684\u6b63\u5219\u5339\u914d\uff0c\u6700\u540e\u662f\u4ea4\u7ed9 \/\u901a\u7528\u5339\u914d\u3002\u5f53\u6709\u5339\u914d\u6210\u529f\u65f6\u5019\uff0c\u505c\u6b62\u5339\u914d\uff0c\u6309\u5f53\u524d\u5339\u914d\u89c4\u5219\u5904\u7406\u8bf7\u6c42\u3002
\n
\"\"<\/a>
\n\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u6709\u4e00\u79cd\u6682\u4e0d\u80fd\u7406\u89e3\u7684\u60c5\u51b5\uff0c\u4f46\u786e\u5b9e\u5b58\u5728
\n
\"\"<\/a><\/p>\n

root\u548calias\u7684\u533a\u522b <\/strong><\/span><\/div>\n

\u914d\u7f6e\u4e00\uff1a<\/p>\n

location \/img\/ {\r\nalias \/var\/www\/image\/;\r\n}<\/pre>\n

#\u82e5\u6309\u7167\u4e0a\u8ff0\u914d\u7f6e\u7684\u8bdd\uff0c\u5219\u8bbf\u95ee\/img\/\u76ee\u5f55\u91cc\u9762\u7684\u6587\u4ef6\u65f6\uff0cningx\u4f1a\u81ea\u52a8\u53bb\/var\/www\/image\/\u76ee\u5f55\u627e\u6587\u4ef6
\n\u914d\u7f6e\u4e8c\uff1a<\/p>\n

location \/img\/ {\r\nroot \/var\/www\/image;\r\n}<\/pre>\n

#\u82e5\u6309\u7167\u8fd9\u79cd\u914d\u7f6e\u7684\u8bdd\uff0c\u5219\u8bbf\u95ee\/img\/\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u65f6\uff0cnginx\u4f1a\u53bb\/var\/www\/image\/img\/\u76ee\u5f55\u4e0b\u627e\u6587\u4ef6\u3002]\u6bd4\u5982\u8bbf\u95ee\u94fe\u63a5\u4e3a \/img\/a\/a.html\u5219\u56de\u53bb\/var\/www\/image\/img\/a\u76ee\u5f55\u4e0b\u627ea.html<\/p>\n

set\u6307\u4ee4<\/strong>
\nset $task_flag 0; \u8bbe\u7f6e\u53d8\u91cftask_flag\u4e3a0<\/p>\n

\u53cd\u5411\u4ee3\u7406 proxy_pass<\/strong><\/strong><\/span><\/div>\n

\u5982\u679c\u4e00\u4e2a\u8bf7\u6c42\u8fc7\u6765\u4e86\uff0c\u6bd4\u5982 http:\/127.0.0.1\/mg\/123\/2.html,\u5982\u679c\u662f\u4e0b\u9762\u8fd9\u79cd\u914d\u7f6e\uff0c\u90a3\u6700\u540e\u7684\u8def\u7531\u5730\u5740\u662fhttp:\/\/apimigu\/mg\/123\/2.html<\/p>\n

location \/mg{\r\nproxy_pass http:\/\/apimigu;\r\n}<\/pre>\n

\u82e5\u662f\u4e0b\u9762\u5e26\/\u7684\u8fd9\u79cd\u914d\u7f6e,\u90a3\u8def\u7531\u540e\u5f97\u5230\u7684\u5730\u5740\u662fhttp:\/\/apimigu\/123\/2.html<\/p>\n

location \/mg{\r\nproxy_pass http:\/\/apimigu\/;\r\n}<\/pre>\n

\u6240\u4ee5\u7ed3\u5c3e\u6709\u6ca1\u6709\/\u7b26\u53f7\u5f88\u91cd\u8981
\n\u5982\u679c\u8f6c\u53d1\u7684\u548c\u540e\u53f0\u6709\u591a\u53f0\u670d\u52a1\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2aupstream \u8d1f\u8f7d\u5747\u8861<\/p>\n

 location \/mg{ \r\n proxy_pass         http:\/\/apimigu\/;\r\n }\r\nupstream apimigu{\r\n#    ip_hash;    #\u4f18\u5148IP hash\u7684\u89c4\u5219\r\n    server backend1.example.com       weight=5;\r\n    server backend2.example.com:8080;\r\n    server backup1.example.com:8080   backup;\r\n    server backup2.example.com:8080   backup;\r\n}\r\nserve<\/pre>\n
rewrite\u8bed\u6cd5 <\/strong><\/span><\/div>\n

rewrite\u662f\u5b9e\u73b0URL\u91cd\u5199\u91cd\u5b9a\u5411\u7684\u91cd\u8981\u6307\u4ee4\uff0c\u4ed6\u6839\u636eregex(\u6b63\u5219\u8868\u8fbe\u5f0f)\u6765\u5339\u914d\u5185\u5bb9\u8df3\u8f6c\u5230replacement\uff0c\u7ed3\u5c3e\u662fflag\u6807\u8bb0<\/p>\n

\u914d\u7f6e\u8bed\u6cd5\uff1a<\/p>\n

 Syntax\uff1a rewrite regex replacement [flag];\r\n<\/pre>\n

rewrite\u7684\u542b\u4e49\uff1a\u8be5\u6307\u4ee4\u662f\u5b9e\u73b0URL\u91cd\u5199\u7684\u6307\u4ee4\u3002
\nregex\u7684\u542b\u4e49\uff1a\u7528\u4e8e\u5339\u914dURI\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002
\nreplacement\uff1a\u5c06regex\u6b63\u5219\u5339\u914d\u5230\u7684\u5185\u5bb9\u66ff\u6362\u6210 replacement\u3002
\nflag: flag\u6807\u8bb0\u3002
\n\u4e3e\u4e2a\u5c0f\u4f8b\u5b50<\/p>\n

 rewrite ^\/(.*) http:\/\/www.baidu.com\/ break;     # \u5339\u914d\u6210\u529f\u540e\u8df3\u8f6c\u5230\u767e\u5ea6<\/pre>\n

\u627e\u4e86\u4efd\u6b63\u5219\u8868\u8fbe\u5f0f\u7b26\u53f7\u542b\u4e49\u8868\uff0c\u4ee5\u4f9b\u67e5\u8be2
\n\"\"<\/a>
\nrewrite \u7684\u6700\u540e\u4e00\u9879\u53c2\u6570flag\u7684\u4f5c\u7528\uff0c\u4e00\u822c\u6709\u56db\u4e2a
\n\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u6b63\u5e38\u60c5\u51b5\u4e0bnginx\u4f1a\u6536\u96c6\u6240\u6709\u7684rewrite\u7ed3\u679c\u96c6\uff0c\u8fd9\u548c\u4e4b\u540e\u8981\u4ecb\u7ecd\u7684nginx\u7684\u4e09\u4e2a\u7ea7\u522b\u6709\u5173<\/p>\n

\"\"<\/a>
\n\u5bf9\u4e8e\u4e34\u65f6\u91cd\u5b9a\u5411\u548c\u6c38\u4e45\u91cd\u5b9a\u5411\u7684\u533a\u522b\uff0c\u8fd9\u91cc\u7740\u91cd\u8bf4\u660e\u4ee5\u4e0b
\n\u9996\u5148\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u7684URL\u90fd\u4f1a\u6539\u53d8\uff1b<\/p>\n

    \n
  1. 302\u91cd\u5b9a\u5411\u662f\u6682\u65f6\u7684\u91cd\u5b9a\u5411\uff0c\u641c\u7d22\u5f15\u64ce\u4f1a\u6293\u53d6\u65b0\u7684\u5185\u5bb9\u800c\u4fdd\u7559\u65e7\u7684\u5730\u5740\u3002\u56e0\u4e3a\u670d\u52a1\u5668\u8fd4\u56de302\uff0c\u6240\u4ee5\u641c\u7d22\u5f15\u64ce\u4f1a\u8ba4\u4e3a\u65b0\u7684\u7f51\u5740\u662f\u6682\u65f6\u7684\uff1b<\/li>\n
  2. 301\u91cd\u5b9a\u5411\u662f\u6c38\u4e45\u7684\u91cd\u5b9a\u5411\uff0c\u641c\u7d22\u5f15\u64ce\u4f1a\u6293\u53d6\u65b0\u7684\u5185\u5bb9\u7684\u540c\u65f6\u5c06\u65e7\u7684\u5730\u5740\u66ff\u6362\u4e3a\u91cd\u5b9a\u5411\u540e\u7684\u7f51\u5740\uff1b<\/li>\n<\/ol>\n

    nginx\u4e2d $1,$2 \u7684\u542b\u4e49<\/strong>\uff0c\u6709\u4e2a\u535a\u5ba2\u8bb2\u7684\u5f88\u7b80\u5355\u6613\u61c2\uff0c\u8fd9\u91cc\u76f4\u63a5\u62f7\u8d1d<\/p>\n

    Nginx\u4e2d\uff0cset $para $1\uff0c$1\u8868\u793a\u8def\u5f84\u4e2d\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u3002
    \n\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u7528\u4ee5\u5b9e\u9a8c$1,$2\u3002<\/p>\n

    \u5982\uff1alocation ~\/yxl\/(.)\/(.<\/em>) {\r\nset $para1 $1\r\nset $para2 $2\r\ncontent_by_lua_block {\r\nngx.say(ngx.var.para1)\r\nngx.say(ngx.var.para2)\r\n}\r\n}<\/pre>\n

    \u6b64\u65f6\uff0c\u82e5\u8bbf\u95ee\u8def\u5f84\u4e3alocalhost:8080\/yxl\/qwe\/asd\u65f6\uff0c\u5219\u6d4f\u89c8\u5668\u4f1a\u8f93\u51fa<\/p>\n

    qwe\r\nasd<\/pre>\n
    nginx\u8bf7\u6c42\u6267\u884c\u7684\u51e0\u5927\u9636\u6bb5 <\/strong><\/div>\n

    \u8be6\u7ec6\u5206\u7684\u8bdd\u4e00\u5171\u670911\u4e2a\u9636\u6bb5\uff0c\u8fd9\u91cc\u7740\u91cd\u4ecb\u7ecdrewrite \u3001access \u4ee5\u53ca content \u4e09\u5927\u9636\u6bb5<\/p>\n

    \u4e0d\u6309\u4ee3\u7801\u987a\u5e8f\u6267\u884c\uff0c\u662f\u6309\u9636\u6bb5\u6267\u884c\uff0c\u987a\u5e8f\u5982\u4e0b\uff1a
    \n\u5148\u6267\u884c\u547d\u4e2d\u7684\u6240\u6709rewrite\u5c42\u6307\u4ee4\uff08\u4e0b\u9762\u7684set\uff09\uff0c
    \n\u518d\u6267\u884caccess\uff0c\u518d\u6267\u884ccontent\uff08\u4e0b\u9762\u7684echo\uff09<\/p>\n

    \u4e3e\u4e2a\u4f8b\u5b50\u8bed\u6cd5\uff1a<\/p>\n

     location  = \/ { \r\n       set $a 32;      \r\n         echo $a;       \r\n           set $a 64;   \r\n           eho $a;\r\n           }<\/pre>\n

    \u56e0\u4e3a\u662f\u5148\u6536\u96c6\u7ed3\u679c\uff0c\u6700\u540e\u518dcontent\uff0c\u6240\u4ee5\u6700\u540e\u4e24\u4e2a\u6253\u5370\u90fd\u662f64<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u56e0\u4e3a\u5de5\u4f5c\u9700\u8981\uff0c\u8fd9\u91cc\u4e3b\u8981\u603b\u7ed3\u6211\u4eec\u5e38\u7528\u7684server,location\u6a21\u5757\u7684\u4e00\u4e9b\u4fe1\u606f \u5f71\u54cdnginx\u5168\u5c40\u7684\u914d\u7f6e\u6a21\u5757 […]<\/p>\n","protected":false},"author":643,"featured_media":200669,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-200622","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=200622"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200622\/revisions"}],"predecessor-version":[{"id":200670,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200622\/revisions\/200670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/200669"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=200622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=200622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=200622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}