ElasticSearch 5.0及head插件安装
plugin install mobz/elasticsearch-head
本文主要介绍elasticsearch5.0安装及head插件安装。确保系统已经安装好jdk1.8.0_73以上,操作系统CentOS6以上。
一、elasticsearch安装配置
1.官网下载源码包
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.0.tar.gz
2.解压安装
useradd elasticsearch
tar xf elasticsearch-5.0.0.tar.gz -C /usr/local
cd /usr/local
ln -sv elasticsearch-5.0.0 elasticsearch
mkdir -pv /data/elasticsearch/{data,logs}
chown -R elasticsearch.elasticsearch /data/elasticsearch
3.修改配置文件
cat /usr/local/elasticsearch/config/elasticsearch.yml
path.data:/data/elasticsearch/data
path.logs:/data/elasticsearch/logs
network.host:192.168.1.12
http.cors.enabled:true
http.cors.allow-origin:"*"
4.修改系统参数
cat /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
cat /etc/sysctl.conf
vm.max_map_count= 262144
sysctl -p
5.启动服务
su - elasticsearch -c "/usr/local/elasticsearch/bin/elasticsearch &"
浏览器访问:http://192.168.1.12:9200/
二、head插件的安装
在5.0版本中不支持直接安装head插件,需要启动一个服务
1.下载插件安装
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
在elasticsearch-head目录下node_modules/grunt下如果没有grunt二进制程序,需要执行
cd elasticsearch-head
npm install grunt --save
2.修改配置
修改elasticsearch-head下Gruntfile.js文件,默认监听在127.0.0.1下9200端口
3.启动服务
/usr/local/elasticsearch-head/node_modules/grunt/bin/gruntserver
启动服务方法2:npm run start
浏览器访问 http://192.168.1.12:9100/
Linux上安装部署ElasticSearch全程记录 http://www.linuxidc.com/Linux/2015-09/123241.htm
Elasticsearch安装使用教程 http://www.linuxidc.com/Linux/2015-02/113615.htm
ElasticSearch 配置文件译文解析 http://www.linuxidc.com/Linux/2015-02/114244.htm
ElasticSearch集群搭建实例 http://www.linuxidc.com/Linux/2015-02/114243.htm
分布式搜索ElasticSearch单机与服务器环境搭建 http://www.linuxidc.com/Linux/2012-05/60787.htm
ElasticSearch的工作机制 http://www.linuxidc.com/Linux/2014-11/109922.htm
Elasticsearch的安装,运行和基本配置 http://www.linuxidc.com/Linux/2016-07/133057.htm
使用Elasticsearch + Logstash + Kibana搭建日志集中分析平台实践 http://www.linuxidc.com/Linux/2015-12/126587.htm
Ubuntu 14.04搭建ELK日志分析系统(Elasticsearch+Logstash+Kibana) http://www.linuxidc.com/Linux/2016-06/132618.htm
Elasticsearch1.7升级到2.3实践总结 http://www.linuxidc.com/Linux/2016-11/137282.htm