安装及部署

一、环境配置

操作系统:Cent OS 7
ElasticSearch版本:1.3.2
JDK版本:1.7.0_51
SSH Secure Shell版本:XShell
5
elasticsearch-servicewrapper :ES的服务插件,一般在linux上使用。

二、操作过程

1、下载指定版本的ElasticSearch

进入安装目录,并通过curl命令下载elasticsearch压缩包文件:

cd
/usr/local/logdeal
命令:
curl -L -O
https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.3.2.zip

2、解压elasticsearch压缩文件

通过unzip命令解压elasticsearch压缩文件,这里没有指定目标目录,默认当前目录。

unzip elasticsearch-1.3.2.zip

3、修改elasticsearch.yml配置信息

主要针对集群、节点、端口等配置,目前我只修改了cluster.name和http.port两项,具体请参考
elasticsearch 配置详解

 cluster.name
################################### Cluster ################################### # Cluster name identifies your cluster for auto-discovery. If you're running
# multiple clusters on the same network, make sure you're using unique names.
#
#修改
cluster.name: elastic181deallog
http.port
# Set a custom port to listen for HTTP traffic:
#
#修改
http.port:

4、启动、关闭elasticsearch实例

  • 启动实例命令

cd /usr/local/logdeal/elasticsearch-1.3.2/bin

nohup /usr/local/logdeal/elasticsearch-1.3.2/bin/elasticsearch &

  • 测试elasticsearch是否启动成功

浏览器输入地址http://192.168.1.181:9100/,返回一下结果代表正常启动

