环境

  • 操作系统: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. Mysql 练习题 及 答案

    --1.学生表 Student(S,Sname,Sage,Ssex) --S 学生编号,Sname 学生姓名,Sage 出生年月,Ssex 学生性别 --2.课程表  Course(C,Cname,T ...

  2. android中listview点击监听器onItemClick四个参数的含义

    public void onItemClick(AdapterView<?> arg0, View view, int position, long arg3) X, Y两个listvie ...

  3. [poj2425]A Chess Game_博弈论

    A Chess Game poj-2425 题目大意:题目链接 注释:略. 想法:这个题就是为什么必须要用记忆化搜索.因为压根就不知道后继是谁. 我们通过SG定理可知:当前游戏的SG值等于所有子游戏的 ...

  4. SAP Portal 上传资源到WRR

    Uploading Resources to the Web Resource Repository Prerequisites You have been assigned the Content ...

  5. Ubuntu 16.04下FireFox安装Flash插件

    下载: https://get.adobe.com/flashplayer/ 选择tar.gz包 解压 sudo tar zxvf flash_player_npapi_linux.x86_64.ta ...

  6. .NET跨平台 - WCF & Mono

    让WCF运行在Linux上(寄宿于服务器程序) WCF介绍请自行 bing 搜索 使用的开发工具为vs2017,系统为 Ubuntu16.04 服务器软件为Jexus ( 详情请看:  Jexus官网 ...

  7. javascript 将中文符号转换成英文符号

      javascript 将中文符号转换成英文符号 CreateTime--2018年3月30日09:01:29 Author:Marydon /** * 将中文符号转换成英文符号 */ functi ...

  8. LeetCode 389. Find the Difference (找到不同)

    Given two strings s and t which consist of only lowercase letters. String t is generated by random s ...

  9. Codesys——限定符的使用方法[来自Codesys的Help]

    Qualifier for actions in SFC In order to configure in which way the actions should be associated to ...

  10. 深入理解7816(1)---- 关于F/D和etu【转】

    本文转载自:http://blog.sina.com.cn/s/blog_4df8400a0101gkss.html 深入理解7816(1)---- 关于F/D和etu 对于刚接触智能卡的工程师来说, ...