elasticsearch-head 笔记

2018-08-23  本文已影响0人  执行合一

一、安装

        yum install git npm # npm在epel源中

        git clone https://github.com/mobz/elasticsearch-head.git    # 安装过程需要连接互联网

        cd elasticsearch-head          # git clone后会自动生成的一个目录

        npm install

         npm run start

二、测试

        使用 http://xx.xx.xx.xx:9200 在浏览器访问,如果能打开说明安装正常

三、权限设定

        查询集群健康信息,那么需要在elasticsearch配置文件中授权

vim /etc/elasticsearch/elasticsearch.yml

http.cors.enabled: true         # elasticsearch中启用CORS

http.cors.allow-origin: "*"      # 允许访问的IP地址段,* 为所有IP都可以访问

上一篇 下一篇

猜你喜欢

热点阅读