elasticsearch 常用命令
Posted 树袋先生
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch 常用命令相关的知识,希望对你有一定的参考价值。
4 [[email protected]:bin]#curl -XGEt http://10.0.2.15:9200/_cluster/health
5 关闭整个集群
6 [[email protected]:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/_shutdown?pretty
7 关闭单个节点
8 [[email protected]:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/TbWXkW2dSpa_KWgDK3BeXg/_shutdown?pretty
9 获取节点标识符
10 curl http://192.168.33.10:9200/_cat/indices?v
11
12 github.com/elasticsearch/elasticsearh-servicewrapper 启动脚本
13
14 long2ip( rand(0, ip2long("255.255.255.255") ) ),
15
16 curl http://192.168.33.10:9200/_settings?pretty
17
18 curl -XGET http://localhost:9200/_cluster/health?pretty
19 {
20 "cluster_name" : "myescluster",
21 "status" : "red",
22 "timed_out" : false,
23 "number_of_nodes" : 20,
24 "number_of_data_nodes" : 16,
25 "active_primary_shards" : 2558,
26 "active_shards" : 5628,
27 "relocating_shards" : 0,
28 "initializing_shards" : 4,
29 "unassigned_shards" : 22
30 }••
31 http://pear.php.net/go-pear.phar
32
34 cat /proc/sys/net/netfilter/nf_conntrack_count
35 tail -f /proc/net/nf_conntrack
以上是关于elasticsearch 常用命令的主要内容,如果未能解决你的问题,请参考以下文章
Elastic:在腾讯云上部署 Elasticsearch 集群
Elastic:在腾讯云上部署 Elasticsearch 集群