{
"status" : ,
"name" : "Shingen Harada",
"version" : {
"number" : "1.3.2",
"build_hash" : "dee175dbe2f254f3f26992f5d7591939aaefd12f",
"build_timestamp" : "2014-08-13T14:29:30Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}
  • 关闭实例命令

ps -aux|grep
elasticsearch-1.3.2-deal-log
kill -9 #pid

5、安装Elasticsearch service wrapper插件

为了将Elasticsearch安装成一个Linux系统服务,将使用Elasticsearch
service
wrapper,你可以从https://github.com/elasticsearch/elasticsearch-servicewrapper下载。
将解压后的service目录拷贝到elasticsearch目录的bin目录下。

  • 启动Elasticsearch实例

在linux环境,进入ES目录的bin/service目录,运行命令sh elasticsearch
start

  • 关闭Elasticsearch实例

在linux环境,进入ES目录的bin/service目录,运行命令nohup sh elasticsearch stop
&

  • Elasticsearch service
    wrapper命令集
Usage: elasticsearch [ console | start | stop | restart | condrestart | status | install | remove | dump ]

Commands:
console Launch in the current console.
start Start in the background as a daemon process.
stop Stop if running as a daemon or in another console.
restart Stop if running and then start.
condrestart Restart only if already running.
status Query the current status.
install Install to start automatically when system boots.
remove Uninstall.
dump Request a Java thread dump if running.

6、安装head插件

Elasticsearch-head是一个elasticsearch的集群管理工具,它是完全由html5编写的独立网页程序,你可以通过插件把它集成到es。

  • 安装

进入elasticsearch/bin目录,输入命令./plugin --install mobz/elasticsearch-head 安装head插件。

  • 测试

在浏览器中输入http://192.168.1.181:9100/_plugin/head/如能访问则ES启动成功。

ElasticSearch安装及部署的更多相关文章

  1. elasticsearch 安装和部署

    jdk要用1.8以上(elasticsearch版本是1.7.3) 下载elasticsearch的tar包,解压开,更改其名称  mv elasticsearch-5.x.x elasticsear ...

  2. elasticsearch安装和部署

    1.可以在官网上下载不同版本的es,官网地址为:https://www.elastic.co/cn/downloads/past-releases#elasticsearch 2.解压elastics ...

  3. ELK日志监控平台安装部署简介--Elasticsearch安装部署

    最近由于工作需要,需要搭建一个ELK日志监控平台,本次采用Filebeat(采集数据)+Elasticsearch(建立索引)+Kibana(展示)架构,实现日志搜索展示功能. 一.安装环境描述: 1 ...

  4. Kibana安装及部署

    安装及部署 一.环境配置 操作系统:Cent OS 7 Kibana版本:3.1.2 JDK版本:1.7.0_51 SSH Secure Shell版本:XShell 5 二.操作过程 1.下载指定版 ...

  5. Logstash安装及部署

    安装及部署 一.环境配置 操作系统:Cent OS 7 Logstash版本:2.1.1.tar.gz JDK版本:1.7.0_51 SSH Secure Shell版本:XShell 5 二.操作过 ...

  6. Elasticsearch学习总结 (Centos7下Elasticsearch集群部署记录)

    一.  ElasticSearch简单介绍 ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口.Elasticse ...

  7. elasticsearch安装教程

    目录 1 java8 环境 2 安装elasticsearch 3 安装kibana 4. 单服务器部署多个节点 参考: 1 java8 环境 elasticsearch需要安装java 8 环境,配 ...

  8. SonarQube系列一、Linux安装与部署

    [前言] 随着项目团队规模日益壮大,项目代码量也越来越多.且不说团队成员编码水平层次不齐,即便是老手,也难免因为代码量的增加和任务的繁重而忽略代码的质量,最终的问题便是bug的增多和代码债务的堆积.因 ...

  9. elasticsearch+logstash+kibana部署

    这篇博客讲的是elasticsearch+logstash+kibana部署的方法. 内容大纲: 1.elasticsearch+logstash+kibana部署 2.收集Tomcat日志 3.收集 ...

随机推荐

  1. 并发编程 12—— 任务取消与关闭 之 shutdownNow 的局限性

    Java并发编程实践 目录 并发编程 01—— ThreadLocal 并发编程 02—— ConcurrentHashMap 并发编程 03—— 阻塞队列和生产者-消费者模式 并发编程 04—— 闭 ...

  2. JavaScript的sleep延时函数

    JavaScript没有像Java的sleep延时函数,所以记录JavaScript的sleep延时函数 function sleep(milliSeconds) { var startTime = ...

  3. CodeForces #369 C. Coloring Trees DP

    题目链接:C. Coloring Trees 题意:给出n棵树的颜色,有些树被染了,有些没有.现在让你把没被染色的树染色.使得beauty = k.问,最少使用的颜料是多少.   K:连续的颜色为一组 ...

  4. OC方法和文件编译

    OC方法和文件编译 一.OC方法 (一)对象方法 (1)对象方法以-开头如 -(void)xx; (2)对象方法只能又对象来调用 (3)对象方法中可以访问当前对象的成员变量 (4)调用格式   [对象 ...

  5. Wifite v2 is now available

    Wifite v2 is now available What's new in this version: support for cracking WPS-encrypted networks ( ...

  6. launch文件

    launch在ROS应用中,每个节点通常有许多参数需要设置,为了方便高效操作多个节点,可以编写launch文件,然后用roslaunch命令运行roslaunch: roslaunch [option ...

  7. 在服务器端将XML转换成HTML

    以下是在服务器上转换XML文件所需要的简单源代码: <% 'Load the XML set xml = Server.CreateObject("Microsoft.XMLDOM&q ...

  8. CPU标志寄存器

    这个标志寄存器似乎很重要,不干掉它,中断这玩意还进行不下去了,但是过于复杂,都是一些跟计算结果相关的位,头痛 (这是别人写的一篇非常好的关于标志寄存器的文章http://blog.csdn.net/w ...

  9. iOS 图片填充 UIImageView (contentMode)

    掐指算下来做iOS开发也是有两年多的时间了,然后今天一个超级常用的控件让我颜面大跌,于是我准备把自己的丢人行径公之于众.如果您看到我这篇文章时和我一样,也是刚刚知道这项功能,那么您就当收获了一个... ...

  10. Visual Studio 编译项目失败,提示找不到文件

     博客地址:http://blog.csdn.net/FoxDave 今天碰到了一个蠢问题,虽然咱们正常情况下是遇不到的,但这确实是个应该注意的地方,所以简单记录一下. Visual Studio ...