安装 :brew install elasticsearch
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-6.5.4.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/elasticsearch/6.5.4/bin/elasticsearch-keystore create
==> Caveats
Data: /usr/local/var/lib/elasticsearch/elasticsearch_helei/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_helei.log
Plugins: /usr/local/var/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
安装成功后,查看版本信息 : elasticsearch --version
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory
Version: 6.5.4, Build: oss/tar/d2ef93d/2018-12-17T21:17:40.758843Z, JVM: 1.8.0_101
启动 :elasticsearch
[2019-01-03T16:58:56,928][INFO ][o.e.e.NodeEnvironment ] [gJtAdxS] using [1] data paths, mounts [[/ (/dev/disk0s2)]], net usable_space [135gb], net total_space [232.9gb], types [hfs]
[2019-01-03T16:58:56,936][INFO ][o.e.e.NodeEnvironment ] [gJtAdxS] heap size [990.7mb], compressed ordinary object pointers [true]
[2019-01-03T16:58:56,939][INFO ][o.e.n.Node ] [gJtAdxS] node name derived from node ID [gJtAdxScQfqd4c5vYkSZlA]; set [node.name] to override
[2019-01-03T16:58:56,939][INFO ][o.e.n.Node ] [gJtAdxS] version[6.5.4], pid[54362], build[oss/tar/d2ef93d/2018-12-17T21:17:40.758843Z], OS[Mac OS X/10.12.6/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_101/25.101-b13]
[2019-01-03T16:58:56,939][INFO ][o.e.n.Node ] [gJtAdxS] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/var/folders/k7/qtvt75w91rdfm4s1rc4z39_r0000gn/T/elasticsearch.XIkk2Hme, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/usr/local/Cellar/elasticsearch/6.5.4/libexec, -Des.path.conf=/usr/local/etc/elasticsearch, -Des.distribution.flavor=oss, -Des.distribution.type=tar]
[2019-01-03T16:58:58,316][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [aggs-matrix-stats]
[2019-01-03T16:58:58,316][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [analysis-common]
[2019-01-03T16:58:58,317][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [ingest-common]
[2019-01-03T16:58:58,317][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [lang-expression]
[2019-01-03T16:58:58,317][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [lang-mustache]
[2019-01-03T16:58:58,317][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [lang-painless]
[2019-01-03T16:58:58,317][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [mapper-extras]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [parent-join]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [percolator]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [rank-eval]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [reindex]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [repository-url]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [transport-netty4]
[2019-01-03T16:58:58,318][INFO ][o.e.p.PluginsService ] [gJtAdxS] loaded module [tribe]
[2019-01-03T16:58:58,319][INFO ][o.e.p.PluginsService ] [gJtAdxS] no plugins loaded
[2019-01-03T16:59:02,603][INFO ][o.e.d.DiscoveryModule ] [gJtAdxS] using discovery type [zen] and host providers [settings]
[2019-01-03T16:59:03,138][INFO ][o.e.n.Node ] [gJtAdxS] initialized
[2019-01-03T16:59:03,139][INFO ][o.e.n.Node ] [gJtAdxS] starting ...
[2019-01-03T16:59:03,386][INFO ][o.e.t.TransportService ] [gJtAdxS] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2019-01-03T16:59:06,602][INFO ][o.e.c.s.MasterService ] [gJtAdxS] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {gJtAdxS}{gJtAdxScQfqd4c5vYkSZlA}{C98Eq5okSkmbW4nwhNWFjw}{127.0.0.1}{127.0.0.1:9300}
[2019-01-03T16:59:06,611][INFO ][o.e.c.s.ClusterApplierService] [gJtAdxS] new_master {gJtAdxS}{gJtAdxScQfqd4c5vYkSZlA}{C98Eq5okSkmbW4nwhNWFjw}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {gJtAdxS}{gJtAdxScQfqd4c5vYkSZlA}{C98Eq5okSkmbW4nwhNWFjw}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2019-01-03T16:59:06,648][INFO ][o.e.g.GatewayService ] [gJtAdxS] recovered [0] indices into cluster_state
[2019-01-03T16:59:06,649][INFO ][o.e.h.n.Netty4HttpServerTransport] [gJtAdxS] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2019-01-03T16:59:06,650][INFO ][o.e.n.Node ] [gJtAdxS] started
默认启动端口9200 本地 http://localhost:9200/
{
"name" : "gJtAdxS",
"cluster_name" : "elasticsearch_helei",
"cluster_uuid" : "7Z9C-eHuSIWL06cNHyA6eA",
"version" : {
"number" : "6.5.4",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "d2ef93d",
"build_date" : "2018-12-17T21:17:40.758843Z",
"build_snapshot" : false,
"lucene_version" : "7.5.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
版权声明:本文为hunandexingkong原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。