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"]

Elasticsearch安装与配置
本文详细介绍Elasticsearch的官方网站及本地启动方法,包括eshead插件的图形化界面安装步骤,通过git clone和node.js环境搭建。同时,解决跨域问题并提供分布式安装配置示例,涉及elasticsearch.yml文件修改,如cors设置、集群名称、节点名称等关键参数。
1689

被折叠的 条评论
为什么被折叠?



