{"id":40568,"date":"2023-05-18T13:58:32","date_gmt":"2023-05-26T09:40:59","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/"},"modified":"2024-01-15T10:39:55","modified_gmt":"2024-01-15T02:39:55","slug":"%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/","title":{"rendered":"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6"},"content":{"rendered":"<p>DL\uff1ahttps:\/\/www.elastic.co\/jp\/downloads\/elasticsearch<br \/>\n\u7248\u672c\uff1a5.6.0<br \/>\n\u53d1\u5e03\u65e5\u671f\uff1a2017\u5e749\u670811\u65e5<\/p>\n<p>\u76f4\u5230\u4e09\u4e2a\u96c6\u7fa4\u5f00\u59cb\u8fd0\u884c\u3002<\/p>\n<hr \/>\n<h2>\u25a0\u5f39\u6027\u641c\u7d22<\/h2>\n<p>\u6587\u6863 (https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/5.6\/release-notes-5.6.0.html)<\/p>\n<hr \/>\n<h3>\u64cd\u4f5c\u7cfb\u7edf\u7684\u8bbe\u7f6e\uff08CentOS6\u7cfb\u5217\uff09<\/h3>\n<p>\/etc\/security\/limits.d\/90-nproc.conf\u7684\u610f\u601d\u662f\u6307\u5728\u5b89\u5168\u9650\u5236\u76ee\u5f55\u4e0b\u768490-nproc.conf\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>#*          soft    nproc     1024\r\nroot       soft    nproc     unlimited\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5Java 1.8.0_131\u6216\u66f4\u9ad8\u7248\u672c\u3002<\/h3>\n<pre class=\"post-pre\"><code># yum install java-1.8.0-openjdk.x86_64\r\n# java -version\r\nopenjdk version \"1.8.0_141\"\r\nOpenJDK Runtime Environment (build 1.8.0_141-b16)\r\nOpenJDK 64-Bit Server VM (build 25.141-b16, mixed mode)\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u5b89\u88c5 Elasticsearch<\/h3>\n<pre class=\"post-pre\"><code># rpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\n# cat &lt;&lt; EOF &gt; \/etc\/yum.repo.d\/elasaticsearch5.repo\r\n[elasticsearch-5.x]\r\nname=Elasticsearch repository for 5.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/5.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=1\r\nautorefresh=1\r\ntype=rpm-md\r\nEOF\r\n\r\n# yum install elasticsearch-5.6.0\r\n# chkconfig --add elasticsearch\r\n# mkdir -p \/tomi\/elasticsearch\/{data,logs}\r\n# chown -R elasticsearch. \/tomi\/elasticsearch\r\n<\/code><\/pre>\n<hr \/>\n<h4>\u203b\u901a\u8fc7rpm (yum) \u5b89\u88c5\u7684Elasticsearch\u7684\u9ed8\u8ba4\u76ee\u5f55\u7ed3\u6784<\/h4>\n<hr \/>\n<h3>\u5f39\u6027\u641c\u7d22\u914d\u7f6e<\/h3>\n<p>\u73af\u5883\u53d8\u91cf\uff1a\/etc\/sysconfig\/elasticsearch<br \/>\n\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/elasticsearch\/elasticsearch.yml<\/p>\n<h4>\u6211\u6539\u53d8\u4e86\u9ed8\u8ba4\u8bbe\u7f6e<\/h4>\n<p>elasticsearch\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre class=\"post-pre\"><code>cluster.name: tomi-test-elastic\r\nnode.name: ${HOSTNAME}\r\npath.data: \/tomi\/elasticsearch\/data\r\npath.logs: \/tomi\/elasticsearch\/logs\r\nbootstrap.system_call_filter: false\r\nbootstrap.seccomp: false\r\nnetwork.host: 0.0.0.0\r\nhttp.port: 9200\r\ndiscovery.zen.ping.unicast.hosts: [\"tomi-test-elastic01.hoge-internal.jp\", \"tomi-test-elastic02.hoge-internal.jp\", \"tomi-test-elastic03.hoge-internal.jp\"]\r\ndiscovery.zen.minimum_master_nodes: 2\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u542f\u52a8Elasticsearch<\/h3>\n<pre class=\"post-pre\"><code># service elasticsearch start\r\n<\/code><\/pre>\n<hr \/>\n<h3>\u8bf7\u786e\u8ba4\u96c6\u7fa4\u7684\u72b6\u6001\u3002<\/h3>\n<pre class=\"post-pre\"><code># curl -X GET http:\/\/localhost:9200\/_cat\/health?v\r\nepoch      timestamp cluster           status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent\r\n1505374173 16:29:33  tomi-test-elastic green           3         3      0   0    0    0        0             0                  -                100.0%\r\n<\/code><\/pre>\n<p>\u203b\u63d0\u4f9b\u4e86\u5404\u79cdAPI\uff0c\u5982\u732b\uff0c\u805a\u7c7b\u7b49\u3002\u8bf7\u53c2\u8003\u6587\u6863\u3002<\/p>\n<hr \/>\n<h3>\u4fbf\u5229\u63d2\u4ef6\u793a\u4f8b elasticsearch-head<\/h3>\n<pre class=\"post-pre\"><code>mkdir \/usr\/lcoal\/src\r\ngit clone https:\/\/github.com\/mobz\/elasticsearch-head.git\r\ncd elasticsearch-head\r\nnpm install\r\nnpm run start\r\n\r\nhttp:\/\/tomi-test-elastic01.hoge-internal.jp:9100\/\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6ca1\u6709\u663e\u793a\u96c6\u7fa4\u4fe1\u606f\uff0c\u5c1d\u8bd5\u5c06Elasticsearch\u7684URL\u4ecelocalhost\u66f4\u6539\u4e3a\u6307\u5b9aIP\u5730\u5740\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DL\uff1ahttps:\/\/www.elastic.co\/jp\/downloads\/elasticsearch \u7248\u672c [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40568","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884celasticsearch-5-6\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6\" \/>\n<meta property=\"og:description\" content=\"DL\uff1ahttps:\/\/www.elastic.co\/jp\/downloads\/elasticsearch \u7248\u672c [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884celasticsearch-5-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-26T09:40:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T02:39:55+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/\",\"name\":\"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-26T09:40:59+00:00\",\"dateModified\":\"2024-01-15T02:39:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884celasticsearch-5-6\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6","og_description":"DL\uff1ahttps:\/\/www.elastic.co\/jp\/downloads\/elasticsearch \u7248\u672c [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884celasticsearch-5-6\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-26T09:40:59+00:00","article_modified_time":"2024-01-15T02:39:55+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/","name":"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-26T09:40:59+00:00","dateModified":"2024-01-15T02:39:55+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6682\u65f6\u5c1d\u8bd5\u8fd0\u884cElasticsearch 5.6"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%9a%82%e6%97%b6%e5%b0%9d%e8%af%95%e8%bf%90%e8%a1%8celasticsearch-5-6\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40568"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40568\/revisions"}],"predecessor-version":[{"id":58707,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40568\/revisions\/58707"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}