1、概述

本次安装和使用的是es2.1 的版本

2、安装

1)下载与安装
首先需要去官网地址: https://www.elastic.co/downloads/past-releases
elasticsearch安装和使用

下载好elasticsearch-2.1.0.tar.gz 后再解压并且修改elasticseacher.yml 文件
具体如下所示:

## 集群名称
cluster.name: es-ucc

## 设置所以的IP可以绑定
network.host: 0.0.0.0

# this is sovle elasticsearch scripts of type [inline], operation [update] and lang # [groovy] are disabled
script.inline: true 
script.indexed: true

修改完成后启动, 后台启动:
先进入bin目录在执行下面的命令:
非root用户 :./elasticsearch -d
root用户 : ./elasticsearch -Des.insecure.allow.root=true -d
验证是否启动成功: ps aux | grep elasticsearch

3、注意

上面添加的配置是因为, 不配置在获取数据会有问题。 这个是es2.x的bug

相关文章:

  • 2021-12-08
  • 2021-09-25
  • 2021-08-03
  • 2021-07-02
  • 2021-09-23
  • 2021-10-11
  • 2021-11-04
  • 2021-04-11
猜你喜欢
  • 2021-12-24
  • 2021-11-22
  • 2021-10-29
  • 2021-07-22
  • 2021-10-28
  • 2021-11-22
  • 2022-01-20
相关资源
相似解决方案