{"id":228,"date":"2024-03-28T09:17:08","date_gmt":"2024-03-28T01:17:08","guid":{"rendered":"http:\/\/blue.yn.cn\/?p=228"},"modified":"2024-03-28T10:59:34","modified_gmt":"2024-03-28T02:59:34","slug":"nginx%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"http:\/\/blue.yn.cn\/?p=228","title":{"rendered":"Nginx\u5b89\u88c5\u90e8\u7f72"},"content":{"rendered":"<h3>Nginx\u5b89\u88c5\u90e8\u7f72<\/h3>\n<h4>\u5b89\u88c5Nginx\u65b9\u5f0f<\/h4>\n<ul>\n<li>\u5b89\u88c5nginx\u8f6f\u4ef6\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u5206\u4e3a\u5982\u4e0b\u51e0\u79cd\n<ul>\n<li>\u6e90\u7801\u7f16\u8bd1\uff08\u7248\u672c\u968f\u610f\u3001\u5b89\u88c5\u590d\u6742\u3001\u5347\u7ea7\u7e41\u7410\uff09<\/li>\n<li>epel\u4ed3\u5e93\uff08\u7248\u672c\u8f83\u4f4e\u3001\u5b89\u88c5\u7b80\u5355\u3001\u914d\u7f6e\u4e0d\u6613\u8bfb\uff09<\/li>\n<li>\u5b98\u65b9\u4ed3\u5e93\uff08\u7248\u672c\u8f83\u65b0\u3001\u5b89\u88c5\u7b80\u5355\u3001\u914d\u7f6e\u6613\u8bfb\uff0c\u5f3a\u70c8\u63a8\u8350\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u5b89\u88c5nginx\u4f9d\u8d56<\/h4>\n<p><code>yum install gcc gcc-c++ autoconf pcre pcre-devel make automake httpd-tools<\/code><\/p>\n<h4>\u914d\u7f6enginx\u6e90<\/h4>\n<pre><code class=\"language-bash\">vim \/etc\/yum.repos.d\/nginx.repo\n[nginx-stable]\nname=nginx stable repo\nbaseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/\ngpgcheck=1\nenabled=1\ngpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key\nmodule_hotfixes=true<\/code><\/pre>\n<h4>\u5b89\u88c5nginx\u670d\u52a1<\/h4>\n<pre><code class=\"language-bash\">yum install nginx\nsystemctl enable nginx\nsystemctl start nginx<\/code><\/pre>\n<h4>\u8bbf\u95eenginx\u670d\u52a1<\/h4>\n<p><code>curl 127.0.0.1<\/code><\/p>\n<h4>\u68c0\u67e5nginx\u7248\u672c<\/h4>\n<pre><code class=\"language-bash\">nginx -v\nnginx version: nginx\/1.24.0\nnginx -V  #\u68c0\u67e5\u7f16\u8bd1\u53c2\u6570<\/code><\/pre>\n<h3>nginx\u76ee\u5f55\u7ed3\u6784<\/h3>\n<ul>\n<li>\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u6e05\u6670\u7684\u4e86\u89e3<code>nginx<\/code>\u8f6f\u4ef6\u7684\u5168\u8c8c\uff0c\u53ef\u4f7f\u7528<code>rpm -ql nginx<\/code>\u67e5\u770b\u8f6f\u4ef6\u6574\u4f53\u76ee\u5f55\u7ed3\u6784<\/li>\n<li>\u5982\u4e0b\u8868\u683c\u6574\u7406\u4e86<code>nginx<\/code>\u6bd4\u8f83\u91cd\u8981\u7684\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ul>\n<h4>nginx\u4e3b\u914d\u7f6e\u6587\u4ef6<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u8def\u5f84<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u4f5c\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/nginx.conf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u4e3b\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/conf.d\/default.conf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>\u9ed8\u8ba4\u7f51\u7ad9\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>nginx\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u8def\u5f84<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u4f5c\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/fastcgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>Fastcgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/scgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>scgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/uwsgi_params<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>uwsgi\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>nginx\u7f16\u7801\u914d\u7f6e\u6587\u4ef6<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u8def\u5f84<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u4f5c\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/etc\/nginx\/win-utf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/koi-utf<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/koi-win<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u7f16\u7801\u8f6c\u6362\u6620\u5c04\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/nginx\/mime.types<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>content-type\u4e0e\u6269\u5c55\u540d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>nginx\u7ba1\u7406\u547d\u4ee4\u6587\u4ef6<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u8def\u5f84<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u4f5c\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/usr\/sbin\/nginx<\/td>\n<td>\u547d\u4ee4<\/td>\n<td>nginx\u547d\u4ee4\u884c\u7ba1\u7406\u7ec8\u7aef\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>\/usr\/sbin\/nginx-debug<\/td>\n<td>\u547d\u4ee4<\/td>\n<td>nginx\u547d\u4ee4\u884c\u4e0e\u7ec8\u7aef\u8c03\u8bd5\u5de5\u5177<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>nginx\u65e5\u5fd7\u76f8\u5173\u6587\u4ef6<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u8def\u5f84<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u4f5c\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\/var\/log\/nginx<\/td>\n<td>\u76ee\u5f55<\/td>\n<td>nginx\u9ed8\u8ba4\u5b58\u653e\u65e5\u5fd7\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>\/etc\/logrotate.d\/nginx<\/td>\n<td>\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>nginx\u9ed8\u8ba4\u7684\u65e5\u5fd7\u5207\u5272<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>nginx\u57fa\u672c\u914d\u7f6e<\/h3>\n<ul>\n<li><code>nginx<\/code>\u4e3b\u914d\u7f6e\u6587\u4ef6<code>\/etc\/nginx\/nginx.conf<\/code>\u662f\u4e00\u4e2a\u7eaf\u6587\u672c\u7c7b\u578b\u7684\u6587\u4ef6<\/li>\n<li><code>nginx<\/code>\u6574\u4e2a\u914d\u7f6e\u6587\u4ef6\u662f\u4ee5\u533a\u5757\u7684\u5f62\u5f0f\u7ec4\u7ec7\u7684\u3002\u4e00\u822c\u6bcf\u4e2a\u533a\u5757\u4ee5\u4e00\u5bf9\u5927\u62ec\u53f7<code>{}<\/code>\u6765\u8868\u793a\u5f00\u59cb\u4e0e\u7ed3\u675f<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">cat \/etc\/nginx\/nginx.conf\n# \u5168\u5c40\nuser www;  # nginx\u7684\u8fd0\u884c\u8eab\u4efd\nworker_processes  auto;  # \u542f\u52a8\u7684worker\u8fdb\u7a0b\u6570\u91cf\nerror_log  \/var\/log\/nginx\/error.log notice;  # \u9519\u8bef\u65e5\u5fd7\u7684\u8def\u5f84\uff0cnotice\u4ee5\u4e0a\npid        \/var\/run\/nginx.pid;  # \u5b58\u50a8\u8fdb\u7a0b\u7684pid number\nevents {\n    worker_connections  1024;  # \u4e00\u4e2aworker\u6700\u5927\u8fde\u63a5\u6570\n}\n# \u4e3b\u8981\u8d1f\u8d23\u63a5\u6536\u4e0e\u54cd\u5e94http\u8bf7\u6c42\nhttp {\n    include       \/etc\/nginx\/mime.types;  # \u652f\u6301\u7684\u7c7b\u578b\n    default_type  application\/octet-stream;  # \u9ed8\u8ba4\u7c7b\u578b\uff08\u4e0b\u8f7d\u7684\u65b9\u5f0f\uff0c\u63d0\u4f9b\u4e0b\u8f7d\u5305zip\uff09\n    # \u5b9a\u4e49\u65e5\u5fd7\u7684\u683c\u5f0f\n    log_format  main  &#039;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#039;\n                      &#039;$status $body_bytes_sent &quot;$http_referer&quot; &#039;\n                      &#039;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#039;;\n    # \u8bbf\u95ee\u65e5\u5fd7\n    access_log  \/var\/log\/nginx\/access.log  main;\n    sendfile        on;\n    #tcp_nopush     on;\n    keepalive_timeout  65;  # \u957f\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\n    #gzip  on;\n    include \/etc\/nginx\/conf.d\/*.conf;  # \u5305\u542b\u7684\u5b50\u6587\u4ef6\n}<\/code><\/pre>\n<h4>global\u5168\u5c40\u6a21\u5757<\/h4>\n<pre><code class=\"language-bash\">user www;  # nginx\u8fdb\u7a0b\u6240\u4f7f\u7528\u7684\u7528\u6237\nworker_processes auto;  # nginx\u8fd0\u884c\u7684work\u8fdb\u7a0b\u6570\u91cf\uff08\u5efa\u8bae\u4e0ecpu\u6570\u91cf\u4e00\u81f4\u6216auto\uff09\nerror_log \/log\/nginx\/error.log  # nginx\u9519\u8bef\u65e5\u5fd7\u5b58\u653e\u8def\u5f84\npid \/var\/run\/nginx.pid  # nginx\u670d\u52a1\u8fd0\u884c\u540e\u4ea7\u751f\u7684pid\u8fdb\u7a0b\u53f7<\/code><\/pre>\n<h4>events\u4e8b\u4ef6\u6a21\u5757<\/h4>\n<pre><code class=\"language-bash\">events {\n    worker_connections 25535;  # \u6bcf\u4e2aworker\u8fdb\u7a0b\u652f\u6301\u7684\u6700\u5927\u8fde\u63a5\u6570\n    use epoll;  # \u4e8b\u4ef6\u9a71\u52a8\u6a21\u578b\uff0cepoll\u9ed8\u8ba4\n}<\/code><\/pre>\n<h4>http\u6838\u5fc3\u6a21\u5757<\/h4>\n<pre><code class=\"language-bash\">http {  # http\u5c42\u5f00\u59cb\n...  # \u4f7f\u7528server\u914d\u7f6e\u7f51\u7ad9\uff0c\u6bcf\u4e2aserver{}\u4ee3\u8868\u4e00\u4e2a\u7f51\u7ad9\uff08\u7b80\u79f0\u865a\u62df\u4e3b\u673a\uff09\n      server {\n        listen 80;  # \u76d1\u542c\u7aef\u53e3\uff0c\u9ed8\u8ba480\n        server_name xxx.com;  # \u63d0\u4f9b\u7684\u57df\u540d\n        access_log access.log;  # \u8be5\u7f51\u7ad9\u7684\u8bbf\u95ee\u65e5\u5fd7\n        # \u63a7\u5236\u7f51\u7ad9\u8bbf\u95ee\u7684\u8def\u5f84\n        location \/ {\n           root \/usr\/share\/nginx\/html;  # \u5b58\u653e\u7f51\u7ad9\u6e90\u4ee3\u7801\u7684\u4f4d\u7f6e\n           index index.html index.htm;  # \u9ed8\u8ba4\u8fd4\u56de\u7f51\u7ad9\u7684\u6587\u4ef6\n        }\n      }\n      ...\n      # \u7b2c\u4e8c\u4e2a\u865a\u62df\u4e3b\u673a\u914d\u7f6e\n      server {\n      ...\n      }\n      include \/etc\/nginx\/conf.d\/*.conf;  # \u5305\u542b\/etc\/nginx\/conf.d\/\u76ee\u5f55\u4e0b\u6240\u6709\u4ee5.conf\u7ed3\u5c3e\u7684\u6587\u4ef6\n      # include\u4f5c\u7528\u662f\uff1a\u7b80\u5316\u4e3b\u914d\u7f6e\u6587\u4ef6\u5199\u592a\u591a\u9020\u6210\u81c3\u80bf\uff0c\u8fd9\u6837\u4f1a\u8ba9\u6574\u4f53\u7684\u914d\u7f6e\u6587\u4ef6\u66f4\u52a0\u7684\u6e05\u6670\n}  # http\u5c42\u7ed3\u675f<\/code><\/pre>\n<h4>\u6838\u5fc3\u6a21\u5757\u603b\u7ed3<\/h4>\n<ul>\n<li><code>nginx<\/code>\u4e2d\u7684<code>http\u3001server\u3001location<\/code>\u4e4b\u95f4\u7684\u5173\u7cfb\n<ul>\n<li><code>http<\/code>\u6807\u7b7e\u4e3b\u8981\u7528\u6765\u89e3\u51b3\u7528\u6237\u7684\u8bf7\u6c42\u4e0e\u54cd\u5e94<\/li>\n<li><code>server<\/code>\u6807\u7b7e\u4e3b\u8981\u7528\u6765\u54cd\u5e94\u5177\u4f53\u7684\u67d0\u4e00\u4e2a\u7f51\u7ad9<\/li>\n<li><code>location<\/code>\u6807\u7b7e\u4e3b\u8981\u7528\u6765\u5339\u914d\u7f51\u7ad9\u5177\u4f53<code>uri<\/code>\u8def\u5f84<\/li>\n<\/ul>\n<\/li>\n<li><code>http{}<\/code>\u4e0b\u5141\u8bb8\u6709\u591a\u4e2a<code>server{}<\/code>\uff0c\u4e00\u4e2a<code>server{}<\/code>\u4e0b\u53c8\u5141\u8bb8\u6709\u591a\u4e2a<code>location{}<\/code><\/li>\n<\/ul>\n<h3>nginx\u865a\u62df\u4e3b\u673a<\/h3>\n<h4>nginx\u865a\u62df\u4e3b\u673a\u6982\u5ff5<\/h4>\n<ul>\n<li>\n<p>\u901a\u5e38\u5728\u4f01\u4e1a\u4e2d\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u4e1a\u52a1\u7cfb\u7edf\uff0c\u90a3\u4e48\u591a\u5957\u4e1a\u52a1\u670d\u52a1\u5982\u4f55\u4f7f\u7528<code>nginx<\/code>\u914d\u7f6e\uff1f<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/03\/image-1711594600428.png\" alt=\"file\" \/><\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u4f7f\u7528\u5982\u4e0a\u65b9\u5f0f\u90e8\u7f72\uff0c\u5219\u9700\u8981\u591a\u53f0\u670d\u52a1\u5668\u914d\u7f6enginx\uff0c\u4f46\u5982\u679c\u4f7f\u7528\u865a\u62df\u4e3b\u673a\u65b9\u5f0f\uff0c\u5219\u5728\u540c\u4e00\u4e2anginx\u4e0a\u8fd0\u884c\u591a\u5957\u5355\u72ec\u670d\u52a1\uff0c\u8fd9\u4e9b\u670d\u52a1\u662f\u76f8\u4e92\u72ec\u7acb\u7684\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u770b\u4f3c\u591a\u5957\u4e1a\u52a1\u7cfb\u7edf\uff0c\u5b9e\u5219\u53ef\u4ee5\u8fd0\u884c\u5728\u4e00\u53f0nginx\u670d\u52a1\u4e0a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/03\/image-1711594766411.png\" alt=\"file\" \/><\/p>\n<\/li>\n<\/ul>\n<h4>nginx\u914d\u7f6e\u865a\u62df\u4e3b\u673a\u65b9\u5f0f<\/h4>\n<ul>\n<li>nginx\u914d\u7f6e\u865a\u62df\u4e3b\u673a\u6709\u5982\u4e0b\u4e09\u79cd\u65b9\u5f0f<\/li>\n<\/ul>\n<ol>\n<li>\u57fa\u4e8e\u4e3b\u673a\u591aip\u65b9\u5f0f<\/li>\n<li>\u57fa\u4e8e\u7aef\u53e3\u7684\u914d\u7f6e\u65b9\u5f0f<\/li>\n<li>\u57fa\u4e8e\u591a\u4e2ahosts\u540d\u79f0\u65b9\u5f0f\uff08\u591a\u57df\u540d\u65b9\u5f0f\uff09<\/li>\n<\/ol>\n<h4>\u57fa\u4e8e\u591aip\u865a\u62df\u4e3b\u673a\u5b9e\u8df5<\/h4>\n<ul>\n<li><code>nginx<\/code>\u57fa\u4e8e\u591a<code>IP<\/code>\u865a\u62df\u4e3b\u673a\u5177\u4f53\u914d\u7f6e\u5982\u4e0b\uff1a\n<pre><code class=\"language-bash\">cat \/etc\/nginx\/conf.d\/address.conf\nserver {\n...\nlisten 10.0.0.10:80;\n...\n}\nserver {\n...\nlisten 172.16.1.10:80;\n...\n}<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>\u57fa\u4e8e\u591a\u7aef\u53e3\u865a\u62df\u4e3b\u673a\u5b9e\u8df5<\/h4>\n<ul>\n<li><code>nginx<\/code>\u57fa\u4e8e\u591a\u7aef\u53e3\u865a\u62df\u4e3b\u673a\u5177\u4f53\u914d\u7f6e\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">#\u4ec5\u4fee\u6539listen\u76d1\u542c\u7aef\u53e3\u5373\u53ef\uff0c\u4f46\u4e0d\u80fd\u548c\u7cfb\u7edf\u7aef\u53e3\u51fa\u73b0\u51b2\u7a81\ncat \/etc\/nginx\/conf.d\/port1.conf\nserver {\n    ...\n    listen 80;\n    ...\n}\ncat \/etc\/nginx\/conf.d\/port2.conf\nserver {\n    ...\n    listen 81;\n    ...\n}\ncat \/etc\/nginx\/conf.d\/port3.conf\nserver {\n    ...\n    listen 82;\n    ...\n}<\/code><\/pre>\n<h4>\u57fa\u4e8e\u591a\u57df\u540d\u865a\u62df\u4e3b\u673a\u5b9e\u8df5<\/h4>\n<ul>\n<li><code>nginx<\/code>\u57fa\u4e8e\u591a<code>host<\/code>\u865a\u62df\u4e3b\u673a\u5177\u4f53\u914d\u7f6e\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">cat \/etc\/nginx\/conf.d\/server1.conf\nserver {\n    listen 80;\n    server_name 1.xxx.net;\n    root \/code\/server1;\n    index index.html;\n}\ncat \/etc\/nginx\/conf.d\/server2.conf\nserver {\n    listen 80;\n    server_name 2.xxx.net;\n    root \/code\/server2;\n    index index.html;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\u5b89\u88c5\u90e8\u7f72 \u5b89\u88c5Nginx\u65b9\u5f0f \u5b89\u88c5nginx\u8f6f\u4ef6\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u5206\u4e3a\u5982\u4e0b\u51e0\u79cd \u6e90\u7801\u7f16\u8bd1\uff08\u7248\u672c\u968f\u610f\u3001\u5b89&#8230; &raquo; <a class=\"read-more-link\" href=\"http:\/\/blue.yn.cn\/?p=228\">\u9605\u8bfb\u5168\u6587<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":6,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":238,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/238"}],"wp:attachment":[{"href":"http:\/\/blue.yn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blue.yn.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}