目录
一、es安装
1.2 下载后解压
tar xf elasticsearch-7.11.1-darwin-x86_64.tar.gz -C /Applications
1.2 启动es
bin/elasticsearch
1.3 浏览器查看
二、es插件安装
2.1 查看已经安装的插件
bin/elasticsearch-plugin list
2.2 安装插件
bin/elasticsearch-plugin install analysis-icu
2.3 在浏览器查看插件
http://localhost:9200/_cat/plugins
三、es集群安装设置
clusterName设置为myes,总共安装4个节点,分别为node0、node1、node2、node3。
3.1 设置
bin/elasticsearch -E node.name=node0 -E cluster.name=myes -E path.data=node0_data -d
bin/elasticsearch -E node.name=node1 -E cluster.name=myes -E path.data=node1_data -d
bin/elasticsearch -E node.name=node2 -E cluster.name=myes -E path.data=node2_data -d
bin/elasticsearch -E node.name=node3 -E cluster.name=myes -E path.data=node3_data -d