1.下载运行Elasticsearch

1.下载解压elasticsearch
Elasticsearch官网地址:https://www.elastic.co/ Elasticsearch最新版下载地址:https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html 
下载文件elasticsearch-1.7.2.zip到linux或Windows上,解压如下:
  1. [lizhiwei@localhost ElasticSearch]$ ll
  2. total 31028
  3. drwxr-xr-x. 8 lizhiwei lizhiwei 4096 Oct 9 05:32 elasticsearch-1.7.2
  4. -rwxrwxr-x. 1 lizhiwei lizhiwei 31766366 Oct 9 05:06 elasticsearch-1.7.2.zip
  5. [lizhiwei@localhost ElasticSearch]$ cd elasticsearch-1.7.2
  6. [lizhiwei@localhost elasticsearch-1.7.2]$ ll
  7. total 52
  8. drwxr-xr-x. 2 lizhiwei lizhiwei 4096 Sep 14 09:51 bin
  9. drwxr-xr-x. 2 lizhiwei lizhiwei 4096 Sep 14 09:51 config
  10. drwxrwxr-x. 3 lizhiwei lizhiwei 4096 Oct 9 05:17 data
  11. drwxr-xr-x. 3 lizhiwei lizhiwei 4096 Sep 14 09:51 lib
  12. -rw-rw-r--. 1 lizhiwei lizhiwei 11358 Sep 14 09:20 LICENSE.txt
  13. drwxrwxr-x. 2 lizhiwei lizhiwei 4096 Oct 9 05:17 logs
  14. -rw-rw-r--. 1 lizhiwei lizhiwei 150 Sep 14 09:20 NOTICE.txt
  15. drwxrwxr-x. 4 lizhiwei lizhiwei 4096 Oct 9 05:38 plugins
  16. -rw-rw-r--. 1 lizhiwei lizhiwei 8700 Sep 14 09:22 README.textile
  17. [lizhiwei@localhost elasticsearch-1.7.2]$
2.运行elasticsearch

elasticsearch启动脚本在解压目录bin下:
  1. [lizhiwei@localhost elasticsearch-1.7.2]$ cd bin/
  2. [lizhiwei@localhost bin]$ ll
  3. total 324
  4. -rwxr-xr-x. 1 lizhiwei lizhiwei 8114 Sep 14 09:51 elasticsearch
  5. -rw-rw-r--. 1 lizhiwei lizhiwei 901 Sep 14 09:51 elasticsearch.bat
  6. -rw-rw-r--. 1 lizhiwei lizhiwei 2797 Sep 14 09:51 elasticsearch.in.bat
  7. -rwxr-xr-x. 1 lizhiwei lizhiwei 2170 Sep 14 09:51 elasticsearch.in.sh
  8. -rw-rw-r--. 1 lizhiwei lizhiwei 104448 Sep 14 09:22 elasticsearch-service-mgr.exe
  9. -rw-rw-r--. 1 lizhiwei lizhiwei 103936 Sep 14 09:22 elasticsearch-service-x64.exe
  10. -rw-rw-r--. 1 lizhiwei lizhiwei 80896 Sep 14 09:22 elasticsearch-service-x86.exe
  11. -rwxr-xr-x. 1 lizhiwei lizhiwei 2523 Sep 14 09:51 plugin
  12. -rw-rw-r--. 1 lizhiwei lizhiwei 482 Sep 14 09:51 plugin.bat
  13. -rw-rw-r--. 1 lizhiwei lizhiwei 6210 Sep 14 09:51 service.bat
Linux以默认方式启动elasticsearch(依赖Java1.7):

  1. [lizhiwei@localhost bin]$ ./elasticsearch
  2. [2015-10-09 06:05:51,126][INFO ][node ] [Agamemnon] version[1.7.2], pid[3387], build[e43676b/2015-09-14T09:49:53Z]
  3. [2015-10-09 06:05:51,127][INFO ][node ] [Agamemnon] initializing ...
  4. [2015-10-09 06:05:51,249][INFO ][plugins ] [Agamemnon] loaded [marvel], sites [marvel, head]
  5. [2015-10-09 06:05:51,304][INFO ][env ] [Agamemnon] using [1] data paths, mounts [[/ (/dev/sda2)]], net usable_space [86.5gb], net total_space [95.3gb], types [ext4]
  6. [2015-10-09 06:05:53,939][INFO ][node ] [Agamemnon] initialized
  7. [2015-10-09 06:05:53,939][INFO ][node ] [Agamemnon] starting ...
  8. [2015-10-09 06:05:54,004][INFO ][transport ] [Agamemnon] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.110.100:9300]}
  9. [2015-10-09 06:05:54,017][INFO ][discovery ] [Agamemnon] elasticsearch/g0UtBViqRGOUdboFWcBUbw
  10. [2015-10-09 06:05:57,815][INFO ][cluster.service ] [Agamemnon] new_master [Agamemnon][g0UtBViqRGOUdboFWcBUbw][localhost.localdomain][inet[/192.168.110.100:9300]], reason: zen-disco-join (elected_as_master)
  11. [2015-10-09 06:05:57,936][INFO ][http ] [Agamemnon] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.110.100:9200]}
  12. [2015-10-09 06:05:57,937][INFO ][node ] [Agamemnon] started
  13. [2015-10-09 06:05:58,062][INFO ][gateway ] [Agamemnon] recovered [2] indices into cluster_state
检查是否启动成功,浏览器访问http://IP:9200/,如:http://192.168.110.100:9200/

2.安装Elasticsearch插件

