{"id":32776,"date":"2025-04-25T23:15:21","date_gmt":"2025-04-25T15:15:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32776.html"},"modified":"2025-04-25T23:15:21","modified_gmt":"2025-04-25T15:15:21","slug":"docker%e9%83%a8%e7%bd%b2elasticsearch%e9%9b%86%e7%be%a4%ef%bc%88%e5%a4%9a%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32776.html","title":{"rendered":"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09"},"content":{"rendered":"<h2>1.\u62c9\u53d6\u955c\u50cf<\/h2>\n<p style=\"margin-left:.0001pt;text-align:justify\">docker pull elasticsearch:7.17.14<\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">&#xff08;\u4ee5\u4e0b192.168.0.105\u4e3a\u4e3b\u8282\u70b9\u670d\u52a1\u5668ip&#xff0c;192.168.0.118\u4e3a\u4ece\u8282\u70b9\u670d\u52a1\u5668IP\u3002&#xff09;<\/p>\n<h2 style=\"margin-left:.0001pt;text-align:justify\">2.\u914d\u7f6e\u5de5\u4f5c<\/h2>\n<li style=\"text-align:center\">\u9996\u5148\u5c06vm\u5185\u5b58\u8c03\u5927&#xff0c;\u5426\u5219\u65e0\u6cd5\u542f\u52a8\u96c6\u7fa4&#xff0c;\u4e24\u53f0\u7535\u8111\u90fd\u8981\u505a\u8fd9\u4e2a\u8bbe\u7f6e #\u4fee\u6539sysctl.conf<br \/>\nvi \/etc\/sysctl.conf<br \/>\n#\u4fee\u6539max_map_count\u8c03\u5927&#xff0c;\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u8bbe\u7f6e&#xff0c;\u5219\u65b0\u589e\u4e00\u884c<br \/>\nvm.max_map_count&#061;262144<br \/>\n#\u6539\u5b8c\u4fdd\u5b58\u540e&#xff0c; \u6267\u884c\u4e0b\u9762\u547d\u4ee4\u8ba9sysctl.conf\u6587\u4ef6\u751f\u6548<br \/>\nsysctl -p <\/p>\n<p>2.\u914d\u7f6e\u4e24\u4e2aelasticsearch.yml\u6587\u4ef6&#xff0c;\u5206\u522b\u653e\u5230\u4e24\u53f0\u670d\u52a1\u5668\u7684\/home\/es\/config\/\u4e0b\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<p> \u5176\u4e2d\u4e3b\u8282\u70b9\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b&#xff1a; # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; Elasticsearch Configuration &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n# \u914d\u7f6ees\u7684\u96c6\u7fa4\u540d\u79f0&#xff0c;es\u4f1a\u81ea\u52a8\u53d1\u73b0\u5728\u540c\u4e00\u7f51\u6bb5\u4e0b\u7684es,\u5982\u679c\u5728\u540c\u4e00\u7f51\u6bb5\u4e0b\u6709\u591a\u4e2a\u96c6\u7fa4&#xff0c;\u5c31\u53ef\u4ee5\u7528\u8fd9\u4e2a\u5c5e\u6027\u6765\u533a\u5206\u4e0d\u540c\u7684\u96c6\u7fa4<br \/>\ncluster.name: elasticsearch<br \/>\n# \u8282\u70b9\u540d\u79f0<br \/>\nnode.name: node-1<br \/>\n# \u6307\u5b9a\u8be5\u8282\u70b9\u662f\u5426\u6709\u8d44\u683c\u88ab\u9009\u4e3e\u6210\u4e3anode<br \/>\nnode.master: true<br \/>\n# \u6307\u5b9a\u521d\u59cb\u4e3b\u8282\u70b9&#xff0c;\u5982\u679c\u5fc5\u8981&#xff0c;\u4fee\u6539\u6210\u81ea\u5df1\u7684ip\u5730\u5740<br \/>\ncluster.initial_master_nodes: [&#034;192.168.0.105:9300&#034;]<br \/>\n# \u6307\u5b9a\u8be5\u8282\u70b9\u662f\u5426\u5b58\u50a8\u7d22\u5f15\u6570\u636e&#xff0c;\u9ed8\u8ba4\u4e3atrue<br \/>\nnode.data: true<br \/>\n# \u8bbe\u7f6e\u7ed1\u5b9a\u7684ip\u5730\u5740\u8fd8\u6709\u5176\u4ed6\u8282\u70b9\u548c\u8be5\u8282\u70b9\u4ea4\u6362\u7684ip\u5730\u5740&#xff0c;\u672c\u673aip<br \/>\nnetwork.host: 0.0.0.0<br \/>\nnetwork.publish_host: 192.168.0.105<br \/>\n# \u6307\u5b9ahttp\u7aef\u53e3<br \/>\nhttp.port: 9200<br \/>\n# \u8bbe\u7f6e\u8282\u70b9\u95f4\u4ea4\u4e92\u7684tcp\u7aef\u53e3&#xff0c;\u9ed8\u8ba4\u662f9300<br \/>\ntransport.tcp.port: 9300<br \/>\n# \u8bbe\u7f6e\u96c6\u7fa4\u4e2dmaster\u8282\u70b9\u7684\u521d\u59cb\u5217\u8868&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u8282\u70b9\u6765\u81ea\u52a8\u53d1\u73b0\u65b0\u52a0\u5165\u96c6\u7fa4\u7684\u8282\u70b9<br \/>\ndiscovery.zen.ping.unicast.hosts: [&#034;192.168.0.105:9300&#034;,&#034;192.168.0.118:9300&#034;]<br \/>\n# \u5982\u679c\u8981\u4f7f\u7528head,\u90a3\u4e48\u9700\u8981\u89e3\u51b3\u8de8\u57df\u95ee\u9898&#xff0c;\u4f7fhead\u63d2\u4ef6\u53ef\u4ee5\u8bbf\u95eees<br \/>\nhttp.cors.enabled: true<br \/>\nhttp.cors.allow-origin: &#034;*&#034; <\/p>\n<p>3.\u4ece\u8282\u70b9\u914d\u7f6e\u5982\u4e0b<\/p>\n<p> # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; Elasticsearch Configuration &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n# \u914d\u7f6ees\u7684\u96c6\u7fa4\u540d\u79f0&#xff0c;es\u4f1a\u81ea\u52a8\u53d1\u73b0\u5728\u540c\u4e00\u7f51\u6bb5\u4e0b\u7684es,\u5982\u679c\u5728\u540c\u4e00\u7f51\u6bb5\u4e0b\u6709\u591a\u4e2a\u96c6\u7fa4&#xff0c;\u5c31\u53ef\u4ee5\u7528\u8fd9\u4e2a\u5c5e\u6027\u6765\u533a\u5206\u4e0d\u540c\u7684\u96c6\u7fa4<br \/>\ncluster.name: elasticsearch<br \/>\n# \u8282\u70b9\u540d\u79f0<br \/>\nnode.name: node-2<br \/>\n# \u6307\u5b9a\u8be5\u8282\u70b9\u662f\u5426\u6709\u8d44\u683c\u88ab\u9009\u4e3e\u6210\u4e3anode<br \/>\nnode.master: true<br \/>\n# \u6307\u5b9a\u521d\u59cb\u4e3b\u8282\u70b9<br \/>\ncluster.initial_master_nodes: [&#034;192.168.0.105:9300&#034;]<br \/>\n# \u6307\u5b9a\u8be5\u8282\u70b9\u662f\u5426\u5b58\u50a8\u7d22\u5f15\u6570\u636e&#xff0c;\u9ed8\u8ba4\u4e3atrue<br \/>\nnode.data: true<br \/>\n# \u8bbe\u7f6e\u7ed1\u5b9a\u7684ip\u5730\u5740\u8fd8\u6709\u5176\u4ed6\u8282\u70b9\u548c\u8be5\u8282\u70b9\u4ea4\u6362\u7684ip\u5730\u5740&#xff0c;\u672c\u673aip<br \/>\nnetwork.host: 0.0.0.0<br \/>\nnetwork.publish_host: 192.168.0.118<br \/>\n# \u6307\u5b9ahttp\u7aef\u53e3<br \/>\nhttp.port: 9200<br \/>\n# \u8bbe\u7f6e\u8282\u70b9\u95f4\u4ea4\u4e92\u7684tcp\u7aef\u53e3&#xff0c;\u9ed8\u8ba4\u662f9300<br \/>\ntransport.tcp.port: 9300<br \/>\n# \u8bbe\u7f6e\u96c6\u7fa4\u4e2dmaster\u8282\u70b9\u7684\u521d\u59cb\u5217\u8868&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u8282\u70b9\u6765\u81ea\u52a8\u53d1\u73b0\u65b0\u52a0\u5165\u96c6\u7fa4\u7684\u8282\u70b9<br \/>\ndiscovery.zen.ping.unicast.hosts: [&#034;192.168.0.105:9300&#034;,&#034;192.168.0.118:9300&#034;]<br \/>\n# \u5982\u679c\u8981\u4f7f\u7528head,\u90a3\u4e48\u9700\u8981\u89e3\u51b3\u8de8\u57df\u95ee\u9898&#xff0c;\u4f7fhead\u63d2\u4ef6\u53ef\u4ee5\u8bbf\u95eees<br \/>\nhttp.cors.enabled: true<br \/>\nhttp.cors.allow-origin: &#034;*&#034; <\/p>\n<p style=\"margin-left:.0001pt;text-align:justify\">4\u521b\u5efa\u6587\u4ef6\u6302\u8f7d\u76ee\u5f55&#xff0c;\u4e24\u53f0\u7535\u8111\u90fd\u8981\u505a<\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"background-color:#f5f5f5\"><span style=\"background-color:#f5f5f5\"><span style=\"color:#008000\">#\u521b\u5efaes\u914d\u7f6e\u76ee\u5f55<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"background-color:#f5f5f5\"><span style=\"background-color:#f5f5f5\"><span style=\"color:#333333\">mkdir \/home\/es\/config &#8211;<\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#000000\">p<\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#008000\">#\u521b\u5efaes\u6570\u636e\u76ee\u5f55<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"background-color:#f5f5f5\"><span style=\"background-color:#f5f5f5\"><span style=\"color:#333333\">mkdir \/home\/es\/<\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#000000\">data <\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#008000\">#\u521b\u5efaes\u63d2\u4ef6\u76ee\u5f55<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"background-color:#f5f5f5\"><span style=\"background-color:#f5f5f5\"><span style=\"color:#333333\">mkdir \/home\/es\/<\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#000000\">plugins<\/span><\/span><span style=\"background-color:#f5f5f5\"><span style=\"color:#008000\">#\u6388\u6743\u76ee\u5f55<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;text-align:left\"><span style=\"background-color:#f5f5f5\"><span style=\"background-color:#f5f5f5\"><span style=\"color:#333333\">chmod -R 777 \/home\/es<\/span><\/span><\/span><\/p>\n<h2>3.\u8fd0\u884c\u90e8\u7f72<\/h2>\n<p> #\u5bb9\u56681<br \/>\ndocker run -e ES_JAVA_OPTS&#061;&#034;-Xms256m -Xmx256m&#034; -d &#8211;name es111 -p 9200:9200 -p 9300:9300 -v \/home\/es\/data:\/usr\/share\/elasticsearch\/data -v \/home\/es\/plugins:\/usr\/share\/elasticsearch\/plugins -v \/home\/es\/config\/elasticsearch.yml:\/usr\/share\/elasticsearch\/config\/elasticsearch.yml elasticsearch:7.17.14<\/p>\n<p>#\u5bb9\u56682<br \/>\ndocker run -e ES_JAVA_OPTS&#061;&#034;-Xms256m -Xmx256m&#034; -d &#8211;name es222 -p 9200:9200 -p 9300:9300 -v \/home\/es\/data:\/usr\/share\/elasticsearch\/data -v \/home\/es\/plugins:\/usr\/share\/elasticsearch\/plugins -v \/home\/es\/config\/elasticsearch.yml:\/usr\/share\/elasticsearch\/config\/elasticsearch.yml elasticsearch:7.17.14 <\/p>\n<h2>4.\u9a8c\u8bc1&#xff1a;<\/h2>\n<p> \u9a8c\u8bc1&#xff1a;\u4ee5\u4efb\u610f\u4e00\u53f0\u670d\u52a1\u5668ip&#043;9200\u7aef\u53e3\u8bbf\u95ee\u4ee5\u4e0b\u8def\u5f84&#xff0c;\u4f8b\u5982&#xff1a;192.168.0.105:9200\/_cat\/nodes?v&#061;true&amp;pretty\u3002<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250425151520-680ba708c1c1e.png\" \/><\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\uff08\u4ee5\u4e0b192.168.0.105\u4e3a\u4e3b\u8282\u70b9\u670d\u52a1\u5668ip\uff0c192.168.0.118\u4e3a\u4ece\u8282\u70b9\u670d\u52a1\u5668IP\u30022.\u914d\u7f6e\u4e24\u4e2aelasticsearch.yml\u6587\u4ef6\uff0c\u5206\u522b\u653e\u5230\u4e24\u53f0\u670d\u52a1\u5668\u7684\/home\/es\/config\/\u4e0b3.\u4ece\u8282\u70b9\u914d\u7f6e\u5982\u4e0b4\u521b\u5efa\u6587\u4ef6\u6302\u8f7d\u76ee\u5f55\uff0c\u4e24\u53f0\u7535\u8111\u90fd\u8981\u505a#\u521b\u5efaes\u914d\u7f6e\u76ee\u5f55p#\u521b\u5efaes\u6570\u636e\u76ee\u5f55data#\u521b\u5efaes\u63d2\u4ef6\u76ee\u5f55plugins#\u6388\u6743\u76ee\u5f55\u3002_docker pull elasticsearch<\/p>\n","protected":false},"author":2,"featured_media":32775,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,1299,43],"topic":[],"class_list":["post-32776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-elasticsearch","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \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\/32776.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\uff08\u4ee5\u4e0b192.168.0.105\u4e3a\u4e3b\u8282\u70b9\u670d\u52a1\u5668ip\uff0c192.168.0.118\u4e3a\u4ece\u8282\u70b9\u670d\u52a1\u5668IP\u30022.\u914d\u7f6e\u4e24\u4e2aelasticsearch.yml\u6587\u4ef6\uff0c\u5206\u522b\u653e\u5230\u4e24\u53f0\u670d\u52a1\u5668\u7684\/home\/es\/config\/\u4e0b3.\u4ece\u8282\u70b9\u914d\u7f6e\u5982\u4e0b4\u521b\u5efa\u6587\u4ef6\u6302\u8f7d\u76ee\u5f55\uff0c\u4e24\u53f0\u7535\u8111\u90fd\u8981\u505a#\u521b\u5efaes\u914d\u7f6e\u76ee\u5f55p#\u521b\u5efaes\u6570\u636e\u76ee\u5f55data#\u521b\u5efaes\u63d2\u4ef6\u76ee\u5f55plugins#\u6388\u6743\u76ee\u5f55\u3002_docker pull elasticsearch\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32776.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-25T15:15:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250425151520-680ba708c1c1e.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32776.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32776.html\",\"name\":\"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-25T15:15:21+00:00\",\"dateModified\":\"2025-04-25T15:15:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32776.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32776.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32776.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09\"}]},{\"@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":"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \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\/32776.html","og_locale":"zh_CN","og_type":"article","og_title":"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\uff08\u4ee5\u4e0b192.168.0.105\u4e3a\u4e3b\u8282\u70b9\u670d\u52a1\u5668ip\uff0c192.168.0.118\u4e3a\u4ece\u8282\u70b9\u670d\u52a1\u5668IP\u30022.\u914d\u7f6e\u4e24\u4e2aelasticsearch.yml\u6587\u4ef6\uff0c\u5206\u522b\u653e\u5230\u4e24\u53f0\u670d\u52a1\u5668\u7684\/home\/es\/config\/\u4e0b3.\u4ece\u8282\u70b9\u914d\u7f6e\u5982\u4e0b4\u521b\u5efa\u6587\u4ef6\u6302\u8f7d\u76ee\u5f55\uff0c\u4e24\u53f0\u7535\u8111\u90fd\u8981\u505a#\u521b\u5efaes\u914d\u7f6e\u76ee\u5f55p#\u521b\u5efaes\u6570\u636e\u76ee\u5f55data#\u521b\u5efaes\u63d2\u4ef6\u76ee\u5f55plugins#\u6388\u6743\u76ee\u5f55\u3002_docker pull elasticsearch","og_url":"https:\/\/www.wsisp.com\/helps\/32776.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-25T15:15:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250425151520-680ba708c1c1e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32776.html","url":"https:\/\/www.wsisp.com\/helps\/32776.html","name":"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-25T15:15:21+00:00","dateModified":"2025-04-25T15:15:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32776.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32776.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32776.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Docker\u90e8\u7f72elasticsearch\u96c6\u7fa4\uff08\u591a\u53f0\u670d\u52a1\u5668\uff09"}]},{"@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\/32776","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=32776"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32776\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32775"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32776"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}