zoukankan      html  css  js  c++  java
  • Elasticsearch5.5 部署Head插件

    Elasticsearch5.5 部署Head插件

    1、git下载软件包

    yum -y install git
    git clone git://github.com/mobz/elasticsearch-head.git
    

    备注:安装包不要放到elasticsearch/plugins目录下

    2、node安装

    http://www.cnblogs.com/shhnwangjian/p/6559732.html

    3、安装grunt

    npm install -g grunt-cli
    

    4、修改Elasticsearch配置文件

    /etc/elasticsearch/elasticsearch.yml

    http.cors.enabled: true
    http.cors.allow-origin: "*"
    

    5、修改Gruntfile.js

    elasticsearch-head/Gruntfile.js

                    connect: {
                            server: {
                                    options: {
                                            hostname: '0.0.0.0',
                                            port: 9100,
                                            base: '.',
                                            keepalive: true
                                    }
                            }
                    }
    

    增加hostname属性,设置为0.0.0.0

    6、修改app.js

    elasticsearch-head/_site/app.js

    this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://10.10.83.163:9200";
    

    把localhost修改成ES的服务器地址,如上面10.10.83.163

    7、运行head

    进入elasticsearch-head 目录

    npm install 

    启动

    grunt server

    页面访问:http://10.10.83.163:9100

    8、后台启动elasticsearch-head

    nohup grunt server &
    

    如果想关闭head插件,查找进程命令:

    ps aux|grep head

    x-pack安全模块(security机制)

    1、修改Elasticsearch配置文件

    /etc/elasticsearch/elasticsearch.yml

    http.cors.allow-headers: Authorization
    

    2、页面访问

    http://10.10.83.163:9100/?auth_user=elastic&auth_password=changeme

  • 相关阅读:
    Gitlab forbidden
    oracle查询directory_path
    oracle_backup
    oracle
    客户端读取图片文件
    Sql游标的使用
    Sql解锁 数据库死锁检测
    css3d总结
    Redis在Linux系统下的安装和启动
    Linux系统基本操作命令
  • 原文地址:https://www.cnblogs.com/shhnwangjian/p/7155132.html
Copyright © 2011-2022 走看看