Tutorial on setting up ElasticSearch in Window environment,
I. Prepare tools
1. JDK 1.8 and later development kits (no need to build them)
2. elasticsearch-6.0.0
3. elasticsearch-head-master
4. kibana-6.0.0
5. elasticsearch-analysis-ik-6.0.0 (temporarily unavailable)
2. Install Elasticsearch-6.0.0
1. after downloading the elasticsearch-6.0.0, run elasticsearch in the Bin directory. bat file, enable the elasticsearch service, and access https: // localhost: 9200 /. the following subtitles are displayed, indicating that the environment is set up correctly and elasticsearch can run successfully.
{ "name" : "RBtD-6e", "cluster_name" : "elasticsearch", "cluster_uuid" : "LTDdW2_hQBircM1tgQCwyg", "version" : { "number" : "6.0.0", "build_hash" : "8f0685b", "build_date" : "2017-11-10T18:41:22.859Z", "build_snapshot" : false, "lucene_version" : "7.0.1", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search"}
2. To facilitate cross-origin access of clusters or other plug-ins, modify the elasticsearch. yml file in the config directory and add
http.cors.enabled: truehttp.cors.allow-origin: "*"
3. Install elasticsearch-head-master and manage ElasticSearch on the webpage
After the hosts file is created, https: // localhost: 9200/is automatically connected.
4. Installation of kibana-6.0.0 for index data visualization and Analysis
1. After downloading the kibana-6.0.0, you cannot directly use it. You also need to modify the configuration file to enable the Kibana service. Modify the kibana. yml In the config directory to modify the color font in the figure below.
2. After modifying the configuration file, you can directly start the Kibana service and run the kibana. bat file as an administrator. Access https: // 127.0.0.1: 5601
5. Install the elasticsearch-analysis-ik-6.0.0 for indexing word segmentation (not installed)