5.Elasticsearch5.4.0(head/kibana/logstash)安装部署详解

铭毅天下,原文地址:blog.csdn.net/laoyang360 https://blog.csdn.net/wojiushiwo987/article/details/73368740

1、ES5.4.0安装包下载地址

https://www.elastic.co/downloads/past-releases/elasticsearch-5-4-0

2、Centos6.7 Elasticsearch5.4.0安装

步骤1:解压 
-rw-r–r–. 1 root root 33302352 Jun 8 01:28 elasticsearch-5.4.0.tar.gz 
tar -zxvf elasticsearch-5.4.0.tar.gz 
步骤2: 
拷贝到:/opt/路径下,改名: elasticsearch-5.4.0为 elasticsearch。 
步骤3:linux下新建账户:elasticsearch 
步骤4:修改/opt/elasticsearch的账户权限。 
chown -R elasticsearch:elasticsearch /opt/elasticsearch 
步骤5:修改配置文件/opt/elasticsearch/config/elasticsearch.yml 
步骤6:切换到elasticsearch账户 
步骤7:启动elasticsearch 
步骤8:验证启动是否成功: 
这里写图片描述

3、Head插件安装

步骤1:git clone git://github.com/mobz/elasticsearch-head.git 
步骤2:切换到elasticsearch-head路径(我的解压路径: 
/home/es01/elasticsearch/plugins/elasticsearch-head) 
cd elasticsearch-head 
npm install //一定要在elasticsearch-head目录下执行该命令 
步骤3:修改配置 
修改elasticsearch-head下Gruntfile.js文件,默认监听在127.0.0.1下9200端口 
这里写图片描述 
步骤4:启动服务 
1)cd elasticsearch-head/node_modules/grunt/bin/ 
./grunt server 
2)进入elasticsearch-head目录后,配置完Gruntfile.js 直接 npm run start 即可

步骤5:验证安装成功。 
浏览器访问 http://localhost:9100/ (localhost换成插件所在的机器的ip) 
成功标志如下图所示: 
这里写图片描述 
1.x,2.x版本的访问:http://IP:9200/_plugin/head 
5.x版本访问:http://IP:9100/

4、Kibana安装

kibana下载地址:https://www.elastic.co/downloads/past-releases/kibana-5-4-1 
步骤1:解压 
步骤2:切换路径 
tar -xzf kibana-5.4.1-darwin-x86_64.tar.gz 
cd kibana/

步骤3:修改配置 
这里写图片描述 
步骤4:运行kibana 
./bin/kibana

5、logstash安装

logstash下载地址: 
步骤1:安装公有签名key。

rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch

步骤2:在/etc/yum.repos.d/下新增logstash.repo,添加如下内容:

[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

步骤3:安装logstash

sudo yum install logstash

步骤4:执行logstash(举例) 
bin/logstash -f logstash-simple.conf

6、遇到的坑及解决方案

1)ES安装坑:http://www.jianshu.com/p/89f8099a6d09 
2)head安装坑: http://www.echojb.com/network/2017/05/13/384500.html 
3)kibana安装坑: https://www.elastic.co/guide/en/kibana/current/targz.html 
4)logstash安装坑: 
https://www.elastic.co/guide/en/logstash/current/configuration.html 
5)ES跨域支持:http://www.echojb.com/network/2017/05/13/384500.html 
6)head插件npm安装参考:http://t.cn/RZPxF2B


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值