windows 7 下elasticsearch5.0 安裝head 插件
elasticsearch5.0 和2有了很大的變化,以前的很多插件都有了變化比如 bigdesk head,以下是安裝head的方法 參考了http://blog.csdn.net/qq942477618/article/details/53637817
過程 確保能正常運行
1.安裝 nodejs
nodejs官網下載地址https://nodejs.org/dist/
2. 安裝grunt
npm install -g grunt --registry=https://registry.npm.taobao.org
3. 安裝 phantomjs
下載后 同樣設置環境變量就行
4. elasticsearch配置允許跨域訪問 修改elasticsearch配置文件elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
5. 先啟動elasticsearch5
6.下載head的源碼 到任意位置
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
進入node_modules/grunt/bin/ 執行grunt server