window下部署ELK(6.2.2系列)
生活随笔
收集整理的這篇文章主要介紹了
window下部署ELK(6.2.2系列)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
介紹
ELK = ElasticSearch + Logstash + Kibana
在ELK棧里依賴關(guān)系
所以我們以下按照依賴順序安裝相應的服務: ElasticSearch -> Logstash -> Kibana
elastic官網(wǎng)
安裝目錄結(jié)構(gòu)
X:\ELK X:\Elasticsearch X:\Kibana X:\Logstash本教程的X以下是用D盤代替ElasticSearch
下載 elasticsearch-6.2.2
# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.2.zip # 自行下載 wget是linux命令 解壓到D:\ElasticSearch\elasticsearch-6.2.2bin目錄結(jié)構(gòu)
安裝
cd D:\ElasticSearch\elasticsearch-6.2.2\bin elasticsearch-service.bat install # 提示:The service 'elasticsearch-service-x64' has been installed.表示安裝成功# install:安裝服務|remove:刪除服務|start:啟動|stop:暫停|manager:打開服務管理器 elasticsearch-service.bat install|remove|start|stop|managerweb查看服務
http://localhost:9200head插件 (不是必須,可跳過,kibana里也有個dev_tool可調(diào)試查詢)
head插件是一個es集群的web前端工具,我們可以es查詢,查看es集群狀態(tài)等
# es 6.2.2版本es自帶 需要獨立安裝 安裝nodejs 下載https://github.com/coreybutler/nvm-windows 安裝 nvm install v8.9.4 # npm加速 全局安裝cnpm 指定來源淘寶鏡像 npm install -g cnpm --registry=https://registry.npm.taobao.org git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head cnpm install npm run start open http://localhost:9100/#其他版本es可以按以下命令安裝 elasticsearch-plugin.bat install mobz/elasticsearch-head# 修改elasticksearch配置 (config/elasticsearch.yml) 添加一下配置 http.cors.enabled: true http.cors.allow-origin: "*"elasticsearch-service.bat stop elasticsearch-service.bat startopen http://localhost:9100/
Logstash
下載 logstash-6.2.2
# wget https://artifacts.elastic.co/downloads/logstash/logstash-6.2.2.zip 解壓到D:\Logstash\logstash-6.2.2無需安裝,直接使用
# logstash -e '配置文件內(nèi)容' # logstash -f 配置文件測試demo
# conf/test.conf input {file {path => "D:/elk/Elasticsearch/elasticsearch-6.2.2/logs/*.*"start_position => "beginning"} }output {elasticsearch {hosts => ["localhost:9200"]} }測試
logstash -f conf/test.conf
Kibana
下載 kibana-6.2.2
# wget https://artifacts.elastic.co/downloads/kibana/kibana-6.2.2-windows-x86_64.zip 解壓到D:\Logstash\kibana-6.2.2運行
cd bin kibanna.batopen http://localhost:5601配置開機運行
elasticsearch 已經(jīng)是注冊成服務, 我們還需要把logstash和kibana注冊成服務
下載工具nssm
# https://nssm.cc/download wget https://nssm.cc/release/nssm-2.24.zip vim start.bat logstash -f conf/test.conf注冊配置
總結(jié)
以上是生活随笔為你收集整理的window下部署ELK(6.2.2系列)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 植物大战僵尸2鲨鱼boss怎么打 植物高
- 下一篇: 多多视频在线观看免费最新