ELK6.2.3日誌分析工具搭Elasticsearch-head安裝(二)
阿新 • • 發佈:2018-11-08
安裝Elasticsearch-head
1.切換目錄
cd /usr/local/elk/elasticsearch-6.2.3
2.下載
wget https://codeload.github.com/mobz/elasticsearch-head/zip/master
3.更改名稱
mv master master.zip
4.解壓
unzip master.zip
6.賦予許可權
chown -R elasticsearch.elasticsearch elasticsearch-head-master
7.軟連線
ln -s /usr/bin/nodejs /usr/bin/node
8.修改elasticsearch.yml配置檔案
#在尾部追加
http.cors.enabled: true
http.cors.allow-origin: "*"
action.auto_create_index: .security,.security-6,.monitoring*,.watches,.triggered_watches,.watcher-history*,app-a-*,app-b-*,.ml*
9.安裝npmapt-get install npm
apt-get install npm
10.切換目錄
11.執行命令安裝cd /usr/local/elk/elasticsearch-6.2.3/elasticsearch-head-master
npm install -g grunt-cli
#安裝完切換使用者繼續安裝
su elasticsearch
npm install
出現錯誤 在次執行命令
12.重啟elasticsearch,在啟動head外掛
[email protected]:/usr/local/elk/elasticsearch-6.2.3/elasticsearch-head-master# grunt server Running "connect:server" (connect) task Waiting forever... Started connect web server on http://localhost:9100