步骤:
1.从 http://how2j.cn/frontdownload?bean.id=1694 下载6.22 版本
2.双击elasticsearch.bat启动ElasticsSearch
[2020-04-25T21:36:40,850][INFO ][o.e.n.Node ] [] initializing ... [2020-04-25T21:36:41,298][INFO ][o.e.e.NodeEnvironment ] [kOgW9DF] using [1] data paths, mounts [[(C:)]], net usable_space [278.4gb], net total_space [465.2gb], types [NTFS] [2020-04-25T21:36:41,298][INFO ][o.e.e.NodeEnvironment ] [kOgW9DF] heap size [990.7mb], compressed ordinary object pointers [true] [2020-04-25T21:36:41,302][INFO ][o.e.n.Node ] node name [kOgW9DF] derived from node ID [kOgW9DFySlOO4FmCge3iSQ]; set [node.name] to override [2020-04-25T21:36:41,302][INFO ][o.e.n.Node ] version[6.2.2], pid[12064], build[10b1edd/2018-02-16T19:01:30.685723Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_212/25.212-b10] [2020-04-25T21:36:41,306][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=C:\Users\ufo\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\Users\ufo\Downloads\elasticsearch-6.2.2, -Des.path.conf=C:\Users\ufo\Downloads\elasticsearch-6.2.2\config] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [aggs-matrix-stats] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [analysis-common] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [ingest-common] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [lang-expression] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [lang-mustache] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [lang-painless] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [mapper-extras] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [parent-join] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [percolator] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [rank-eval] [2020-04-25T21:36:44,586][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [reindex] [2020-04-25T21:36:44,590][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [repository-url] [2020-04-25T21:36:44,590][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [transport-netty4] [2020-04-25T21:36:44,590][INFO ][o.e.p.PluginsService ] [kOgW9DF] loaded module [tribe] [2020-04-25T21:36:44,590][INFO ][o.e.p.PluginsService ] [kOgW9DF] no plugins loaded [2020-04-25T21:36:48,599][INFO ][o.e.d.DiscoveryModule ] [kOgW9DF] using discovery type [zen] [2020-04-25T21:36:49,248][INFO ][o.e.n.Node ] initialized [2020-04-25T21:36:49,248][INFO ][o.e.n.Node ] [kOgW9DF] starting ... [2020-04-25T21:36:50,544][INFO ][o.e.t.TransportService ] [kOgW9DF] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300} [2020-04-25T21:36:53,648][INFO ][o.e.c.s.MasterService ] [kOgW9DF] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {kOgW9DF}{kOgW9DFySlOO4FmCge3iSQ}{IxuKneuXRJyPQGki-8E_ew}{127.0.0.1}{127.0.0.1:9300} [2020-04-25T21:36:53,664][INFO ][o.e.c.s.ClusterApplierService] [kOgW9DF] new_master {kOgW9DF}{kOgW9DFySlOO4FmCge3iSQ}{IxuKneuXRJyPQGki-8E_ew}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {kOgW9DF}{kOgW9DFySlOO4FmCge3iSQ}{IxuKneuXRJyPQGki-8E_ew}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]]) [2020-04-25T21:36:53,792][INFO ][o.e.g.GatewayService ] [kOgW9DF] recovered [0] indices into cluster_state [2020-04-25T21:36:54,004][INFO ][o.e.h.n.Netty4HttpServerTransport] [kOgW9DF] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200} [2020-04-25T21:36:54,004][INFO ][o.e.n.Node ] [kOgW9DF] started
3.在浏览器访问 http://127.0.0.1:9200/,看到下面文字
{ "name" : "kOgW9DF", "cluster_name" : "elasticsearch", "cluster_uuid" : "_oTEY1kVT8qcgokYH1JMTA", "version" : { "number" : "6.2.2", "build_hash" : "10b1edd", "build_date" : "2018-02-16T19:01:30.685723Z", "build_snapshot" : false, "lucene_version" : "7.2.1", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }
当然也可以从 https://www.elastic.co/cn/downloads/elasticsearch 下载最新或其它版本使用。
--2020年4月25日--