ElasticSearch初级开发(1)之ElasticSearch及head插件离线安装

本文介绍了如何离线安装ElasticSearch 2.1.0,包括下载安装包并上传到各节点,配置elasticsearch.yml文件。同时讲解了ElasticSearch插件head的离线安装步骤,提供了head插件的下载链接。最后,针对启动ElasticSearch时遇到的root权限问题提出了解决方案。
摘要由CSDN通过智能技术生成

1.离线安装ElasticSearch 

提前下载安装包

url: https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.0/elasticsearch-2.1.0.tar.gz


环境

ElasticSearch版本:2.1.0

JDK版本:1.8.0_45


集群:

Kylin   172.16.16.222

Kylin01 172.16.16.223

Kylin02 172.16.16.225


上传安装包(每个节点都要)

[root@kylin Eleasticsearch]# ls
elasticsearch-2.1.0  
[root@kylin Eleasticsearch]# pwd
/usr/software/Eleasticsearch

配置elasticsearch.yml(Kylin节点为例)

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
 cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
 node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
 path.data: /usr/software/Eleasticsearch/elasticsearch-2.1.0/local_data/data
#
# Path to log files:
#
 path.logs: /usr/software/Eleasticsearch/elasticsearch-2.1.0/local_data/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.mlockall: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
 network.host: 192.168.1.12
 network.publish_host: 192.168.1.12
#
# Set a custom port for HTTP:
#
 http.port: 9200
[root@kylin config]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM)
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值