标签:elasticsearch安装 elasticsearch head 安装
1.安装
简单的下载解压就安装完成了good
[root@localhost src]#wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.zip
[root@localhost src]# unzip elasticsearch-1.7.1.zip
[root@localhost src]# mv elasticsearch-1.7.1 /usr/local/elasticsearch
[root@localhost src]# cd /usr/local/elasticsearch/bin/
2.根据自己的配置修改内存
因为机器的配置不通自行定制适合自己的JVM配置
[root@localhost bin]# vim +9 elasticsearch.in.sh
if [ "x$ES_MIN_MEM" = "x" ]; then
ES_MIN_MEM=256m
fi
if [ "x$ES_MAX_MEM" = "x" ]; then
ES_MAX_MEM=512m
fi
if [ "x$ES_HEAP_SIZE" != "x" ]; then
ES_MIN_MEM=$ES_HEAP_SIZE
ES_MAX_MEM=$ES_HEAP_SIZE
fi
3. ES启动
下图便是启动成功访问9200的相响应
4.安装head插件
这里启动成功但是对于新手还是很陌生的,那么向大家推荐一个elasticsearch插件head,
安装方法如下
[root@localhost bin]#./plugin install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
Downloading ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Installed mobz/elasticsearch-head into /usr/local/elasticsearch/plugins/head
Identified as a _site plugin, moving to _site structure ...
安装完成访问地址是:“http://10.0.0.128:9200/_plugin/head/”
本文出自 “nginxs小白” 博客,转载请与作者联系!
标签:elasticsearch安装 elasticsearch head 安装
原文地址:http://nginxs.blog.51cto.com/4676810/1686247