ELK 单机安装

一丶软件下载

elasticsearch:

https://www.elastic.co/downloads/past-releases

kibana:

https://www.elastic.co/downloads/past-releases

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

二、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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值