环境

  • 操作系统:Centos 6.5 X64
  • IP地址:192.168.56.100
  • JDK 环境:
# java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

新建立用户:

# useradd elastic
# su - elastic
# mkdir ~/opt

接下来的操作都是使用elastic用户的opt/目录来进行操作。

下载安装

下载

下载地址:https://www.elastic.co/downloads/past-releases/elasticsearch-5-2-1

下载后解压

$ ls -l elasticsearch-5.2.1.zip
-rw-r--r--. 1 elastic elastic 33533234 Feb 15 14:24 elasticsearch-5.2.1.zip $ unzip elasticsearch-5.2.1.zip

主要的文件及目录:

elasticsearch-5.2.1
├── bin/ #命令
│   ├── elasticsearch #启动服务命令
│   ├── elasticsearch.in.sh
│   ├── elasticsearch-plugin
│   ├── elasticsearch-translog
├── config/ #配置目录
│   ├── elasticsearch.yml #主要配置文件
│   ├── jvm.options
│   └── log4j2.properties
├── lib/
├── modules/
├── NOTICE.txt
├── plugins/ #插件目录
└── README.textile

安装

elasticsearch是开箱即用软件,解压完后,可以先试运行一次

$ cd ~/opt/elasticsearch-5.2.1
$ bin/elasticsearch
......

启动完后,可以在另一个终端查看运行情况:

$ curl -XGET "http://localhost:9200?pretty"
{
"name" : "es-node-01",
"cluster_name" : "es-cluster",
"cluster_uuid" : "wDw2aF-1THGSCqvyq6KPNw",
"version" : {
"number" : "5.2.1",
"build_hash" : "db0d481",
"build_date" : "2017-02-09T22:05:32.386Z",
"build_snapshot" : false,
"lucene_version" : "6.4.1"
},
"tagline" : "You Know, for Search"
}

配置

elasticsearch 5.x版本后,需要配置才可以通过IP来进行访问,主要配置如下:

系统配置(root用户操作)

# cat >> /etc/security/limits.conf <EOF
* soft nofile 65536
* hard nofile 65536
EOF # vim /etc/security/limits.d/90-nproc.conf
soft nproc 1024 =>修改为soft nproc 2048 # cat >> /etc/sysctl.conf <EOF
vm.max_map_count=655360
EOF # sysctl -p

elasticsearch配置

修改配置文件~/opt/elasticsearch-5.2.1/config/elasticsearch.yml

cluster.name: "es-cluster"
node.name: "es-node-01"
node.master: true
node.data: true
http.enabled: true network.host: 0.0.0.0
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*" bootstrap.memory_lock: false
bootstrap.system_call_filter: false

启动

elasticsearch可以直接启动,也可以加上-b参数在后台启动

$ bin/elasticsearch -b
......

ElasticSearch-5.21安装的更多相关文章

  1. ElasticSearch 2 (21) - 语言处理系列之单词识别

    ElasticSearch 2 (21) - 语言处理系列之单词识别 摘要 一个英语单词相对容易识别:因为英语单词是被空格或(某些)标点符号隔开的.但在英语中也有反例:you're 这个词是一个单词还 ...

  2. Elasticsearch 及 Kibana 安装篇

    简介 官网-安装介绍 这里记载了各个软件包的安装方法,Linux Mac Windows-- 本文记载的是在 CentOS 系统安装 Elasticsearch 7.0.0 版本的步骤. 安装 Jav ...

  3. Elasticsearch介绍和安装与使用

    转载:https://blog.csdn.net/weixin_42633131/article/details/82902812 1.Elasticsearch介绍和安装 1.1.简介1.1.1.E ...

  4. Elasticsearch集群安装Version6.2.2

    Elasticsearch集群安装, 基于Elasticsearch6.2.2版本, 在Linux上安装Elasticsearch集群. 1.安装规划 IP HostName Service Mast ...

  5. Fedora 21 安装 Nvidia 驱动以及失败后的补救方法

    在 Linux 桌面系统下玩了这么久,大部分时间都是使用 Ubuntu,偶尔使用一下 Fedora.我的电脑中安装有多个 Linux 发行版,见这里<在同一个硬盘上安装多个Linux发行版及Fe ...

  6. Elasticsearch和Kibana安装

    Elasticsearch安装 Elasticsearch至少需要Java 8.在撰写本文时,建议你使用Oracle JDK版本1.8.0_131.Java安装因平台而异,所以在这里不再赘述.Orac ...

  7. elasticsearch+kibana+metricbeat安装部署方法

    elasticsearch+kibana+metricbeat安装部署方法 本文是elasticsearch + kibana + metricbeat,没有涉及到logstash部分.通过beat收 ...

  8. ElasticSearch 5.4 安装

        1. 前期准备  环境准备 IP地址 操作系统 内存 192.168.1.10 centos 7 16 192.168.1.11 centos 7 16 192.168.1.12 centos ...

  9. Elasticsearch介绍及安装部署

    本节内容: Elasticsearch介绍 Elasticsearch集群安装部署 Elasticsearch优化 安装插件:中文分词器ik 一.Elasticsearch介绍 Elasticsear ...

  10. Elasticsearch 5.x安装

    node1 elasticsearch node2 elasticsearch node3 elasticsearch 前期准备 JDK1.8 修改/etc/security/limits.conf ...

随机推荐

  1. hdu 5023 线段树延迟更新+状态压缩

    /* 线段树延迟更新+状态压缩 */ #include<stdio.h> #define N 1100000 struct node { int x,y,yanchi,sum; }a[N* ...

  2. Spring Boot配置文件规则以及使用方法官方文档查找以及Spring项目的官方文档查找方法

    比如要使用Spring Boot实现一个功能,最直接的方式是Google,但是往往搜索出来的都比较乱,关键是乱在不同的版本上,比如1.x版本和2.x版本的配置是不一样的.最明显区别是在使用Thymel ...

  3. 大家好 这个事我的BLOG 站点 欢迎大家 訪问和公布文章技术的 和评论 交流技术使用

    地址 http://microlmj.gotoip3.com/blog/article!showAllArticleForPageTest.action ssh+mysql+java+tomcat+b ...

  4. golang 中timer,ticker 的使用

    写一个程序, 5s, 10s后能定时执行一个任务,同时能不停的处理来的消息. ------------------------------------------------------------- ...

  5. Solidworks在哪里找到内六角螺钉 内六角螺栓保准件

    GB-screws-凹头螺钉-出来了  

  6. UML中类图的四种关系及其代码实现

    在uml图中 最复杂的也就是泛化,实现.依赖,关联.这四种关系了,假设弄清了这几种关系那么在理解UML图的时候就会变得轻车熟路了! 假设你对着几种关系一点都不熟悉的话能够看一下uml中的四种关系.这篇 ...

  7. 【C语言】编写函数实现库函数atof

    //编写函数实现库函数atof #include <stdio.h> #include <assert.h> #include <ctype.h> #include ...

  8. DeepDive is a system to extract value from dark data.

    DeepDive is a system to extract value from dark data. http://deepdive.stanford.edu/

  9. windowActionModeOverlay

    windowActionModeOverlay: android:windowActionModeOverlay=“true|false”  : actionmode 弹出时覆盖部分布局      若 ...

  10. 【HDU1530】【ZOJ1492】Maximum Clique

    Position: http://poj.org/problem?id=3241 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCod ...