elasticsearch之概述与系统安装【Windows与Mac】

概述

下载安装包

版本:6.2.4

链接: https://pan.baidu.com/s/1rOMsGA04BkiOKqJVCjqXoA  密码: lqva

版本:7.13.3

链接: https://pan.baidu.com/s/1KaEl6hjzQBmecukduuNTYg  密码: m3h6

官方下载地址

https://www.elastic.co/cn/downloads/

在这里插入图片描述

windows系统安装

elasticsearch目录

在这里插入图片描述

elasticsearch启动

在这里插入图片描述

启动成功

在这里插入图片描述

mac安装

localhost:elasticsearch-6.2.4 gaoxinfu$ pwd
/Users/gaoxinfu/using/elasticsearch-6.2.4
localhost:elasticsearch-6.2.4 gaoxinfu$ cd bin/
localhost:bin gaoxinfu$ ls -la
total 512
drwxr-xr-x@ 15 gaoxinfu  staff     480  4 12  2018 .
drwxr-xr-x@ 11 gaoxinfu  staff     352  4 12  2018 ..
-rwxr-xr-x@  1 gaoxinfu  staff    1557  4 12  2018 elasticsearch
-rwxr-xr-x@  1 gaoxinfu  staff    2238  4 12  2018 elasticsearch-env
-rw-r--r--@  1 gaoxinfu  staff    1713  4 12  2018 elasticsearch-env.bat
-rwxr-xr-x@  1 gaoxinfu  staff     239  4 12  2018 elasticsearch-keystore
-rw-r--r--@  1 gaoxinfu  staff     329  4 12  2018 elasticsearch-keystore.bat
-rwxr-xr-x@  1 gaoxinfu  staff     229  4 12  2018 elasticsearch-plugin
-rw-r--r--@  1 gaoxinfu  staff     319  4 12  2018 elasticsearch-plugin.bat
-rw-r--r--@  1 gaoxinfu  staff  104448  4 12  2018 elasticsearch-service-mgr.exe
-rw-r--r--@  1 gaoxinfu  staff  103936  4 12  2018 elasticsearch-service-x64.exe
-rw-r--r--@  1 gaoxinfu  staff    8018  4 12  2018 elasticsearch-service.bat
-rwxr-xr-x@  1 gaoxinfu  staff     242  4 12  2018 elasticsearch-translog
-rw-r--r--@  1 gaoxinfu  staff     332  4 12  2018 elasticsearch-translog.bat
-rw-r--r--@  1 gaoxinfu  staff    1431  4 12  2018 elasticsearch.bat
localhost:bin gaoxinfu$ ./elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2021-07-10T08:13:37,420][INFO ][o.e.n.Node               ] [] initializing ...
[2021-07-10T08:13:37,696][INFO ][o.e.e.NodeEnvironment    ] [nuySWTD] using [1] data paths, mounts [[/System/Volumes/Data (/dev/disk1s1)]], net usable_space [84.4gb], net total_space [233.4gb], types [apfs]
[2021-07-10T08:13:37,697][INFO ][o.e.e.NodeEnvironment    ] [nuySWTD] heap size [990.7mb], compressed ordinary object pointers [true]
[2021-07-10T08:13:37,701][INFO ][o.e.n.Node               ] node name [nuySWTD] derived from node ID [nuySWTDVRgGQivqwkAK1pA]; set [node.name] to override
[2021-07-10T08:13:37,701][INFO ][o.e.n.Node               ] version[6.2.4], pid[4581], build[ccec39f/2018-04-12T20:37:28.497551Z], OS[Mac OS X/10.16/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/11.0.9/11.0.9+7-LTS]
[2021-07-10T08:13:37,702][INFO ][o.e.n.Node               ] 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/l7/t6tn885s3tx1s1yfjlcs3wx40000gn/T/elasticsearch.B04Ow2Kw, -XX:+HeapDumpOnOutOfMemoryError, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Des.path.home=/Users/gaoxinfu/using/elasticsearch-6.2.4, -Des.path.conf=/Users/gaoxinfu/using/elasticsearch-6.2.4/config]
[2021-07-10T08:13:38,711][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [aggs-matrix-stats]
[2021-07-10T08:13:38,712][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [analysis-common]
[2021-07-10T08:13:38,712][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [ingest-common]
[2021-07-10T08:13:38,713][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [lang-expression]
[2021-07-10T08:13:38,713][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [lang-mustache]
[2021-07-10T08:13:38,713][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [lang-painless]
[2021-07-10T08:13:38,713][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [mapper-extras]
[2021-07-10T08:13:38,714][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [parent-join]
[2021-07-10T08:13:38,714][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [percolator]
[2021-07-10T08:13:38,715][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [rank-eval]
[2021-07-10T08:13:38,715][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [reindex]
[2021-07-10T08:13:38,715][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [repository-url]
[2021-07-10T08:13:38,716][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [transport-netty4]
[2021-07-10T08:13:38,716][INFO ][o.e.p.PluginsService     ] [nuySWTD] loaded module [tribe]
[2021-07-10T08:13:38,716][INFO ][o.e.p.PluginsService     ] [nuySWTD] no plugins loaded
[2021-07-10T08:13:41,298][INFO ][o.e.d.DiscoveryModule    ] [nuySWTD] using discovery type [zen]
[2021-07-10T08:13:41,853][INFO ][o.e.n.Node               ] initialized
[2021-07-10T08:13:41,854][INFO ][o.e.n.Node               ] [nuySWTD] starting ...
[2021-07-10T08:13:42,105][INFO ][o.e.t.TransportService   ] [nuySWTD] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2021-07-10T08:13:45,180][INFO ][o.e.c.s.MasterService    ] [nuySWTD] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {nuySWTD}{nuySWTDVRgGQivqwkAK1pA}{Ro4UwTWGSFyY50xrAUX6_w}{127.0.0.1}{127.0.0.1:9300}
[2021-07-10T08:13:45,185][INFO ][o.e.c.s.ClusterApplierService] [nuySWTD] new_master {nuySWTD}{nuySWTDVRgGQivqwkAK1pA}{Ro4UwTWGSFyY50xrAUX6_w}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {nuySWTD}{nuySWTDVRgGQivqwkAK1pA}{Ro4UwTWGSFyY50xrAUX6_w}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
[2021-07-10T08:13:45,213][INFO ][o.e.h.n.Netty4HttpServerTransport] [nuySWTD] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2021-07-10T08:13:45,213][INFO ][o.e.n.Node               ] [nuySWTD] started
[2021-07-10T08:13:45,228][INFO ][o.e.g.GatewayService     ] [nuySWTD] recovered [0] indices into cluster_state

在这里插入图片描述

启动成功验证

http://localhost:9200/
在这里插入图片描述

{
  "name" : "9iEfLoa",   //node名称
  "cluster_name" : "elasticsearch", //cluster_name: 集群名称(默认的集群名称就是elasticsearch) 修改集群名称:elasticsearch.yml
  "cluster_uuid" : "uwuK0gQhSVmFpaoiFVhH5g",
  "version" : {
    "number" : "6.5.4", //version.number: 5.2.0,es版本号
    "build_flavor" : "default",
    "build_type" : "zip",
    "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"
}
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东山富哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值