Elasticsearch 6.x 的安装和使用

1.安装Elasticsearch

  下载地址:https://www.elastic.co/downloads/elasticsearch

2.启动Elasticsearch

  双击bin下的elasticsearch.bat文件,启动(安装版双击elasticsearch.exe)

  浏览器访问:http://localhost:9200/?pretty 看是否启动成功

  

3.操作与使用

 a.查看集群健康状态:http://localhost:9200/_cat/health?v

  

  b.查看节点:http://localhost:9200/_cat/nodes?v

  

  c.查看指数:http://localhost:9200/_cat/indices?v

  

 d.创建索引:http://localhost:9200/_cat/indices?v

  1.安装Kibana,用来搜索、查看交互存储在Elasticsearch索引中的数据(创建节点,执行put命令)

    i.官方地址:https://www.elastic.co/cn/products/kibana

    ii.到kibana安装目录的config下,编辑kibana.yml配置文件,添加如下配置:

#配置本机ip
server.host: "127.0.0.1"
#配置es集群url
elasticsearch.hosts: "http://127.0.0.1:9200"

    iii.启动kibana:进入bin目录双击kibana.bat,访问http://127.0.0.1:5601,看到如下界面:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值