zoukankan      html  css  js  c++  java
  • elasticsearch 常用命令

    4 [root@localhost:bin]#curl -XGEt http://10.0.2.15:9200/_cluster/health

    5 关闭整个集群

    6 [root@localhost:bin]#curl -XPOST http://10.0.2.15:9200/_cluster/nodes/_shutdown?pretty

    7 关闭单个节点

    8 [root@localhost: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

  • 相关阅读:
    mac 下webstorm调节字体大小
    js等于符号的详解
    js运算符相关要点
    js字符串相关要点
    js变量的相关要点
    JS中的let变量
    测试浏览器是否支持JavaScript脚本
    document.write的时机
    Valid Parentheses
    Remove Nth Node From End of List
  • 原文地址:https://www.cnblogs.com/shudai/p/5538586.html
Copyright © 2011-2022 走看看