ELK -elasticsearch
2016-06-01 19:47
218 查看
简介
安装
配置文件
启动
elasticsearch-servicewrapper 插件
安装启动服务
使用服务
网址
相关文档
下载tar包安装
注意:配置文件开头要有空格,配置项和对应值之间的冒号后面也要有空格
添加如下配置
修改如下配置
要想别别的机器访问还需要配置
安装
配置文件
启动
elasticsearch-servicewrapper 插件
安装启动服务
使用服务
简介
elasticsearch 是基于Apache Lucene 的搜索引擎。它是由API来驱动的,所有的行为都可以基于Restful API,用json来实现。安装
安装elasticsearch 要尽量使用非root 用户,因为root用户是无法启动elasticsearch网址
https://www.elastic.co/downloads/elasticsearch
相关文档
https://www.elastic.co/guide/index.html
下载tar包安装
tar -zxvf tar包
配置文件
安装完成后只需修改config目录下的elasticsearch.yml 配置文件注意:配置文件开头要有空格,配置项和对应值之间的冒号后面也要有空格
添加如下配置
discovery.zen.ping.multicast.enabled: false discovery.zen.ping.timeout: 120s client.transport.ping_timeout: 60s
修改如下配置
cluster.name: my-application //集群的名字 node.name: node-1 //当前机器的nodename discovery.zen.ping.unicast.hosts: ["ip", "ip2", "ip3"] //集群中node 的host
要想别别的机器访问还需要配置
network.host: IP1 network.publish_host: IP1 network.bind_host: IP1
启动
可以用bin/elasticsearch 启动,但这种并不是以服务的方式启动。elasticsearch-servicewrapper 插件
在https://github.com/elasticsearch/elasticsearch-servicewrapper下载该插件后,解压缩。将service目录拷贝到elasticsearch安装目录的bin目录下。安装启动服务
sudo bin/service/elasticsearch install
使用服务
bin/service/elasticsearch start/stop/restart
相关文章推荐
- Redis之常用通用命令整理
- Android实现点击两次返回键退出
- 设置自定义导航条/TabBar及字体颜色
- Centos7下配置Redis开机自启动
- 内核、操作系统、Shell
- 台大林轩田·机器学习基石记要
- Codeforces Round #324 (Div. 2) D
- 扑克牌顺子
- 模拟JDK动态代理实现
- CentOS下配置iptables碰到域名解析失败的问题
- Node.js在Chrome进行调试
- 邂逅51cto
- 死锁
- 白话篇:零姿势实现排序二叉树的建立与查找
- tomcat(19)Manager应用程序的servlet类
- 生产者—消费者模式的两种同步实现
- javascript:算法之斐波那契数列
- linux常用命令之文件权限
- 解析json图片
- linux常用命令之文件权限