elasticsearch-head 安裝部署

1、下載https://github.com/mobz/elasticsearch-head

2、解壓unzip elasticsearch-head-master.zip

3、進入elasticsearch-head-master目錄下載依賴

3、執行命令(使用npm命令前需要安裝node.js

      3.1、npm install -g cnpm --registry=https://registry.npm.taobao.org

      3.2、cnpm install

elasticsearch-head-master目錄下是否生成 node_modules目錄則安裝成功

4、修改elasticsearch/config/elasticsearch.yml添加一下配置,避免跨域問題

       http.cors.enabled: true

       http.cors.allow-origin: '*'

5、啓動es,再啓動elasticsearch-head

     npm run start &

6、訪問http://ip:9100/

7、啓動端口衝突需修改端口: /usr/local/elasticsearch-head/Gruntfile.js

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章