基础命令
centos7 关闭防火墙
systemctl stop firewalld.service
启动es
bin/elasticsearch
查看本机安装的插件
bin/elasticsearch-plugin list
安装分词插件analysis-icu
bin/elasticsearch-plugin install analysis-icu
查看plugins 版本
http://192.168.74.131:9200/_cat/plugins
启动不同的ES实例
bin/elasticsearch -E node.name=node0 -E cluster.name=geektime -E path.data=node0_data
bin/elasticsearch -E node.name=node1 -E cluster.name=geektime -E path.data=node1_data
bin/elasticsearch -E node.name=node2 -E cluster.name=geektime -E path.data=node2_data
bin/elasticsearch -E node.name=node3 -E cluster.name=geektime -E path.data=node3_data
查看集群
GET http://localhost:9200
查看nodes
GET _cat/nodes
GET _cluster/health
网友评论