ELK 单机安装

编程入门 行业动态 更新时间:2024-10-28 10:37:21

ELK <a href=https://www.elefans.com/category/jswz/34/1750147.html style=单机安装"/>

ELK 单机安装

一丶软件下载

elasticsearch:

kibana:

选择对应的版本的下载即可

二、es

安装es比较简单

rpm -ivh elasticsearch-2.4.2.rpm

修改配置文件

/etc/elasticsearch/elasticsearch.yml

network.bind_host: 0.0.0.0

node.name: sh-saas-o2o-elk4es-qa-01

path.data: /data/es/data

path.logs: /data/es/log

http.cors.allow-origin: "*"

http.cors.enabled: true

index.number_of_shards: 5

index.number_of_replicas: 0

注记得一定要把副本数量设置为0,因为没有集群,副本没法分配,会导致节点显示变成黄色。

安装head插件

rpm -ql elasticsearch  查看elasticsearch的二进制文件安装到哪里去了

/usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head

启动es

/etc/init.d/elasticsearch start

三·kibana

安装kibana

rpm -ivh kibana-4.6.0.rpm

配置kibana

/opt/kibana/config/kibana.yml

server.port: 5601

elasticsearch.url: "http://127.0.0.1:9200"

注:末尾追加这两行即可

四·验证

es正常  http://10.11.129.142:9200/_plugin/head/

kibana

更多推荐

ELK 单机安装

本文发布于:2023-12-07 10:01:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1670922.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单机   ELK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!