Mac下elk、ElasticSearch、logstash、kibana安装


Mac环境:OS X 10.15.5

安装ELK

elasticsearch、logstash、kibana在mac下的安装与启动

安装java8

网上教程都推荐以下命令,但是错误的❌

brew cask install homebrew/cask-versions/java8

报错:Cask ‘java8’ is unavailable: ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/java8.rb’ does not exist.

mac用homebrew安装java8的时候报错,homebrew默认不支持java8了。

解决方案:

brew cask install homebrew/cask-versions/adoptopenjdk8

安装es(elasticsearch)

brew install elasticsearch

运行es

brew services start elasticsearch

查看安装信息执行 brew info elasticsearch

curl请求地址http://localhost:9200或者浏览器请求地址看一下效果

curl http://localhost:9200

在这里插入图片描述

{
  "name" : "wxiangqiandeMacBook-Pro.local",
  "cluster_name" : "elasticsearch_brew",
  "cluster_uuid" : "K1g6JY_6RYaqxNTa_niphA",
  "version" : {
    "number" : "7.8.1-SNAPSHOT",
    "build_flavor" : "oss",
    "build_type" : "tar",
    "build_hash" : "unknown",
    "build_date" : "2020-07-31T16:57:12.889003Z",
    "build_snapshot" : true,
    "lucene_version" : "8.5.1",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

安装logstash

brew install logstash

安装Kibana

Kibana是ES的一个配套工具,可以让用户在网页中与ES进行交互

brew install kibana

启动Kibana

brew services start kibana

本地浏览器访问

http://localhost:5601

简单的elk安装就到这里了!


文章作者: WXiangQian
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 WXiangQian !
 上一篇
Mac下golang环境安装以及新手入门 Mac下golang环境安装以及新手入门
Mac下golang环境安装以及新手入门 go 菜鸟教程 环境安装mac 环境 首先安装brew brew install go 执行完命令后,如下显示: Updating Homebrew... ==> Auto-upda
2020-11-06
下一篇 
laravel join 子查询 joinSub的源码剖析 laravel join 子查询 joinSub的源码剖析
想实现join中使用子查询的需求,于是根据文档以及源码寻找方法 想要实现的原生sqlSELECT * FROM `a` LEFT JOIN ( SELECT * FROM `b` WHERE `type` = 2 ) A
2020-09-24
  目录