{"id":368,"date":"2021-02-22T16:11:36","date_gmt":"2021-02-22T08:11:36","guid":{"rendered":"https:\/\/twocups.cn\/?p=368"},"modified":"2021-08-12T11:25:43","modified_gmt":"2021-08-12T03:25:43","slug":"26","status":"publish","type":"post","link":"https:\/\/twocups.cn\/index.php\/2021\/02\/22\/26\/","title":{"rendered":"\u3010Elastic Stack\u7cfb\u5217\u3011\u7b2c\u4e09\u7ae0\uff1a\u5b9e\u9645\u90e8\u7f72(\u4e00) Elasticsearch\u7bc7"},"content":{"rendered":"\n<h4><img width=\"80\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a.png\" alt=\"\" class=\"wp-image-152\" srcset=\"https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a.png 3337w, https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a-300x125.png 300w, https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a-1024x426.png 1024w, https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a-768x320.png 768w, https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a-1536x639.png 1536w, https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo\u6a2a-2048x852.png 2048w\" sizes=\"(max-width: 3337px) 100vw, 3337px\" \/>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1a<a href=\"https:\/\/twocups.cn\/index.php\/2021\/02\/22\/26\/\">https:\/\/twocups.cn\/index.php\/2021\/02\/22\/26\/<\/a><\/h4>\n\n\n\n<p><strong>Elastic \u5b98\u65b9\u7f51\u7ad9\uff1a<a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.elastic.co\/cn\/\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/www.elastic.co\/cn\/\" target=\"_blank\">https:\/\/www.elastic.co\/cn\/<\/a><\/strong><\/p>\n\n\n\n<p><strong>Elasticsearch \u5b98\u65b9\u7f51\u7ad9\uff1a<a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.elastic.co\/cn\/elasticsearch\/\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/www.elastic.co\/cn\/elasticsearch\/\" target=\"_blank\">https:\/\/www.elastic.co\/cn\/elasticsearch\/<\/a><\/strong><\/p>\n\n\n\n<p>\u7531\u4e8e\u5b98\u7f51\u4e0b\u8f7d\u7684\u6bd4\u8f83\u6162\uff0c\u800c\u4e14\u6709\u4e9b\u9879\u76ee\u7684\u5386\u53f2\u7248\u672c\u4e0d\u592a\u597d\u627e\uff0c\u6240\u4ee5\u6211\u628a Elastic Stack \u7cfb\u5217\u4e2d\u6240\u6709\u8981\u7528\u5230\u7684\u5b89\u88c5\u5305\u90fd\u51c6\u5907\u597d\u4e86\uff0c\u76f4\u63a5\u4e0b\u8f7d\u8fd9\u4e2a<strong>\u6574\u5408\u5305<\/strong>\u5c31\u884c\u4e86\uff0c\u7248\u672c\u90fd\u662f6.5.4\u3002\u6574\u5408\u5305\u4e2d\u5305\u542b\uff1aElasticsearch\u3001Elasticsearch \u5206\u8bcd\u5668 ik\u3001logstash\u3001kibana\u3001filebeat\u3001metricbeat\u3001packetbeat\u3001jdk1.8\u3001nginx1.11.6\u3002<\/p>\n\n\n\n<p><strong>\u4e0b\u8f7d\u6574\u5408\u5305\uff1a<a rel=\"noreferrer noopener\" aria-label=\"Elastic Stack.zip(639MB)\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/www.twocups.cn\/download\/Elastic%20Stack.zip\" target=\"_blank\">Elastic Stack.zip(639MB)<\/a><\/strong><\/p>\n\n\n\n<p>\u8fd8\u6709\u4e24\u4e2a\u5de5\u5177\u8981\u7528\u5230\uff0c\u4e00\u4e2a\u662f\u7ec8\u7aef\u8fde\u63a5\u5de5\u5177 <strong>MobaXterm<\/strong>\uff0c\u53e6\u4e00\u4e2a\u662f\u63a5\u53e3\u6d4b\u8bd5\u5de5\u5177 <strong>Postman<\/strong>\u3002\u8fd9\u4e24\u4e2a\u76f4\u63a5\u53bb\u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7684\u5c31\u597d\uff0c\u5982\u679c\u4f60\u6709\u81ea\u5df1\u4e60\u60ef\u7684\u5de5\u5177\uff0c\u76f4\u63a5\u7528\u81ea\u5df1\u7684\u5de5\u5177\u5c31\u597d\u3002<\/p>\n\n\n\n<h2>Elasticsearch \u5b89\u88c5<\/h2>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5148\u53bb\u5b98\u7f51\u4e0b\u8f7d Elasticsearch \u7684\u5b89\u88c5\u5305\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7528\u6211\u4eec\u7f51\u7ad9\u63d0\u4f9b\u7684\u6574\u5408\u5305\u3002\u6211\u7528\u7684\u662f <strong>CentOS<\/strong> \u6765\u90e8\u7f72\uff0c\u6240\u4ee5\u4e0b\u8f7d\u7684\u662f Linux \u7684\u5b89\u88c5\u5305\u3002<\/p>\n\n\n\n<p><strong>Elasticsearch \u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\uff1a<a rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.elastic.co\/cn\/downloads\/elasticsearch\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/www.elastic.co\/cn\/downloads\/elasticsearch\" target=\"_blank\">https:\/\/www.elastic.co\/cn\/downloads\/elasticsearch<\/a><\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_elasticsearch.png\" alt=\"\" class=\"wp-image-425\" width=\"400\" height=\"163\"\/><\/figure><\/div>\n\n\n\n<p>\u5173\u4e8e\u4e0b\u8f7d\u5b89\u88c5\u5305\u7684\u7248\u672c\u95ee\u9898\uff0c\u622a\u6b622021\u5e742\u670822\u65e5\uff0c\u6700\u65b0\u7684\u662f7.10\u7248\u672c\u3002\u6574\u5408\u5305\u4e2d\u63d0\u4f9b\u7684\u662f6.5.4\u7248\u672c\uff0c\u5982\u679c\u89c9\u5f97\u65e7\uff0c\u53ef\u4ee5\u53bb\u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u76847.10\u7248\u672c\u3002\u8981\u6ce8\u610f\u7684\u662f\uff0c\u73b0\u5728 Elastic Stack \u4e2d\u6240\u6709\u9879\u76ee\u7684<strong>\u7248\u672c\u6807\u53f7<\/strong>\u90fd\u662f\u7edf\u4e00\u7684\uff0c\u5982\u679c\u4f60\u7684 Elasticsearch \u4e0b\u8f7d\u7684\u662f7.10\u7248\u672c\uff0c\u90a3\u4e48 logstash\u3001kibana \u548c beats \u4e5f\u5e94\u8be5\u4e0b\u8f7d7.10\u7248\u672c\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u628a Elastic Stack \u90fd\u4f7f\u7528 <strong>Docker<\/strong> \u6765\u90e8\u7f72\uff0c\u4ee5\u540e\u5982\u679c\u8981\u8fc1\u79fb\u73af\u5883\u7684\u8bdd\uff0c\u4f1a\u65b9\u4fbf\u5f88\u591a\u3002\u5f53\u7136\uff0c\u76f4\u63a5\u7528\u865a\u62df\u673a\u8f6f\u4ef6\u4e5f\u53ef\u4ee5\u3002<\/p>\n\n\n\n<p>Elasticsearch \u4e0d\u652f\u6301 Root \u7528\u6237\u76f4\u63a5\u64cd\u4f5c\uff0c\u6240\u4ee5\u9700\u8981\u521b\u5efa\u65b0\u7684\u7528\u6237\uff0c\u547d\u540d\u4e3a <strong>elsearch<\/strong>\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"classic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u6dfb\u52a0\u65b0\u7528\u6237\nuseradd elsearch\n# \u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7528\u6765\u653e Elastic Stack \u4e2d\u7684\u9879\u76ee\nmkdir \/soft\n# \u4e4b\u540e\u5c06\u6574\u5408\u5305\u4e2d\u6240\u6709\u7684\u5b89\u88c5\u5305\u90fd\u653e\u8fdb\u53bb\n# \u5728 soft \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u6587\u4ef6\u5939 es\uff0c\u5e76\u5728\u5176\u4e2d\u89e3\u538b\u7f29 Elasticsearch \u7684\u5b89\u88c5\u5305\ntar -zxcf elasticsearch-6.5.4.tar.gz<\/pre>\n\n\n\n<p>\u5c06 soft \u6587\u4ef6\u5939\u7684<strong>\u6240\u5c5e<\/strong>\u4fee\u6539\u4e3a\u7528\u6237 elsearch\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"classic\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u4fee\u6539\u6587\u4ef6\u5939\u6743\u9650\nchown elsearch:elsearch \/soft\/ -R<\/pre>\n\n\n\n<p>\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5207\u6362\u6210 elsearch \u7528\u6237\u64cd\u4f5c\u4e86\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5207\u6362\u7528\u6237\u4e3a elsearch\nsu - elsearch<\/pre>\n\n\n\n<p>\u7136\u540e\uff0c\u6211\u4eec\u4fee\u6539 Elasticsearch \u7684<strong>\u914d\u7f6e\u6587\u4ef6<\/strong>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u8fdb\u5165\u5230 elsearch \u4e0b\u7684 config \u76ee\u5f55\ncd \/soft\/es\/elasticsearch-6.5.4\/config\n# \u6253\u5f00\u914d\u7f6e\u6587\u4ef6\nvim elasticsearch.yml \n# \u8bbe\u7f6e\u80fd\u591f\u8bbf\u95ee\u7684 ip \u5730\u5740\uff0c\u8fd9\u91cc0.0.0.0\u7684\u610f\u601d\u662f\u4efb\u4f55\u7f51\u7edc\u90fd\u53ef\u4ee5\u8bbf\u95ee\nnetwork.host: 0.0.0.0\n# \u8bbe\u7f6e\u5916\u90e8\u7f51\u7edc\u4e5f\u53ef\u4ee5\u8bbf\u95ee\n# \u5982\u679c\u6ca1\u6709\u8fd9\u884c\uff0c\u90a3\u4e48\u672c\u673a\u53ef\u4ee5\u901a\u8fc7\u201clocalhost\uff1a9200\u201d\u8bbf\u95ee\uff0c\u4f46\u662f\u65e0\u6cd5\u901a\u8fc7\u201c\u672c\u673aip:9200\u201d\u8bbf\u95ee\nnetwork.bind_host: 0.0.0.0\n# elasticsearch\u7684\u9ed8\u8ba4\u7aef\u53e3\u5c31\u662f9200\uff0c\u8fd9\u884c\u53ef\u4ee5\u4e0d\u52a0\n# \u4f46\u662f\u4e00\u822c\u4f01\u4e1a\u5f00\u53d1\u4e2d\u4f1a\u901a\u8fc7\u684c\u9762\u529e\u516c\u73af\u5883\u8bbf\u95ee\u5b64\u5c9b\u73af\u5883\u4e2d\u7684\u673a\u5668\uff0c\u5176\u4e2d\u4e00\u4e9b\u7aef\u53e3\u4f1a\u88ab\u73af\u5883\u62e6\u622a\uff0c\u5230\u65f6\u5019\u53ef\u4ee5\u901a\u8fc7\u8fd9\u884c\u628a9200\u7aef\u53e3\u6539\u6210\u522b\u7684\u7aef\u53e3\nhttp.port: 9200\n\n# \u5728\u6211\u6700\u8fd1\u7528\u5230\u76847.13.4\u7248\u672c\u7684elasticsearch\uff0c\u8fd8\u9700\u8981\u52a0\u4e0b\u9762\u4e24\u884c\nnode.name: node-1\ncluster.initial_master_nodes: &#91;\"node-1\"]<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u540e\u9762 Elasticsearch \u542f\u52a8\u4e0d\u6210\u529f\u7684\u8bdd\uff0c\u90a3\u5c31\u518d\u6539\u4e00\u4e0b Elasticsearch \u7684<strong>\u6700\u5927\u8fdb\u7a0b\u6570<\/strong>\u548c<strong>\u6700\u5927\u7ebf\u7a0b\u6570<\/strong>\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5207\u6362\u5230 root \u7528\u6237\nsu -\n# \u4fee\u6539\u6700\u5927\u8fdb\u7a0b\u6570\nvim \/etc\/security\/limits.conf\n# Elasticsearch \u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\n* soft nofile 65536\n* hard nofile 131072\n* soft nproc 4096\n* hard nproc 4096\n# \u4fee\u6539\u6700\u5927\u7ebf\u7a0b\u6570\nvim \/etc\/security\/limits.d\/90-nproc.conf\n# \u5c06 * soft nproc 1024 \u4fee\u6539\u4e3a\n* soft nproc 4096<\/pre>\n\n\n\n<p>\u5f53\u7136\uff0c\u73af\u5883\u53c2\u6570\u4e5f\u53ef\u4ee5\u4fee\u6539\u7684\u3002\u4e00\u822c\u8981\u662f\u751f\u4ea7\u73af\u5883\u7684\u8bdd\uff0c\u8fd8\u4f1a\u4fee\u6539 <strong>jvm<\/strong> \u7684\u542f\u52a8\u53c2\u6570\u3002<\/p>\n\n\n\n<h2>Elasticsearch \u542f\u52a8<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5207\u6362\u5230 elsearch \u7528\u6237\nsu - elsearch\n# \u53bb Elasticsearch \u76ee\u5f55\u4e0b\u7684 bin \u76ee\u5f55\u4e0b\u542f\u52a8\ncd \/soft\/es\/elasticsearch-6.5.4\/bin\n.\/elasticsearch\n# \u5982\u679c\u8981\u540e\u53f0\u542f\u52a8\uff0c\u52a0\u4e2a\u53c2\u6570 d\n.\/elasticsearch -d\n# \u770b\u540e\u53f0\u6709\u54ea\u4e9b\u7a0b\u5e8f\u7684\u6307\u4ee4\njps\n# \u5982\u679c\u8981\u5173\u95ed\u540e\u53f0\u7a0b\u5e8f\uff0c\u7528 kill \u6307\u4ee4<\/pre>\n\n\n\n<p>\u542f\u52a8\u540e\uff0c\u8bbf\u95ee\u4e0b\u9762\u7684 <strong>URL<\/strong>\u3002IP\u6362\u6210\u81ea\u5df1\u7684\uff0c9200\u7aef\u53e3\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/192.168.56.101:9200\/<\/pre>\n\n\n\n<p>\u5982\u679c\u51fa\u73b0 Elasticsearch \u7684\u76f8\u5173\u4fe1\u606f\uff0c\u8bf4\u660e<strong>\u542f\u52a8\u6210\u529f<\/strong>\u4e86\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"382\" height=\"352\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es\u542f\u52a8\u6210\u529f.png\" alt=\"\" class=\"wp-image-371\" srcset=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es\u542f\u52a8\u6210\u529f.png 382w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es\u542f\u52a8\u6210\u529f-300x276.png 300w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/><\/figure><\/div>\n\n\n\n<h2>elasticsearch-head\uff1aElasticsearch \u7684\u53ef\u89c6\u5316\u5de5\u5177<\/h2>\n\n\n\n<p>\u7531\u4e8e Elasticsearch \u7684\u5b98\u65b9\u5e76\u6ca1\u6709\u63d0\u4f9b\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5de5\u5177 <strong>elasticsearch-head<\/strong>\uff0c\u5b83\u53ef\u4ee5\u4f5c\u4e3a Elasticsearch \u7684\u7f51\u9875\u524d\u7aef\u3002<\/p>\n\n\n\n<p><strong>elasticsearch-head \u7684 GitHub \u5730\u5740\uff1a<a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/mobz\/elasticsearch-head\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\" href=\"https:\/\/github.com\/mobz\/elasticsearch-head\" target=\"_blank\">https:\/\/github.com\/mobz\/elasticsearch-head<\/a><\/strong><\/p>\n\n\n\n<p>elasticsearch-head \u7684\u5b89\u88c5\u65b9\u5f0f\u6709\u5f88\u591a\uff1a\u53ef\u4ee5\u901a\u8fc7\u6e90\u7801\u5b89\u88c5\u3001\u53ef\u4ee5\u901a\u8fc7 docker \u5b89\u88c5\u3001\u4e5f\u53ef\u4ee5\u901a\u8fc7 Elasticsearch \u7684\u63d2\u4ef6\u5b89\u88c5\uff0c\u4f46\u6211\u4e2a\u4eba\u6bd4\u8f83\u63a8\u8350\u7684\u662f\u901a\u8fc7 <strong>Chrome \u63d2\u4ef6<\/strong>\u5b89\u88c5\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_chrome\u63d2\u4ef6.png\" alt=\"\" class=\"wp-image-373\" width=\"558\" height=\"445\" srcset=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_chrome\u63d2\u4ef6.png 1116w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_chrome\u63d2\u4ef6-300x239.png 300w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_chrome\u63d2\u4ef6-1024x817.png 1024w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_chrome\u63d2\u4ef6-768x612.png 768w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e4b\u540e\u901a\u8fc7 Chrome \u8fdb\u884c\u8bbf\u95ee\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es-head.png\" alt=\"\" class=\"wp-image-374\" width=\"457\" height=\"204\" srcset=\"https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es-head.png 914w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es-head-300x134.png 300w, https:\/\/twocups.cn\/wp-content\/uploads\/2021\/02\/ES\u7b2c\u4e09\u7ae0_es-head-768x343.png 768w\" sizes=\"(max-width: 457px) 100vw, 457px\" \/><\/figure><\/div>\n\n\n\n<p>\u6ce8\u610f\uff0c\u5982\u679c\u4e0d\u662f\u901a\u8fc7 Chrome \u63d2\u4ef6\u7684\u65b9\u5f0f\u8fdb\u884c\u5b89\u88c5\uff0c\u90a3\u4e48\u5c31\u4f1a\u5b58\u5728<strong>\u8de8\u524d\u540e\u7aef<\/strong>\u7684\u95ee\u9898\uff0c\u9700\u8981\u5728\u670d\u52a1\u7aef\u505a CORS \u7684\u914d\u7f6e\u3002<\/p>\n\n\n\n<h2>\u4e0b\u7bc7\u7ee7\u7eed<\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/twocups.cn\/index.php\/2021\/02\/23\/27\/\">\u3010Elastic Stack\u7cfb\u5217\u3011\u7b2c\u4e09\u7ae0\uff1a\u5b9e\u9645\u90e8\u7f72(\u4e8c) Elasticsearch\u7bc7<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1ahttps:\/\/twocups.cn\/index.php\/202 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[99],"tags":[100,105],"_links":{"self":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts\/368"}],"collection":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":1,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions\/573"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/media\/227"}],"wp:attachment":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}