Win10 install elasticsearch.msi

1、Download and Install Java8

Elasticsearch requires Java 8 or later. Use the official Oracle distribution or an open-source distribution such as OpenJDK.

my jdk-8u181-windows-x64.exe

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

2、Download the .msi package

Download the .msi package for Elasticsearch v6.4.0 from 

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.msi

3、Install using the graphical user interface (GUI)

Double-click the downloaded .msi package to launch a GUI wizard that will guide you through the installation process. 

Within the first screen, select the directory for the installation. In addition, select directories for where data, logs and configuration will reside or roll with the default locations:

Then select whether to install as a service or start Elasticsearch manually as needed. When installing as a service, you can also decide which account to run the service under as well as whether the service should be started after installation and when Windows is started or restarted:

Common configuration settings are exposed within the Configuration section, allowing the cluster name, node name and roles to be set, in addition to memory and network settings:

A list of common plugins that can be downloaded and installed as part of the installation, with the option to configure a HTTPS proxy through which to download:

Upon choosing to install X-Pack plugin, an additional step allows a choice of the type of X-Pack license to install, in addition to X-Pack security configuration and built-in user configuration:

X-Pack includes a choice of a Trial or Basic license for 30 days. After that, you can obtain one of the available subscriptions or disable Security. The Basic license is free and includes the Monitoring extension.

After clicking the install button, the installer will begin installation:

and will indicate when it has been successfully installed:

Checking that Elasticsearch is runningedit

You can test that your Elasticsearch node is running by sending an HTTP request to port 9200 on localhost:

http://localhost:9200/

{
  "name" : "DESKTOP-4IRKRFU",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Ue6n3i3dSVSEYzK0df278Q",
  "version" : {
    "number" : "6.4.0",
    "build_flavor" : "unknown",
    "build_type" : "unknown",
    "build_hash" : "595516e",
    "build_date" : "2018-08-17T23:18:47.308994Z",
    "build_snapshot" : false,
    "lucene_version" : "7.4.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

猜你喜欢

转载自blog.csdn.net/dyxcome/article/details/82026502