es官网https://www.elastic.co/
访问http://localhost:9200/
然后这就说明已经启动了
es head 插件的安装。图形化
git clone https://github.com/mobz/elasticsearch-head.git
然后安装node.js
官网 https://nodejs.org/en/
需要大于V6.0
访问http://localhost:9100/
然后会有跨域问题
http.cors.enabled: true
http.cors.allow-origin: “*”
在 elasticsearch.yml 中也 添加了
http.cors.enabled: true
http.cors.allow-origin: “*”
npm run start 运行后;
下面说分布式的安装
在 elasticsearch.yml 中也 添加了
http.cors.enabled: true
http.cors.allow-origin: "*"
cluster.name: xiaohu
node.name: master
node.master: true
network.host: 127.0.0.1
slave
cluster.name: xiaohu
node.name: slave1
network.host: 127.0.0.1
http.port: 8200
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]