(三)Installation
Elasticsearch requires at least Java 8. Specifically as of this writing, it is recommended that you use the Oracle JDK version 1.8.0_131. Java installation varies from platform to platform so we won’t go into those details here. Oracle’s recommended installation documentation can be found on Oracle’s website. Suffice to say, before you install Elasticsearch, please check your Java version first by running (and then install/upgrade accordingly if needed):
java -version
echo $JAVA_HOME
Once we have Java set up, we can then download and run Elasticsearch. The binaries are available from www.elastic.co/downloads
along with all the releases that have been made in the past. For each release, you have a choice among a zip
or tar
archive, a DEB
or RPM
package, or a Windows MSI
installation package.
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
tar -xvf elasticsearch-6.2..tar.gz
cd elasticsearch-6.2./bin
./elasticsearch
Installation with Homebrew
使用Homebrewedit进行安装
On macOS, Elasticsearch can also be installed via Homebrew:
brew install elasticsearch
If installation succeeds, Homebrew will finish by saying that you can start Elasticsearch by entering elasticsearch
. Do that now. The expected response is described below, under Successfully running node
如果安装成功,Homebrew将说完你可以通过输入elasticsearch来启动Elasticsearch。现在就这样做。在成功运行nodeedit下,下面描述了预期的响应
Installation example with MSI Windows Installer
For Windows users, we recommend using the MSI Installer package. The package contains a graphical user interface (GUI) that guides you through the installation process.
By default, Elasticsearch will be installed at %PROGRAMFILES%\Elastic\Elasticsearch
. Navigate here and go into the bin directory as follows:
默认情况下,Elasticsearch将安装在%PROGRAMFILES%\ Elastic \ Elasticsearch中。在此处导航并进入bin目录,如下所示:
with Command Prompt:
cd %PROGRAMFILES%\Elastic\Elasticsearch\bin
cd $env:PROGRAMFILES\Elastic\Elasticsearch\bin
And now we are ready to start our node and single cluster:
.\elasticsearch.exe
Successfully running node
If everything goes well with installation, you should see a bunch of messages that look like below:
[--16T14::,][INFO ][o.e.n.Node ] [] initializing ...
[--16T14::,][INFO ][o.e.e.NodeEnvironment ] [-bjhwl] using [] data paths, mounts [[/ (/dev/sda1)]], net usable_space [.7gb], net total_space [.6gb], spins? [no], types [ext4]
[--16T14::,][INFO ][o.e.e.NodeEnvironment ] [-bjhwl] heap size [.9gb], compressed ordinary object pointers [true]
[--16T14::,][INFO ][o.e.n.Node ] [-bjhwl] node name [-bjhwl] derived from node ID; set [node.name] to override
[--16T14::,][INFO ][o.e.n.Node ] [-bjhwl] version[6.2.], pid[], build[f5daa16/--16T09::.346Z], OS[Linux/4.4.--generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) -Bit Server VM/1.8.0_60/25.60-b23]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [aggs-matrix-stats]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [ingest-common]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [lang-expression]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [lang-mustache]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [lang-painless]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [percolator]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [reindex]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [transport-netty3]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded module [transport-netty4]
[--16T14::,][INFO ][o.e.p.PluginsService ] [-bjhwl] loaded plugin [mapper-murmur3]
[--16T14::,][INFO ][o.e.n.Node ] [-bjhwl] initialized
[--16T14::,][INFO ][o.e.n.Node ] [-bjhwl] starting ...
[--16T14::,][INFO ][o.e.t.TransportService ] [-bjhwl] publish_address {192.168.8.112:}, bound_addresses {{192.168.8.112:}
[--16T14::,][WARN ][o.e.b.BootstrapCheck ] [-bjhwl] max virtual memory areas vm.max_map_count [] likely too low, increase to at least []
[--16T14::,][INFO ][o.e.h.HttpServer ] [-bjhwl] publish_address {192.168.8.112:}, bound_addresses {[::]:}, {192.168.8.112:}
[--16T14::,][INFO ][o.e.g.GatewayService ] [-bjhwl] recovered [] indices into cluster_state
[--16T14::,][INFO ][o.e.n.Node ] [-bjhwl] started
Without going too much into detail, we can see that our node named "6-bjhwl" (which will be a different set of characters in your case) has started and elected itself as a master in a single cluster. Don’t worry yet at the moment what master means. The main thing that is important here is that we have started one node within one cluster.
./elasticsearch -Ecluster.name=my_cluster_name -Enode.name=my_node_name
192.168.8.112
) and port (9200
) that our node is reachable from. By default, Elasticsearch uses port 9200
to provide access to its REST API. This port is configurable if necessary.(三)Installation的更多相关文章
- HTML5 学习总结(三)——本地存储
一.HTML4客户端存储 B/S架构的应用大量的信息存储在服务器端,客户端通过请求响应的方式从服务器获得数据,这样集中存储也会给服务器带来相应的压力,有些数据可以直接存储在客户端,传统的Web技术中会 ...
- The Installation and Compilation of OpenCASCADE
OpenCASCADE的编译 The Installation and Compilation of OpenCASCADE eryar@163.com 一. 安装OpenCASCADE 可以从Ope ...
- 第三十章 elk(1) - 第一种架构(最简架构)
软件版本: es:2.4.0 logstash:2.4.0 kibana:4.6.1 一.logstash安装(收集.过滤日志.构建索引) 1.下载:https://www.elastic.co/do ...
- kali 2.0 U盘安装错误Your installation cd-rom couldn't be mounted
1.kali 2.0前天(2015.08.11)发布了.果断下载下来换掉本机的1.0版本. 2.用U盘安装的过程中,出现cd-rom无法挂载.提示错误Your installation CD-ROM ...
- Oracle EBS R12 (12.1.3) Installation Linux(64 bit)
Oracle EBS R12 (12.1.3) Installation Linux(64 bit) Contents Objective. 3 1 Download & Unzip. 3 D ...
- Dynamics CRM 2013 installation
原创地址:http://www.cnblogs.com/jfzhu/p/3445820.html 转载请注明出处 一 硬件要求 1. CRM Server 下表对硬件的要求是假定Microsoft S ...
- salesforce 零基础学习(三十六)通过Process Builder以及Apex代码实现锁定记录( Lock Record)
上一篇内容是通过Process Builder和Approval Processes实现锁定记录的功能,有的时候,往往锁定一条记录需要很多的限制条件,如果通过Approval Processes的条件 ...
- ROS探索总结(三)——ROS新手教程【转】
转自:http://blog.csdn.net/hcx25909/article/details/8811313 版权声明:本文为博主原创文章,未经博主允许不得转载. 目录(?)[-] 一ROS的 ...
- P6 EPPM R16.1安装与配置指南(三)
P6 EPPM R16.1安装与配置指南(三) 解压:V137390-01.zip 修改 D:\P6_R161\p6suite\database\dbsetup.bat 的行 SET JAR_FI ...
随机推荐
- CPU的load和使用率傻傻分不清
1. 什么是Cpu的Load 使用uptime.top或者查看/proc/loadavg都可以看到CPU的load统计,这里有三个值,分别代表1分钟.5分钟和15分钟的CPU Load情况.大部分人认 ...
- Kafka并不难学
1.为什么写这本书? 我建立了一个qq群,有很多人在群里面学习和交流,经常有人问我一些Kafka的知识,我可以感受他们对技术的热情,这是一群刚走出校门,或者工作经验较少,又或是一些转型的开发新人,他们 ...
- 互联网视频直播技术(广电总局、优酷土豆、XX直播)
互联网直播是目前最火的技术之一,涵盖了很多方面的知识(网络,CDN,GPU,算法,图像处理),以下我介绍互联网直播的大体框架和关键技术点: 一.前端视频流协议 前端流主要包括UDP.RTMP.RTSP ...
- js反爬-从入门到精通webdriver
学习JS反爬 地址:http://openlaw.cn/login.jsp 想在指导案例中抓些内容,需要登陆 账号密码发送会以下面方式发送 所以需要找到_csrf和加密后的password,_csrf ...
- 补习系列(4)-springboot 参数校验详解
目录 目标 一.PathVariable 校验 二.方法参数校验 三.表单对象校验 四.RequestBody 校验 五.自定义校验规则 六.异常拦截器 参考文档 目标 对于几种常见的入参方式,了解如 ...
- 在数据采集器中用TensorFlow进行实时机器学习
最新DataOps平台的真正价值,只有在业务用户和应用程序能够从各种数据源来访问原始数据和聚合数据,并且及时地产生数据驱动的认识时,才能够实现.利用机器学习(Machine Learning),分析师 ...
- mysql更改数据存储目录
具体操作请参考文章 1.http://blog.csdn.net/aaronbai/article/details/1431190 更改数据存储目录时候会出现 ERROR 2002 (HY000): ...
- SpringMVC中@Controller和@RequestMapping用法和其他常用注解
一.简介 在SpringMVC 中,控制器Controller 负责处理由DispatcherServlet 分发的请求,它把用户请求的数据经过业务处理层处理之后封装成一个Model ,然后再把该Mo ...
- Spring中用了哪些设计模式
1 简单工厂模式 又叫做静态工厂方法(StaticFactory Method)模式,但不属于23种GOF设计模式之一. 简单工厂模式的实质是由一个工厂类根据传入的参数,动态决定应该创建哪一个产品类. ...
- 第12章 添加对外部认证的支持 - Identity Server 4 中文文档(v1.0.0)
注意 对于任何先决条件(例如模板),首先要查看概述. 接下来,我们将添加对外部认证的支持.这非常简单,因为您真正需要的是ASP.NET Core兼容的身份验证处理程序. ASP.NET Core本身支 ...