{"id":40781,"date":"2023-04-30T06:00:33","date_gmt":"2024-02-14T11:54:22","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/"},"modified":"2024-04-30T01:56:28","modified_gmt":"2024-04-29T17:56:28","slug":"%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/","title":{"rendered":"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5"},"content":{"rendered":"<p>\u7b80\u8981\u8bf4\u660e\uff1a\u6211\u5728CentOS 7\u4e0a\u5b89\u88c5\u4e86Elasticsearch 5.5\u548cX-pack 5.5\u3002<\/p>\n<p>\u73af\u5883\uff1aCentOS 7<\/p>\n<h4>\u9996\u5148\u5b89\u88c5Elastcisearch\u3002<\/h4>\n<pre class=\"post-pre\"><code>yum install -y java java-1.8.0-openjdk-devel\r\nyum -y update\r\n\r\nwget https:\/\/artifacts.elastic.co\/downloads\/elasticsearch\/elasticsearch-5.5.0.rpm\r\nsha1sum elasticsearch-5.5.0.rpm\r\nrpm --install elasticsearch-5.5.0.rpm\r\n\r\nwget https:\/\/artifacts.elastic.co\/downloads\/kibana\/kibana-5.5.0-x86_64.rpm\r\nsha1sum kibana-5.5.0-x86_64.rpm\r\nrpm --install kibana-5.5.0-x86_64.rpm\r\n\r\nwget https:\/\/artifacts.elastic.co\/downloads\/logstash\/logstash-5.5.0.rpm\r\nsha1sum logstash-5.5.0.rpm \r\nrpm --install logstash-5.5.0.rpm \r\n<\/code><\/pre>\n<h4>\u4e0b\u4e00\u6b65\u662f\u4fee\u6539yml\u6587\u4ef6\u3002<\/h4>\n<pre class=\"post-pre\"><code>vi \/etc\/kibana\/kibana.yml\r\nserver.host:\u201d0.0.0.0\u201d\r\n\uff03\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3068\u304d\r\n<\/code><\/pre>\n<p>\u9700\u8981\u540c\u6837\u4fee\u6539elasticsearch.yml\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>vi \/etc\/elasticsearch\/elasticsearch.yml\r\nnetwork.host:\"0.0.0.0\"\r\n\uff03\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u53d7\u3051\u4ed8\u3051\u308b\r\n<\/code><\/pre>\n<h4>\u25a0\u5728\u9632\u706b\u5899\u4e2d\u6dfb\u52a0\u5185\u5bb9<\/h4>\n<pre class=\"post-pre\"><code>firewall-cmd --permanent --add-port=9200\/tcp\r\nfirewall-cmd --permanent --add-port=5601\/tcp\r\nfirewall-cmd --reload\r\n<\/code><\/pre>\n<h4>\u25a0\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7public.xml\u9a8c\u8bc1\u53cd\u6620\u7ed3\u679c\u3002<\/h4>\n<p>\u6253\u5f00\u4f4d\u4e8e\/etc\/firewalld\/zones\/public.xml\u7684\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code> &lt;port protocol=\"tcp\" port=\"5601\"\/&gt;\r\n &lt;port protocol=\"tcp\" port=\"9200\"\/&gt;\r\n<\/code><\/pre>\n<h4>\u786e\u8ba4Elasticsearch\u662f\u5426\u542f\u52a8\u3002<\/h4>\n<pre class=\"post-pre\"><code>systemctl start elasticsearch\r\nsystemctl start kibana\r\nsystemctl start logstash\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>systemctl enable elasticsearch\r\nsystemctl enable kibana\r\nsystemctl enable logstsh\r\n<\/code><\/pre>\n<h4>\u25a0\u786e\u8ba4\u542f\u52a8<\/h4>\n<pre class=\"post-pre\"><code>curl http:\/\/localhost:9200\r\ncurl http:\/\/localhost:5601\r\n<\/code><\/pre>\n<h4>x-pack5.5 \u6700\u597d\u901a\u8fc7\u5355\u72ec\u4e0b\u8f7d\u5e76\u4f7f\u7528SCP\u4e0a\u4f20\u8fdb\u884c\u5b89\u88c5\uff0c\u8fd9\u6837\u66f4\u5feb\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u5c06\u5176\u6682\u5b58\u5230 \/tmp \u76ee\u5f55\u5e76\u8fdb\u884c\u5b89\u88c5\u3002<\/h4>\n<pre class=\"post-pre\"><code>\/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin install file:\/\/\/tmp\/x-pack5.5.0.zip\r\n\/usr\/share\/kibana\/bin\/kibana-plugin install file:\/\/\/tmp\/x-pack5.5.0.zip\r\n\/usr\/share\/logstash\/bin\/logstash-plugin install file:\/\/\/tmp\/x-pack5.5.0.zip\r\n<\/code><\/pre>\n<h4>\u25a0 \u91cd\u65b0\u542f\u52a8\u670d\u52a1<\/h4>\n<pre class=\"post-pre\"><code>systemctl restart elasticsearch\r\nsystemctl restart kibana\r\nsystemctl restart logstash\r\n<\/code><\/pre>\n<h4>\u25a0\u542f\u52a8\u786e\u8ba4\uff1a\u5b89\u88c5x-pack\u540e\uff0c\u9700\u8981\u8f93\u5165\u5bc6\u7801\u3002<\/h4>\n<pre class=\"post-pre\"><code>curl -u elastic:changeme localhost:9200\r\ncurl -u elastic:changeme localhost:5601\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u57fa\u672c\u5b8c\u6210\u4e86\uff0c\u5de5\u4f5c\u65f6\u95f4\u5927\u7ea6\u662f3\u81f34\u5c0f\u65f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u8981\u8bf4\u660e\uff1a\u6211\u5728CentOS 7\u4e0a\u5b89\u88c5\u4e86Elasticsearch 5.5\u548cX-pack 5.5\u3002 \u73af\u5883\uff1aCen [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40781","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>\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5 - 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\/\u6211\u5c1d\u8bd5\u5b89\u88c5-elasticsearch5-5-x-pack5-5\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u8981\u8bf4\u660e\uff1a\u6211\u5728CentOS 7\u4e0a\u5b89\u88c5\u4e86Elasticsearch 5.5\u548cX-pack 5.5\u3002 \u73af\u5883\uff1aCen [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5b89\u88c5-elasticsearch5-5-x-pack5-5\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-14T11:54:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T17:56:28+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\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%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/\",\"name\":\"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-14T11:54:22+00:00\",\"dateModified\":\"2024-04-29T17:56:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5\"}]},{\"@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\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5 - 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\/\u6211\u5c1d\u8bd5\u5b89\u88c5-elasticsearch5-5-x-pack5-5\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5","og_description":"\u7b80\u8981\u8bf4\u660e\uff1a\u6211\u5728CentOS 7\u4e0a\u5b89\u88c5\u4e86Elasticsearch 5.5\u548cX-pack 5.5\u3002 \u73af\u5883\uff1aCen [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u5b89\u88c5-elasticsearch5-5-x-pack5-5\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-14T11:54:22+00:00","article_modified_time":"2024-04-29T17:56:28+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/","name":"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-14T11:54:22+00:00","dateModified":"2024-04-29T17:56:28+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5c1d\u8bd5\u5b89\u88c5 Elasticsearch5.5 X-Pack5.5"}]},{"@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\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e5%ae%89%e8%a3%85-elasticsearch5-5-x-pack5-5%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40781","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40781"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40781\/revisions"}],"predecessor-version":[{"id":88981,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40781\/revisions\/88981"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}