1. Install Elasticsearch
to start: After entering elasticsearch on the Mac terminal
, open Chrome and enter http://localhost:9200/
to display the connection information.
Close: ctr + c
Second, install Head
git installation
Start : enter the terminal into the elasticsearch-head folder npm run start
Close: ctr + c
After starting, open Chrome and enter http://localhost:9100/
The cluster information will be displayed if the cluster health value It shows that it is not connected, you can add the following information in elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
Start the head plugin on the
Mac terminal and enter brew info elasticsearch
to find the elasticsearch installation location, find the elasticsearch_head folder, and enter npm run start
Modify the configuration file in elasticsearch.yml
10.12.34.23
10.101.35.41
10.12.34.23", "10.101.35.41", "10.101.35.42"
LInux start
elasticsearch ./bin/elasticsearch
Find the elastic process in Linux
ps -ef | grep elastic
kill the process
kill -9 3264658
LInux install elasticsearch script
#! /bin/bash
curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.3.3/elasticsearch-2.3.3.zip
unzip elasticsearch-2.3.3.zip
./bin/elasticsearch
Reference blog:
http://sailfishc.me/2017/03/25/2017/03/es_head_install/
https://www.bysocket.com/?p=1744
https://www.bysocket.com/?p= 1744
https://blog.csdn.net/napoay/article/details/52202877
Introduction to elasticsearchhttps ://blog.csdn.net/laoyang360/article/details/52244917
elasticsearch on mac is placed under the download folder