First, in a relatively simple way
- Download the ZIP installation package First: Https://www.elastic.co/downloads/elasticsearch.
- Unzip to the installation directory;
- Enter the installation directory, enter the bin directory, start cmd;
- Run Elasticsearch.bat. Error unsupported Major.minor version 52.0.
The reason is that I installed both jdk1.7 and jdk1.8. But the environment variable in my java_home set is jdk1.7, Elasticsearch 5.0.0 only support jdk1.8, so start the service error. Set the environment variable java_home to jdk1.8, and then re-transport Elasticsearch.bat
5. Enter Http://localhost:9200/in the browser. The JSON format data shows that the installation is complete;
Above this starting mode must open a CMD window, after starting the service, close the cmd window to shut down the service. There is another way to start with a command 1. After installation, open cmd, go to the installation directory bin directory, run Elasticsearch-service.bat, will prompt this command to run parameters:
which
Install: Installation Services
Remove: Remove service
Start: Start the service
STOP: Stop service
Manager: Service Management
2. Run Elasticsearch-service.bat Install
Error at this time: thread stack size not set; Configure via D:\Program files\elasticsearch-5.0.0\config\jvm.options or es_java_opts
The reason is that the thread stack size is not configured, open the D:\Program files\elasticsearch-5.0.0\config\jvm.options file, add a-xss1m, as follows
Re-run:
3. Run Elasticsearch-service.bat Start again
4. Enter Http://localhost:9200/in the browser
Describes the installation and startup success.
5. Next try to install the Elasticsearch-head plug-in, tried many methods did not succeed, later in Elasticsearch-head's GitHub (https://github.com/mobz/elasticsearch-head) found
The reason is that the 5.x version does not support this plugin.
Issues encountered with installing Elasticsearch 5.0.0 under Windows