2017年12月18日
摘要: curl 'http://localhost:9200/_cat/indices?v' 简介: Curl工具是一种可以在命令行访问url的工具,支持get和post请求方式。-X指定http请求的方法,-d指定要传输的数据。 创建索引: Put创建 curl -XPUThttp://localhos 阅读全文
posted @ 2017-12-18 23:59 tigerloveapple 阅读(27078) 评论(0) 推荐(0) 编辑
摘要: elasticsearch rest api遵循的格式为: curl -X<REST Verb> <Node>:<Port>/<Index>/<Type>/<ID> 1、检查es版本信息 curl IP:9200 2、查看集群是否健康 http://IP:9200/_cat/health?v cur 阅读全文
posted @ 2017-12-18 23:56 tigerloveapple 阅读(238) 评论(0) 推荐(0) 编辑