ElasticSearch install --- Windows environment

A precondition

Already installed jdk 1.8

Second, download

Third, the installation

  1. After you download and unzip

    1.1 bin:. Script file, including the ES & start to install the plug etc.
    * config: elasticsearch.yml (ES configuration file), jvm.options (JVM configuration file), the log configuration files, etc.
    * JDK: built-in the JDK
    * lib: library
    * logs: log files
    * modules: ES all modules, including X-pack, etc.
    * plugins: ES already installed plug-ins. The default is no plug-in
    * data: ES start time, there will be the directory used to store document data. The directory can be set

  2. Es register to use the command-line tools for service execution command "elasticsearch-service.bat install" in the bin directory of the prompts may know, an exception occurs registered for the service of process, but ultimately the service is successfully registered, because the tips "The service 'elasticsearch-service-x64' has been installed.", the service has been successfully installed. We went inside to see if the service can indeed see the service. However, this service is currently deactivated state. We set the service to start automatically, and then try to restart the service. Not surprisingly, starts will be reported this error, this error is because the abnormalities caused by the above, es7.3.0 depends on java11, but this machine is installed java 8. Due to the existing java8 not change, to solve this problem, needs to be installed in the machine java11, and add a ES_JAVA_HOME in the configuration environment, do not create a new PATH. Then es relevant documents will be amended as JAVA_HOME ES_JAVA_HOME.
    • Find elasticsearch-env file in the bin directory, 39-40 at the line. The JAVA_HOME into ES_JAVA_HOME
    • Find elasticsearch-env.bat file in the bin directory, change the JAVA_HOME ES_JAVA_HOME

        *这种方式没有尝试过,不知是否真的有效。 
  3. ES start using the command-line tool to execute the command "elasticsearch" under the bin directory. If nothing else will complain "X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch. yml "added the relevant configuration follow the prompts in the elasticsearch.yml config file will fix this error. May try to access "in your browser http://127.0.0.1:9200/" here, es it installed and up and running successfully. Chrom recommended the ElasticSearchHead plug without plug-ins install their own Head.

Guess you like

Origin www.cnblogs.com/Naylor/p/12197952.html