開機後須要啓動的內容:html
參考:node
安裝nodejsgit
http://www.javashuo.com/article/p-mpdcimfc-hw.htmlgithub
安裝elasticsearch 及headexpress
https://www.cnblogs.com/linsu/p/7837422.htmlnpm
https://www.cnblogs.com/lianliang/p/7953754.html瀏覽器
最新版本cors
https://nodejs.org/en/download/elasticsearch
歷史版本:grunt
https://nodejs.org/zh-cn/download/releases/
https://www.elastic.co/cn/downloads/elasticsearch
https://codeload.github.com/mobz/elasticsearch-head/zip/master
http://www.javashuo.com/article/p-mpdcimfc-hw.html
在鍵盤按下【win+R】鍵,輸入cmd,而後回車,打開cmd窗口 以管理員身份運行
安裝完後的目錄以下圖所示:
建立完兩個空文件夾(名字分別是: node_global , node_cache)以後,
打開cmd命令窗口,輸入
npm config set prefix "D:\develop\nodejs\software\node_global"
npm config set cache "D:\develop\nodejs\software\node_cache"
設置環境變量,關閉cmd窗口,「個人電腦」-右鍵-「屬性」-「高級系統設置」-「高級」-「環境變量」
新建【NODE_PATH】,輸: D:\develop\nodejs\software\node_modules
將【用戶變量】下的【Path】修改成:D:\develop\nodejs\software\node_global
npm install express -g # -g是全局安裝的意思
參考:
https://www.cnblogs.com/linsu/p/7837422.html
https://www.cnblogs.com/lianliang/p/7953754.html
下載:https://www.elastic.co/cn/downloads/elasticsearch
(1) 解壓複製一份到須要路徑下
(2)啓動服務
cmd 切換到elasticsearch bin下面 運行 elasticsearch
查看es信息:
參考:
https://www.cnblogs.com/lianliang/p/7953754.html
個人目錄結構以下:
D:\develop\elasticsearch\es_head\elasticsearch-head-master
npm install grunt
從新執行 npm install grunt
執行下面6條:
npm install grunt-contrib-clean --registry=https://registry.npm.taobao.org
npm install grunt-contrib-concat --registry=https://registry.npm.taobao.org
npm install grunt-contrib-watch --registry=https://registry.npm.taobao.org
npm install grunt-contrib-connect --registry=https://registry.npm.taobao.org
npm install grunt-contrib-copy --registry=https://registry.npm.taobao.org
npm install grunt-contrib-jasmine --registry=https://registry.npm.taobao.org
2.4.3 修改對應的配置文件
(1)elsaticsearch的配置文件
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
(2) 修改elasticsearch-head-master插件的配置文件
hostname: '*',
1)啓動ElasticSearch,直接執行elasticsearch.bat
2)啓動elsaticsearch-head插件,cmd進入到elasticsearch-head-master目錄,執行命令:grunt server
出現的問題: 緣由是沒安裝grunt
安裝grunt 並測試
以管理員身份運行 以下命令
npm install -g grunt-cli
grunt -version
重啓head客戶端
下載插件 (附件中) 解壓到合適的位置
百度雲:
連接:https://pan.baidu.com/s/1-aTI6KXzAmd9H6WB0EfSOQ 提取碼:iox7