elasticsearch-安装-1
Posted 有我在
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch-安装-1相关的知识,希望对你有一定的参考价值。
一.版本说明
elasticsearch-5.6.0
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
二.解压安装
tar zvxf elasticsearch-5.6.0.tar.gz
三.目录结构
├── bin
├── config
│ └── scripts
├── data
│ └── nodes
│ └── 0
│ └── _state
├── lib
├── logs
├── modules
│ ├── aggs-matrix-stats
│ ├── ingest-common
│ ├── lang-expression
│ ├── lang-groovy
│ ├── lang-mustache
│ ├── lang-painless
│ ├── parent-join
│ ├── percolator
│ ├── reindex
│ ├── transport-netty3
│ └── transport-netty4
└── plugins
四.启动服务
./bin/elasticsearch
[2017-09-16T02:12:39,550][INFO ][o.e.t.TransportService ] [7fXAbFa] publish_address {192.168.239.129:9300}, bound_addresses {[::]:9300}
[2017-09-16T02:12:39,602][INFO ][o.e.b.BootstrapChecks ] [7fXAbFa] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-09-16T02:12:45,330][WARN ][o.e.m.j.JvmGcMonitorService] [7fXAbFa] [gc][young][1][2] duration [4.5s], collections [1]/[5.6s], total [4.5s]/[5.8s], memory [266.2mb]->[43.1mb]/[1.9gb], all_pools {[young] [249.1mb]->[8.6mb]/[266.2mb]}{[survivor] [17mb]->[33.2mb]/[33.2mb]}{[old] [0b]->[7.2mb]/[1.6gb]}
[2017-09-16T02:12:45,415][WARN ][o.e.m.j.JvmGcMonitorService] [7fXAbFa] [gc][1] overhead, spent [4.5s] collecting in the last [5.6s]
[2017-09-16T02:12:53,399][INFO ][o.e.c.s.ClusterService ] [7fXAbFa] new_master {7fXAbFa}{7fXAbFa0Qw61rnNG1BfJIQ}{z9_mWtcORrGu42LUxAvp3g}{192.168.239.129}{192.168.239.129:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-09-16T02:12:53,941][INFO ][o.e.h.n.Netty4HttpServerTransport] [7fXAbFa] publish_address {192.168.239.129:9200}, bound_addresses {[::]:9200}
[2017-09-16T02:12:53,942][INFO ][o.e.n.Node ] [7fXAbFa] started
[2017-09-16T02:12:54,019][INFO ][o.e.g.GatewayService ] [7fXAbFa] recovered [0] indices into cluster_state
五.如何测试是否安装成功
浏览器输入:ip地址:9200.
{ "name" : "7fXAbFa", "cluster_name" : "elasticsearch", "cluster_uuid" : "OX33WAUQSW6yLg_feAL2-g", "version" : { "number" : "5.6.0", "build_hash" : "781a835", "build_date" : "2017-09-07T03:09:58.087Z", "build_snapshot" : false, "lucene_version" : "6.6.0" }, "tagline" : "You Know, for Search" }
看到以上内容,说明服务已经启动成功啦.
到了这里服务已启动完毕
注意:启动elk服务不建议用root启动,新建用户并把elk目录权限给新建用户.
六.安装遇到的问题
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
执行:sysctl -w vm.max_map_count=262144
以上是关于elasticsearch-安装-1的主要内容,如果未能解决你的问题,请参考以下文章
使用标准库Ruby将数据标记到Elasticsearch批量中
在Tomcat的安装目录下conf目录下的server.xml文件中增加一个xml代码片段,该代码片段中每个属性的含义与用途
Elasticsearch:如何在 Elasticsearch 中正确使用同义词功能