从品牌网站建设到网络营销策划,从策略到执行的一站式服务
`curl '10.95.32.34:9200/_cat/indices?v'`
创建索引
成都创新互联公司专注于定日企业网站建设,成都响应式网站建设公司,成都做商城网站。定日网站建设公司,为定日等地区提供建站服务。全流程按需定制设计,专业设计,全程项目跟踪,成都创新互联公司专业和态度为您提供的服务
curl -XPUT '10.95.32.34:9200/customer-test?pretty'
插入数据:
curl -XPUT '10.95.32.34:9200/customer-test/employee/2?pretty' -d '{"name": "John smart"}'
curl -XPUT '10.95.32.34:9200/customer-test/employee/1' -d '{"first_name":"John","last_name":"Smith","age":25,"about":"Ilovetogorockclimbing","interests":["sports","music"]}'
查看数据:
curl -XPOST '10.95.32.34:9200/customer-test/_search?pretty'
查看健康:
[root@server02 ~]# curl -sXGET 'http://localhost:9200/_cluster/health?pretty'
{
"cluster_name" : "es",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 9,
"number_of_data_nodes" : 9,
"active_primary_shards" : 129,
"active_shards" : 258,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
找到未分片的索引
curl -s "http://localhost:9200/_cat/shards" | grep UNASSIGNED
删除索引:
curl -XDELETE 'http://localhost:9200/noah_flow_file_20190625'
curl -s 'http://localhost:9200/_cat/shards' | grep UNASSIGNED | awk '{print $1}' | sort | uniq
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图