{"id":81353,"date":"2026-07-25T01:21:20","date_gmt":"2026-07-24T17:21:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81353.html"},"modified":"2026-07-25T01:21:20","modified_gmt":"2026-07-24T17:21:20","slug":"elasticsearch%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%85%a5%e9%97%a8%ef%bc%9a%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%8c%e6%95%b4%e5%90%af%e5%8a%a8%e4%b8%8e%e9%85%8d%e7%bd%ae%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81353.html","title":{"rendered":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b"},"content":{"rendered":"<\/p>\n<h4>Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8&#xff1a;\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u4e00\u3001\u524d\u8a00<\/li>\n<li>\u4e8c\u3001\u524d\u7f6e\u8bf4\u660e<\/li>\n<li>\u4e09\u3001Elasticsearch \u542f\u52a8\u914d\u7f6e\u6838\u5fc3\u6d41\u7a0b\u56fe<\/li>\n<li>\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5b89\u88c5\u5305\u4e0b\u8f7d<\/li>\n<li>\n<ul>\n<li>1. \u7cfb\u7edf\u8981\u6c42<\/li>\n<li>2. \u4e0b\u8f7dES\u5b89\u88c5\u5305<\/li>\n<li>3. \u89e3\u538b\u6587\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff08;\u91cd\u70b9&#xff09;<\/li>\n<li>\n<ul>\n<li>1. \u914d\u7f6e\u6587\u4ef61&#xff1a;elasticsearch.yml&#xff08;\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff09;<\/li>\n<li>2. \u914d\u7f6e\u6587\u4ef62&#xff1a;jvm.options&#xff08;JVM\u5185\u5b58\u914d\u7f6e&#xff09;<\/li>\n<li>3. Linux\u989d\u5916\u914d\u7f6e&#xff08;\u5fc5\u505a&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u7b2c\u4e09\u6b65&#xff1a;\u542f\u52a8Elasticsearch\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>1. Windows \u542f\u52a8<\/li>\n<li>2. Linux \u542f\u52a8<\/li>\n<\/ul>\n<\/li>\n<li>\u4e03\u3001\u7b2c\u56db\u6b65&#xff1a;\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38<\/li>\n<li>\n<ul>\n<li>1. \u6d4f\u89c8\u5668\u8bbf\u95ee<\/li>\n<li>2. API \u63a5\u53e3\u9a8c\u8bc1<\/li>\n<\/ul>\n<\/li>\n<li>\u516b\u3001ES\u542f\u52a8\u5e38\u89c1\u9519\u8bef\u4e0e\u89e3\u51b3\u65b9\u6848<\/li>\n<li>\n<ul>\n<li>1. \u9519\u8bef1&#xff1a;max virtual memory areas vm.max_map_count [65530] is too low<\/li>\n<li>2. \u9519\u8bef2&#xff1a;the default discovery settings are unsuitable for use<\/li>\n<li>3. \u9519\u8bef3&#xff1a;\u5360\u7528\u7aef\u53e39200\u88ab\u5360\u7528<\/li>\n<li>4. \u9519\u8bef4&#xff1a;root\u7528\u6237\u542f\u52a8\u5931\u8d25<\/li>\n<li>5. \u9519\u8bef5&#xff1a;\u8fdc\u7a0b\u65e0\u6cd5\u8bbf\u95ee<\/li>\n<\/ul>\n<\/li>\n<li>\u4e5d\u3001\u751f\u4ea7\u73af\u5883\u6838\u5fc3\u914d\u7f6e\u5efa\u8bae<\/li>\n<li>\u5341\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<table width=\"100%\">\n<tbody>\n<tr>\n<td width=\"50%\">\n<p>     <font face=\"STCAIYUN\" color=\"red\" size=\"4\">&#x1f33a;The Begin&#x1f33a;\u70b9\u70b9\u5173\u6ce8&#xff0c;\u6536\u85cf\u4e0d\u8ff7\u8def&#x1f33a;<\/font>\n     <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e00\u3001\u524d\u8a00<\/h3>\n<p>Elasticsearch&#xff08;\u7b80\u79f0ES&#xff09;\u4f5c\u4e3a\u4e00\u6b3e\u5206\u5e03\u5f0f\u3001\u9ad8\u6269\u5c55\u7684\u641c\u7d22\u5f15\u64ce&#xff0c;\u662f\u5927\u6570\u636e\u3001\u65e5\u5fd7\u5206\u6790\u3001\u5168\u7ad9\u641c\u7d22\u573a\u666f\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002\u6b63\u786e\u542f\u52a8\u4e0e\u57fa\u7840\u914d\u7f6e\u662f\u4f7f\u7528ES\u7684\u7b2c\u4e00\u6b65&#xff0c;\u5f88\u591a\u65b0\u624b\u56e0\u73af\u5883\u914d\u7f6e\u9519\u8bef\u3001\u53c2\u6570\u8bbe\u7f6e\u4e0d\u5f53\u5bfc\u81f4ES\u542f\u52a8\u5931\u8d25\u3001\u65e0\u6cd5\u8fdc\u7a0b\u8bbf\u95ee\u3001\u5185\u5b58\u6ea2\u51fa\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u73af\u5883\u51c6\u5907\u2192\u4e0b\u8f7d\u5b89\u88c5\u2192\u6838\u5fc3\u914d\u7f6e\u2192\u542f\u52a8\u670d\u52a1\u2192\u9a8c\u8bc1\u8bbf\u95ee\u5168\u6d41\u7a0b\u8bb2\u89e3&#xff0c;\u642d\u914d\u542f\u52a8\u6d41\u7a0b\u56fe\u3001\u914d\u7f6e\u8be6\u89e3\u3001\u907f\u5751\u6307\u5357&#xff0c;\u96f6\u57fa\u7840\u4e5f\u80fd\u5feb\u901f\u642d\u5efaES\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u4e8c\u3001\u524d\u7f6e\u8bf4\u660e<\/h3>\n<li>ES\u7248\u672c&#xff1a;\u672c\u6587\u4ee5\u7a33\u5b9a\u7248 Elasticsearch 8.10.0 \u4e3a\u4f8b&#xff08;\u517c\u5bb97.x\/8.x\u5168\u7248\u672c&#xff09;<\/li>\n<li>\u8fd0\u884c\u73af\u5883&#xff1a;JDK&#xff08;ES8.x\u81ea\u5e26JDK&#xff0c;\u65e0\u9700\u624b\u52a8\u5b89\u88c5&#xff09;<\/li>\n<li>\u7cfb\u7edf\u652f\u6301&#xff1a;Windows\/Linux\/MacOS&#xff08;\u672c\u6587\u8986\u76d6Windows&#043;Linux\u53cc\u7cfb\u7edf&#xff09;<\/li>\n<li>\u6838\u5fc3\u524d\u63d0&#xff1a;ES\u7981\u6b62\u4f7f\u7528root\u7528\u6237\u542f\u52a8&#xff08;Linux&#xff09;&#xff0c;\u5fc5\u987b\u521b\u5efa\u666e\u901a\u7528\u6237<\/li>\n<h3>\u4e09\u3001Elasticsearch \u542f\u52a8\u914d\u7f6e\u6838\u5fc3\u6d41\u7a0b\u56fe<\/h3>\n<p>  #mermaid-svg-CVad8kXINSMgn2Rk{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-CVad8kXINSMgn2Rk .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-CVad8kXINSMgn2Rk .error-icon{fill:#552222;}#mermaid-svg-CVad8kXINSMgn2Rk .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-CVad8kXINSMgn2Rk .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-CVad8kXINSMgn2Rk .marker{fill:#333333;stroke:#333333;}#mermaid-svg-CVad8kXINSMgn2Rk .marker.cross{stroke:#333333;}#mermaid-svg-CVad8kXINSMgn2Rk svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-CVad8kXINSMgn2Rk p{margin:0;}#mermaid-svg-CVad8kXINSMgn2Rk .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-CVad8kXINSMgn2Rk .cluster-label text{fill:#333;}#mermaid-svg-CVad8kXINSMgn2Rk .cluster-label span{color:#333;}#mermaid-svg-CVad8kXINSMgn2Rk .cluster-label span p{background-color:transparent;}#mermaid-svg-CVad8kXINSMgn2Rk .label text,#mermaid-svg-CVad8kXINSMgn2Rk span{fill:#333;color:#333;}#mermaid-svg-CVad8kXINSMgn2Rk .node rect,#mermaid-svg-CVad8kXINSMgn2Rk .node circle,#mermaid-svg-CVad8kXINSMgn2Rk .node ellipse,#mermaid-svg-CVad8kXINSMgn2Rk .node polygon,#mermaid-svg-CVad8kXINSMgn2Rk .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-CVad8kXINSMgn2Rk .rough-node .label text,#mermaid-svg-CVad8kXINSMgn2Rk .node .label text,#mermaid-svg-CVad8kXINSMgn2Rk .image-shape .label,#mermaid-svg-CVad8kXINSMgn2Rk .icon-shape .label{text-anchor:middle;}#mermaid-svg-CVad8kXINSMgn2Rk .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-CVad8kXINSMgn2Rk .rough-node .label,#mermaid-svg-CVad8kXINSMgn2Rk .node .label,#mermaid-svg-CVad8kXINSMgn2Rk .image-shape .label,#mermaid-svg-CVad8kXINSMgn2Rk .icon-shape .label{text-align:center;}#mermaid-svg-CVad8kXINSMgn2Rk .node.clickable{cursor:pointer;}#mermaid-svg-CVad8kXINSMgn2Rk .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-CVad8kXINSMgn2Rk .arrowheadPath{fill:#333333;}#mermaid-svg-CVad8kXINSMgn2Rk .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-CVad8kXINSMgn2Rk .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-CVad8kXINSMgn2Rk .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-CVad8kXINSMgn2Rk .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-CVad8kXINSMgn2Rk .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-CVad8kXINSMgn2Rk .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-CVad8kXINSMgn2Rk .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-CVad8kXINSMgn2Rk .cluster text{fill:#333;}#mermaid-svg-CVad8kXINSMgn2Rk .cluster span{color:#333;}#mermaid-svg-CVad8kXINSMgn2Rk div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-CVad8kXINSMgn2Rk .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-CVad8kXINSMgn2Rk rect.text{fill:none;stroke-width:0;}#mermaid-svg-CVad8kXINSMgn2Rk .icon-shape,#mermaid-svg-CVad8kXINSMgn2Rk .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-CVad8kXINSMgn2Rk .icon-shape p,#mermaid-svg-CVad8kXINSMgn2Rk .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-CVad8kXINSMgn2Rk .icon-shape .label rect,#mermaid-svg-CVad8kXINSMgn2Rk .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-CVad8kXINSMgn2Rk .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-CVad8kXINSMgn2Rk .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-CVad8kXINSMgn2Rk :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u73af\u5883\u51c6\u5907<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672cES<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u538b\u5b89\u88c5\u5305<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u4fee\u6539\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6elasticsearch.yml<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u4fee\u6539JVM\u5185\u5b58\u914d\u7f6ejvm.options<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u521b\u5efa\u666e\u901a\u7528\u6237\/\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u542f\u52a8ES\u670d\u52a1<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u542f\u52a8\u662f\u5426\u6210\u529f<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u6d4f\u89c8\u5668\/API\u9a8c\u8bc1\u8bbf\u95ee<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u67e5\u770b\u65e5\u5fd7\/\u6392\u67e5\u9519\u8bef<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5b8c\u6210ES\u670d\u52a1\u5668\u642d\u5efa<\/p>\n<p><\/span><\/p>\n<h3>\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5b89\u88c5\u5305\u4e0b\u8f7d<\/h3>\n<h4>1. \u7cfb\u7edf\u8981\u6c42<\/h4>\n<ul>\n<li>\u5185\u5b58&#xff1a;\u81f3\u5c112GB&#xff08;\u751f\u4ea7\u73af\u5883\u5efa\u8bae8GB&#043;&#xff09;<\/li>\n<li>\u7cfb\u7edf&#xff1a;Windows 10&#043;\/CentOS 7&#043;\/Ubuntu 20.04&#043;<\/li>\n<li>\u6743\u9650&#xff1a;Linux\u7981\u6b62root&#xff0c;Windows\u5efa\u8bae\u7ba1\u7406\u5458\u6743\u9650<\/li>\n<\/ul>\n<h4>2. \u4e0b\u8f7dES\u5b89\u88c5\u5305<\/h4>\n<p>\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/www.elastic.co\/cn\/downloads\/elasticsearch<\/p>\n<ul>\n<li>Windows&#xff1a;\u9009\u62e9 WINDOWS \u4e0b\u8f7dzip\u5305<\/li>\n<li>Linux&#xff1a;\u9009\u62e9 LINUX \u4e0b\u8f7dtar.gz\u5305<\/li>\n<\/ul>\n<h4>3. \u89e3\u538b\u6587\u4ef6<\/h4>\n<ul>\n<li>Windows&#xff1a;\u76f4\u63a5\u89e3\u538b\u5230\u975e\u4e2d\u6587\u8def\u5f84&#xff08;\u5982D:\\\\elasticsearch-8.10.0&#xff09;<\/li>\n<li>Linux&#xff1a;\u6267\u884c\u89e3\u538b\u547d\u4ee4<\/li>\n<\/ul>\n<p><span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zxvf<\/span> elasticsearch-8.10.0-linux-x86_64.tar.gz <span class=\"token parameter variable\">-C<\/span> \/usr\/local\/<\/p>\n<h3>\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff08;\u91cd\u70b9&#xff09;<\/h3>\n<p>ES \u914d\u7f6e\u6587\u4ef6\u5168\u90e8\u5728 config \u76ee\u5f55\u4e0b&#xff0c;\u4ec5\u9700\u4fee\u65392\u4e2a\u6838\u5fc3\u6587\u4ef6\u5373\u53ef\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n<h4>1. \u914d\u7f6e\u6587\u4ef61&#xff1a;elasticsearch.yml&#xff08;\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff09;<\/h4>\n<p>\u6253\u5f00config\/elasticsearch.yml&#xff0c;\u6dfb\u52a0\/\u4fee\u6539\u4ee5\u4e0b\u914d\u7f6e&#xff08;\u6ce8\u91ca\u6389\u539f\u6709\u914d\u7f6e&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u96c6\u7fa4\u540d\u79f0&#xff08;\u6240\u6709\u8282\u70b9\u4e00\u81f4&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">cluster.name<\/span><span class=\"token punctuation\">:<\/span> my<span class=\"token punctuation\">&#8211;<\/span>es<span class=\"token punctuation\">&#8211;<\/span>cluster<br \/>\n<span class=\"token comment\"># 2. \u8282\u70b9\u540d\u79f0<\/span><br \/>\n<span class=\"token key atrule\">node.name<\/span><span class=\"token punctuation\">:<\/span> node<span class=\"token punctuation\">&#8211;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token comment\"># 3. \u6570\u636e\u5b58\u50a8\u8def\u5f84<\/span><br \/>\n<span class=\"token key atrule\">path.data<\/span><span class=\"token punctuation\">:<\/span> \/usr\/local\/elasticsearch<span class=\"token punctuation\">&#8211;<\/span>8.10.0\/data<br \/>\n<span class=\"token comment\"># 4. \u65e5\u5fd7\u5b58\u50a8\u8def\u5f84<\/span><br \/>\n<span class=\"token key atrule\">path.logs<\/span><span class=\"token punctuation\">:<\/span> \/usr\/local\/elasticsearch<span class=\"token punctuation\">&#8211;<\/span>8.10.0\/logs<br \/>\n<span class=\"token comment\"># 5. \u5141\u8bb8\u8fdc\u7a0b\u8bbf\u95ee&#xff08;0.0.0.0\u4ee3\u8868\u6240\u6709IP&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">network.host<\/span><span class=\"token punctuation\">:<\/span> 0.0.0.0<br \/>\n<span class=\"token comment\"># 6. HTTP\u8bbf\u95ee\u7aef\u53e3<\/span><br \/>\n<span class=\"token key atrule\">http.port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">9200<\/span><br \/>\n<span class=\"token comment\"># 7. \u5355\u8282\u70b9\u542f\u52a8&#xff08;\u5f00\u53d1\u73af\u5883&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">discovery.type<\/span><span class=\"token punctuation\">:<\/span> single<span class=\"token punctuation\">&#8211;<\/span>node<br \/>\n<span class=\"token comment\"># 8. \u5173\u95ed\u5b89\u5168\u8ba4\u8bc1&#xff08;\u5f00\u53d1\u73af\u5883&#xff0c;\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u5f00\u542f&#xff09;<\/span><br \/>\n<span class=\"token key atrule\">xpack.security.enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">false<\/span><\/p>\n<p>\u2705 \u914d\u7f6e\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>network.host: 0.0.0.0&#xff1a;\u5fc5\u987b\u914d\u7f6e&#xff0c;\u5426\u5219\u53ea\u80fd\u672c\u5730\u8bbf\u95ee<\/li>\n<li>discovery.type: single-node&#xff1a;\u5355\u673a\u6a21\u5f0f&#xff0c;\u65e0\u9700\u96c6\u7fa4\u53d1\u73b0<\/li>\n<li>xpack.security.enabled: false&#xff1a;\u5173\u95ed\u5bc6\u7801\u9a8c\u8bc1&#xff08;\u5f00\u53d1\u73af\u5883&#xff09;<\/li>\n<\/ul>\n<h4>2. \u914d\u7f6e\u6587\u4ef62&#xff1a;jvm.options&#xff08;JVM\u5185\u5b58\u914d\u7f6e&#xff09;<\/h4>\n<p>ES\u9ed8\u8ba4\u5185\u5b58\u8f83\u5927&#xff0c;\u65b0\u624b\u5efa\u8bae\u4fee\u6539\u4e3a\u5c0f\u5185\u5b58&#xff0c;\u907f\u514d\u542f\u52a8\u5931\u8d25&#xff1a;<\/p>\n<p># \u521d\u59cb\u5185\u5b58<br \/>\n-Xms512m<br \/>\n# \u6700\u5927\u5185\u5b58<br \/>\n-Xmx512m<\/p>\n<p>\u2705 \u914d\u7f6e\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u5f00\u53d1\u73af\u5883&#xff1a;512m~1g<\/li>\n<li>\u751f\u4ea7\u73af\u5883&#xff1a;\u4e0d\u8d85\u8fc7\u7269\u7406\u5185\u5b58\u768450%&#xff08;\u6700\u592731g&#xff09;<\/li>\n<li>Xms\u548cXmx\u5fc5\u987b\u8bbe\u7f6e\u4e3a\u76f8\u540c\u503c&#xff08;\u907f\u514d\u5185\u5b58\u6296\u52a8&#xff09;<\/li>\n<\/ul>\n<h4>3. Linux\u989d\u5916\u914d\u7f6e&#xff08;\u5fc5\u505a&#xff09;<\/h4>\n<li>\u521b\u5efa\u666e\u901a\u7528\u6237&#xff08;ES\u7981\u6b62root\u542f\u52a8&#xff09;<\/li>\n<p><span class=\"token function\">useradd<\/span> esuser<br \/>\n<span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> esuser:esuser \/usr\/local\/elasticsearch-8.10.0<\/p>\n<li>\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e&#xff08;\u89e3\u51b3\u6700\u5927\u7ebf\u7a0b\u6570\/\u865a\u62df\u5185\u5b58\u95ee\u9898&#xff09;<\/li>\n<p><span class=\"token comment\"># \u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">vi<\/span> \/etc\/security\/limits.conf<br \/>\n<span class=\"token comment\"># \u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/span><br \/>\nesuser soft nofile <span class=\"token number\">65535<\/span><br \/>\nesuser hard nofile <span class=\"token number\">65535<\/span><br \/>\nesuser soft nproc <span class=\"token number\">4096<\/span><br \/>\nesuser hard nproc <span class=\"token number\">4096<\/span><\/p>\n<h3>\u516d\u3001\u7b2c\u4e09\u6b65&#xff1a;\u542f\u52a8Elasticsearch\u670d\u52a1\u5668<\/h3>\n<h4>1. Windows \u542f\u52a8<\/h4>\n<p>\u8fdb\u5165ES\u7684bin\u76ee\u5f55&#xff0c;\u53cc\u51fbelasticsearch.bat&#xff0c;\u7b49\u5f85\u542f\u52a8\u5b8c\u6210\u3002 \u2705 \u542f\u52a8\u6210\u529f\u6807\u5fd7&#xff1a;\u63a7\u5236\u53f0\u6253\u5370started&#xff0c;\u65e0\u62a5\u9519\u4fe1\u606f\u3002<\/p>\n<h4>2. Linux \u542f\u52a8<\/h4>\n<p>\u5207\u6362\u5230\u666e\u901a\u7528\u6237&#xff0c;\u540e\u53f0\u542f\u52a8&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5207\u6362\u7528\u6237<\/span><br \/>\n<span class=\"token function\">su<\/span> esuser<br \/>\n<span class=\"token comment\"># \u8fdb\u5165bin\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/usr\/local\/elasticsearch-8.10.0\/bin<br \/>\n<span class=\"token comment\"># \u540e\u53f0\u542f\u52a8<\/span><br \/>\n.\/elasticsearch <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>\u2705 \u67e5\u770b\u542f\u52a8\u8fdb\u7a0b&#xff1a;ps -ef | grep elasticsearch<\/p>\n<h3>\u4e03\u3001\u7b2c\u56db\u6b65&#xff1a;\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u6b63\u5e38<\/h3>\n<h4>1. \u6d4f\u89c8\u5668\u8bbf\u95ee<\/h4>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165&#xff1a;http:\/\/\u670d\u52a1\u5668IP:9200 \u2705 \u8bbf\u95ee\u6210\u529f\u8fd4\u56deJSON\u6570\u636e&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;name&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node-1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;cluster_name&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;my-es-cluster&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;cluster_uuid&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;xxx&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;version&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;number&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;8.10.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;build_type&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;tar&#034;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;tagline&#034;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;You Know, for Search&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>2. API \u63a5\u53e3\u9a8c\u8bc1<\/h4>\n<p><span class=\"token function\">curl<\/span> http:\/\/127.0.0.1:9200<\/p>\n<h3>\u516b\u3001ES\u542f\u52a8\u5e38\u89c1\u9519\u8bef\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>1. \u9519\u8bef1&#xff1a;max virtual memory areas vm.max_map_count [65530] is too low<\/h4>\n<p>\u2705 \u89e3\u51b3&#xff08;Linux&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">vi<\/span> \/etc\/sysctl.conf<br \/>\n<span class=\"token assign-left variable\">vm.max_map_count<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">262144<\/span><br \/>\n<span class=\"token function\">sysctl<\/span> <span class=\"token parameter variable\">-p<\/span><\/p>\n<h4>2. \u9519\u8bef2&#xff1a;the default discovery settings are unsuitable for use<\/h4>\n<p>\u2705 \u89e3\u51b3&#xff1a;\u914d\u7f6e\u6587\u4ef6\u6dfb\u52a0 discovery.type: single-node<\/p>\n<h4>3. \u9519\u8bef3&#xff1a;\u5360\u7528\u7aef\u53e39200\u88ab\u5360\u7528<\/h4>\n<p>\u2705 \u89e3\u51b3&#xff1a;\u4fee\u6539elasticsearch.yml\u4e2dhttp.port\u4e3a\u5176\u4ed6\u7aef\u53e3<\/p>\n<h4>4. \u9519\u8bef4&#xff1a;root\u7528\u6237\u542f\u52a8\u5931\u8d25<\/h4>\n<p>\u2705 \u89e3\u51b3&#xff1a;Linux\u5fc5\u987b\u521b\u5efa\u666e\u901a\u7528\u6237\u542f\u52a8<\/p>\n<h4>5. \u9519\u8bef5&#xff1a;\u8fdc\u7a0b\u65e0\u6cd5\u8bbf\u95ee<\/h4>\n<p>\u2705 \u89e3\u51b3&#xff1a;<\/p>\n<li>\u914d\u7f6enetwork.host: 0.0.0.0<\/li>\n<li>\u5173\u95ed\u9632\u706b\u5899\/\u5f00\u653e9200\u7aef\u53e3<\/li>\n<h3>\u4e5d\u3001\u751f\u4ea7\u73af\u5883\u6838\u5fc3\u914d\u7f6e\u5efa\u8bae<\/h3>\n<li>\u5185\u5b58\u914d\u7f6e&#xff1a;-Xms8g -Xmx8g&#xff08;\u7269\u7406\u5185\u5b5816G\u670d\u52a1\u5668&#xff09;<\/li>\n<li>\u5b89\u5168\u8ba4\u8bc1&#xff1a;\u5f00\u542fxpack.security&#xff0c;\u8bbe\u7f6e\u8d26\u53f7\u5bc6\u7801<\/li>\n<li>\u6570\u636e\u8def\u5f84&#xff1a;\u6570\u636e\u548c\u65e5\u5fd7\u5206\u5f00\u5b58\u50a8&#xff0c;\u907f\u514d\u78c1\u76d8\u7206\u6ee1<\/li>\n<li>\u7aef\u53e3\u9632\u62a4&#xff1a;\u4ec5\u5141\u8bb8\u5185\u7f51IP\u8bbf\u95ee9200\u7aef\u53e3<\/li>\n<li>\u5f00\u673a\u81ea\u542f&#xff1a;\u914d\u7f6esystemd\u670d\u52a1&#xff0c;\u5f00\u673a\u81ea\u52a8\u542f\u52a8ES<\/li>\n<h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<p>\u672c\u6587\u5b8c\u6574\u8bb2\u89e3\u4e86Elasticsearch\u670d\u52a1\u5668\u4ece0\u52301\u7684\u542f\u52a8&#043;\u914d\u7f6e\u6d41\u7a0b&#xff0c;\u6838\u5fc3\u6b65\u9aa4\u603b\u7ed3\u4e3a4\u6b65&#xff1a;<\/p>\n<li>\u5b89\u88c5&#xff1a;\u4e0b\u8f7d\u89e3\u538bES\u5b89\u88c5\u5305<\/li>\n<li>\u914d\u7f6e&#xff1a;\u4fee\u6539elasticsearch.yml&#043;jvm.options<\/li>\n<li>\u542f\u52a8&#xff1a;Windows\u53cc\u51fb\u811a\u672c&#xff0c;Linux\u666e\u901a\u7528\u6237\u540e\u53f0\u542f\u52a8<\/li>\n<li>\u9a8c\u8bc1&#xff1a;\u6d4f\u89c8\u5668\u8bbf\u95eeIP:9200\u786e\u8ba4\u670d\u52a1\u6b63\u5e38<\/li>\n<p>\u6309\u7167\u672c\u6587\u6559\u7a0b\u64cd\u4f5c&#xff0c;\u53ef\u5feb\u901f\u89e3\u51b3ES\u542f\u52a8\u5931\u8d25\u3001\u65e0\u6cd5\u8fdc\u7a0b\u8bbf\u95ee\u3001\u5185\u5b58\u6ea2\u51fa\u7b4999%\u7684\u5e38\u89c1\u95ee\u9898&#xff0c;\u8f7b\u677e\u5b8c\u6210ES\u670d\u52a1\u5668\u642d\u5efa\u3002<\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724172119-6a639f0f92d18.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<table width=\"100%\">\n<tbody>\n<tr>\n<td width=\"50%\">\n<p>     <font face=\"STCAIYUN\" color=\"red\" size=\"4\">&#x1f33a;The End&#x1f33a;\u70b9\u70b9\u5173\u6ce8&#xff0c;\u6536\u85cf\u4e0d\u8ff7\u8def&#x1f33a;<\/font>\n     <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8&#xff1a;\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b\u4e00\u3001\u524d\u8a00\u4e8c\u3001\u524d\u7f6e\u8bf4\u660e\u4e09\u3001Elasticsearch \u542f\u52a8\u914d\u7f6e\u6838\u5fc3\u6d41\u7a0b\u56fe\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5b89\u88c5\u5305\u4e0b\u8f7d1. \u7cfb\u7edf\u8981\u6c422. \u4e0b\u8f7dES\u5b89\u88c5\u53053. \u89e3\u538b\u6587\u4ef6\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff08;\u91cd\u70b9&#xff09;1. \u914d\u7f6e\u6587\u4ef61&#xff1a;elasticsearch.yml&#xff08;\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff09;2. \u914d\u7f6e\u6587\u4ef62&#xff1a;jvm.optio<\/p>\n","protected":false},"author":2,"featured_media":81352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1299,323,43],"topic":[],"class_list":["post-81353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-elasticsearch","tag-323","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/81353.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8&#xff1a;\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b\u4e00\u3001\u524d\u8a00\u4e8c\u3001\u524d\u7f6e\u8bf4\u660e\u4e09\u3001Elasticsearch \u542f\u52a8\u914d\u7f6e\u6838\u5fc3\u6d41\u7a0b\u56fe\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5b89\u88c5\u5305\u4e0b\u8f7d1. \u7cfb\u7edf\u8981\u6c422. \u4e0b\u8f7dES\u5b89\u88c5\u53053. \u89e3\u538b\u6587\u4ef6\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff08;\u91cd\u70b9&#xff09;1. \u914d\u7f6e\u6587\u4ef61&#xff1a;elasticsearch.yml&#xff08;\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff09;2. \u914d\u7f6e\u6587\u4ef62&#xff1a;jvm.optio\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81353.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T17:21:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724172119-6a639f0f92d18.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81353.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81353.html\",\"name\":\"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T17:21:20+00:00\",\"dateModified\":\"2026-07-24T17:21:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81353.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81353.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81353.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/81353.html","og_locale":"zh_CN","og_type":"article","og_title":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8&#xff1a;\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b\u4e00\u3001\u524d\u8a00\u4e8c\u3001\u524d\u7f6e\u8bf4\u660e\u4e09\u3001Elasticsearch \u542f\u52a8\u914d\u7f6e\u6838\u5fc3\u6d41\u7a0b\u56fe\u56db\u3001\u7b2c\u4e00\u6b65&#xff1a;\u73af\u5883\u51c6\u5907\u4e0e\u5b89\u88c5\u5305\u4e0b\u8f7d1. \u7cfb\u7edf\u8981\u6c422. \u4e0b\u8f7dES\u5b89\u88c5\u53053. \u89e3\u538b\u6587\u4ef6\u4e94\u3001\u7b2c\u4e8c\u6b65&#xff1a;\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4fee\u6539&#xff08;\u91cd\u70b9&#xff09;1. \u914d\u7f6e\u6587\u4ef61&#xff1a;elasticsearch.yml&#xff08;\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff09;2. \u914d\u7f6e\u6587\u4ef62&#xff1a;jvm.optio","og_url":"https:\/\/www.wsisp.com\/helps\/81353.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T17:21:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724172119-6a639f0f92d18.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/81353.html","url":"https:\/\/www.wsisp.com\/helps\/81353.html","name":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T17:21:20+00:00","dateModified":"2026-07-24T17:21:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81353.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81353.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81353.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Elasticsearch\u96f6\u57fa\u7840\u5165\u95e8\uff1a\u670d\u52a1\u5668\u5b8c\u6574\u542f\u52a8\u4e0e\u914d\u7f6e\u5b9e\u6218\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=81353"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81353\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/81352"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81353"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}