1.安装Marvel插件插件
Elasticsearch Marvel是一个管理和监视工具,免费供开发使用。安装过程如下:
  1. [lizhiwei@localhost bin]$ ./plugin -i elasticsearch/marvel/latest
  2. -> Installing elasticsearch/marvel/latest...
  3. Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip...
  4. Downloading .......................................DONE
  5. Installed elasticsearch/marvel/latest into /home/lizhiwei/SoftWare/ElasticSearch/elasticsearch-1.7.2/plugins/marvel
浏览器访问地址:http://IP:9200/_plugin/marvel/、http://IP:9200/_plugin/marvel/sense/ 如下:

2.安装head插件
head插件也是ElasticSearch管理工具,安装如下:
  1. [lizhiwei@localhost bin]$ ./plugin -install mobz/elasticsearch-head
  2. -> Installing mobz/elasticsearch-head...
  3. Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
  4. Downloading ............................DONE
  5. Installed mobz/elasticsearch-head into /home/lizhiwei/SoftWare/ElasticSearch/elasticsearch-1.7.2/plugins/head
范围路径:http://IP:9200/_plugin/head/ 如下:

-------------------------------------------------------------------------------------------------------------------------------

来自为知笔记(Wiz)

转载于:https://www.cnblogs.com/LiZhiW/p/4865179.html

01.Elasticsearch安装相关推荐

  1. ELK入门01—Elasticsearch安装

    1. 安装 首先从官网下载安装包 此处我们选择2.4.6这个版本,然后下载tar压缩包 下载以后直接解压,就算安装完成了 tar zxvf elasticsearch-2.4.6.tar.gz 2. ...

  2. 【总结】ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase

    ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase to a ...

  3. elasticsearch安装采坑记录

    首先下载ES elasticsearch   6.1.1版本  然后安装 安装准备: 安装Elasticsearch唯一的要求是安装官方新版的Java,包括对应的Jdk. 安装Elasticsearc ...

  4. ElasticSearch安装、IK、映射、索引管理、搜索管理和集群管理

    ElasticSearch 一.ElasticSearch 1.1 概念 1.2 原理与应用 1.2.1 索引结构 1.2.3 RESTful应用 二.ElasticSearch安装 2.1 Wind ...

  5. 大数据搜索引擎之ElasticSearch安装篇(资源)

    2019独角兽企业重金招聘Python工程师标准>>> 实验平台:操作系统:CentOS 7 软件链接(官网):https://www.elastic.co/products Ela ...

  6. 2021年大数据ELK(八):Elasticsearch安装IK分词器插件

    全网最详细的大数据ELK文章系列,强烈建议收藏加关注! 新文章都已经列出历史文章目录,帮助大家回顾前面的知识重点. 目录 系列历史文章 安装IK分词器 一.下载Elasticsearch IK分词器 ...

  7. elasticsearch安装与配置介绍

    基本概念 集群:一个或者多个elasticsearch节点组成的集合 索引:含有相同属性的文档集合,例如一个索引代表消费者数据,一个索引代表产品数据(相当于MySQL的database) 类型:索引可 ...

  8. windows 下使用caffy_折腾下Windows下的Elasticsearch安装与使用

    今天尝试下在Windows下安装下Elasticsearch 先去官网下载最新版 https://www.elastic.co/cn/downloads/elasticsearch 各个版本都有,今天 ...

  9. elasticsearch安装过程中的license问题解决办法

    elasticsearch安装过程中的license问题解决办法 参考文章: (1)elasticsearch安装过程中的license问题解决办法 (2)https://www.cnblogs.co ...

最新文章

  1. mysql正斜杠_MySQL中的正斜杠和反斜杠 | | 数据库系统概论(字符匹配)
  2. Audio Session Interruption
  3. Java并发基础01. 传统线程技术中创建线程的两种方式
  4. 持续集成mysql_DevOps安装、部署持续集成
  5. 普通视图和物化视图区别
  6. Django Form和ModelForm组件
  7. 数据结构与算法---查找算法(Search Algorithm)
  8. python api测试框架_python api 测试框架
  9. bzoj2456: mode
  10. LeetCode(1)——两数之和(JavaScript)
  11. git复制迁移--SmartGit
  12. 46.Linux/Unix 系统编程手册(下) -- System V 消息队列
  13. 值的珍藏!三分钟了解如何用elman神经网络进行预测
  14. A4排成A3双面打印怎么操作
  15. 国美易卡设置cookie域,国美易卡匹配domain
  16. 【产业互联网周报】罗永浩AR创业公司获美团领投;英特尔自动驾驶子公司Mobileye敲定IPO条款;星环科技登陆科创板...
  17. 【微信小程序】发布流程及发布审核时如何提供测试账号?
  18. 码云上不错的几个支付相关的项目
  19. 2.10 zio入门——总结
  20. 软件测试2小时入门-曹红杏-专题视频课程

热门文章

  1. 不服就干!抖音要用多闪挑战微信,但官网瞬间被封
  2. 枪口对准Google无人车
  3. 要把AI建在赤道上的华为,为何用全栈全场景方案打响第一枪
  4. 英伟达用GAN生成脑瘤图像,训练出的AI医生,准确率提高16%
  5. 决不允许AI杀人武器研发!马斯克领衔2400名科学家签署联名宣言
  6.  ̄□ ̄他咬了蜘蛛一口,从此蜘蛛精通C语言
  7. 打造SpringBootTemplate(SpringBoot项目的模版)
  8. Glomosim安装和ParseC的使用等相关链接
  9. PostgreSQL GPU 加速(HeteroDB pg_strom) (GPU计算, GPU-DIO-Nvme SSD, 列存, GPU内存缓存)
  10. 高品质低成本 佳能发布4款加墨式打印新品