您的位置:首页 > 其它

elasticsearch安装

2015-08-20 00:05 363 查看
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=256mfiif [
"x$ES_MAX_MEM" = "x" ]; then ES_MAX_MEM=512mfiif [
"x$ES_HEAP_SIZE" != "x" ]; then ES_MIN_MEM=$ES_HEAP_SIZE ES_MAX_MEM=$ES_HEAP_SIZEfi
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
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONEInstalled
mobz/elasticsearch-head into /usr/local/elasticsearch/plugins/headIdentified as a
_site plugin, moving to _site structure ...
安装完成访问地址是:“http://10.0.0.128:9200/_plugin/head/

现在是不是看上去很立体了本文出自 “nginxs小白” 博客,转载请与作者联系!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: