Elasticsearch + Elasticsearch-head搭建
Elasticsearch搭建:
[root@hdoop3 elk]# tar -xvf elasticsearch-6.2.4.tar
[root@hdoop3 elk]# cd elasticsearch-6.2.4
[root@hdoop3 elasticsearch-6.2.4]# mkdir es-data
[root@hdoop3 elk]# useradd elasticsearch
[root@hdoop3 elk]# passwd elasticsearch
[root@hdoop3 elk]# chown -R elasticsearch:elasticsearch elasticsearch-6.2.4
[root@hdoop3 config]# cd /home/software/elk/elasticsearch-6.2.4/config
[root@hdoop3 config]# cp elasticsearch.yml elasticsearch.yml_install
[root@hdoop3 config]# vim elasticsearch.yml
cluster.name: the-test #集群名称
node.attr.rack: elk-1 #节点名称
path.data: /home/elk/elasticsearch-6.2.4/es-data #data存放的路径
path.logs: /home/elk/elasticsearch-6.2.4/logs #logs存放的路径
network.host: 0.0.0.0 #监听的网络地址
http.port: 9200 #开启监听的端口
http.cors.enabled: true #增加新的参数,这样head插件可以访问es
http.cors.allow-origin: "*" #增加新的参数,这样head插件可以访问es
bootstrap.memory_lock: false #配置内存使用用交换分区
bootstrap.system_call_filter: false
[root@hdoop3 config]# vim jvm.options
-Xms4g #更改jvm启动使用内存
-Xmx4g
[root@hdoop3 elk]# vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
[root@localhost home]# vim /etc/sysctl.conf
vm.max_map_count=655360
[root@hdoop3 elasticsearch-6.2.4]# sysctl –p
此时要重新登录一下终端,要不然有的配置不会生效
[root@hdoop3 elasticsearch-6.2.4]# rm -rf /home/software/elk/elasticsearch-6.2.4/logs/*
#删除一下日志,然后切换用户启动,避免日志写入权限报错
[root@hdoop3 ~]# su – elasticsearch
[elasticsearch@hdoop3 ~]$ cd /home/software/elk/elasticsearch-6.2.4/
[elasticsearch@hdoop3 elasticsearch-6.2.4]$ bin/elasticsearch -d
Elasticsearch-head安装:
[root@hdoop3 elk]# wget https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz
[root@hdoop3 elk]# tar -xvf node-v10.13.0-linux-x64.tar.xz
[root@hdoop3 node-v10.13.0-linux-x64]# vim /etc/profile
#node
export PATH=$PATH:/home/software/elk/node-v10.13.0-linux-x64/bin
[root@hdoop3 node-v10.13.0-linux-x64]# source /etc/profile
[root@hdoop3 node-v10.13.0-linux-x64]# node -v
v10.13.0
[root@hdoop3 node-v10.13.0-linux-x64]# npm -v
6.4.1
Elasticsearch-head搭建:
[root@hdoop3 elasticsearch-6.2.4]# cd /home/software/elk/elasticsearch-6.2.4
[root@hdoop3 elasticsearch-6.2.4]# git clone git://github.com/mobz/elasticsearch-head.git
[root@hdoop3 elasticsearch-head]# npm install
出现类似报错:
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
[root@hdoop3 elasticsearch-head]# npm cache clean --force
[root@hdoop3 elasticsearch-head]# npm -g install phantomjs-prebuilt@2.1.16 --ignore-script
[root@hdoop3 elasticsearch-head]# npm start &
Elasticsearch + Elasticsearch-head搭建的更多相关文章
- 使用logstash+elasticsearch+kibana快速搭建日志平台
日志的分析和监控在系统开发中占非常重要的地位,系统越复杂,日志的分析和监控就越重要,常见的需求有: * 根据关键字查询日志详情 * 监控系统的运行状况 * 统计分析,比如接口的调用次数.执行时间.成功 ...
- elasticsearch集群搭建实例
elasticsearch集群搭建实例 下个月又开始搞搜索了,几个月没动这块还好没有落下. 晚上在自己虚拟机上搭建了一个简易搜索集群,分享一下. 操作系统环境: Red Hat 4.8.2-16 el ...
- logstash+elasticsearch+kibana快速搭建日志平台
使用logstash+elasticsearch+kibana快速搭建日志平台 日志的分析和监控在系统开发中占非常重要的地位,系统越复杂,日志的分析和监控就越重要,常见的需求有: 根据关键字查询日 ...
- Centos6.5使用ELK(Elasticsearch + Logstash + Kibana) 搭建日志集中分析平台实践
Centos6.5安装Logstash ELK stack 日志管理系统 概述: 日志主要包括系统日志.应用程序日志和安全日志.系统运维和开发人员可以通过日志了解服务器软硬件信息.检查配置过程中的 ...
- 和我一起打造个简单搜索之ElasticSearch集群搭建
我们所常见的电商搜索如京东,搜索页面都会提供各种各样的筛选条件,比如品牌.尺寸.适用季节.价格区间等,同时提供排序,比如价格排序,信誉排序,销量排序等,方便了用户去找到自己心里理想的商品. 站内搜索对 ...
- Elasticsearch + Logstash + Kibana 搭建教程
# ELK:Elasticsearch + Logstash + Kibana 搭建教程 Shipper:日志收集者.负责监控本地日志文件的变化,及时把日志文件的最新内容收集起来,输出到Redis暂存 ...
- CentOS 7下ElasticSearch集群搭建案例
最近在网上看到很多ElasticSearch集群的搭建方法,本人在这人使用Elasticsearch5.0.1版本,介绍如何搭建ElasticSearch集群并安装head插件和其他插件安装方法. 一 ...
- 用ElasticSearch,LogStash,Kibana搭建实时日志收集系统
用ElasticSearch,LogStash,Kibana搭建实时日志收集系统 介绍 这套系统,logstash负责收集处理日志文件内容存储到elasticsearch搜索引擎数据库中.kibana ...
- 【转载】使用logstash+elasticsearch+kibana快速搭建日志平台
原文链接:http://www.cnblogs.com/buzzlight/p/logstash_elasticsearch_kibana_log.html 日志的分析和监控在系统开发中占非常重要的地 ...
- Elasticsearch+Logstash+Kibana搭建日志平台
1 ELK简介 ELK是Elasticsearch+Logstash+Kibana的简称 ElasticSearch是一个基于Lucene的分布式全文搜索引擎,提供 RESTful API进行数据读写 ...
随机推荐
- 撩课-Java每天5道面试题第14天
101.请解释下 ORM? 对象关系映射(Object Relational Mapping)模式 是一种为了解决面向对象与关系数据库 存在的互不匹配的现象的技术. 简单来说, ORM是通过使用描述对 ...
- gRPC的简单Go例子
gRPC是一个高性能.通用的开源RPC框架,其由Google主要面向移动应用开发并基于HTTP/2协议标准而设计,基于ProtoBuf(Protocol Buffers)序列化协议开发,且支持众多开发 ...
- HTML——基本html标签
基本html标签 <html> ... </html> 定义HTML文档 <head> ... </head> 文档的信息 <meta /&g ...
- BZOJ4598: [Sdoi2016]模式字符串(点分治 hash)
题意 题目链接 Sol 直接考虑点分治+hash匹配 设\(up[i]\)表示\(dep \% M = i\)的从下往上恰好与前\(i\)位匹配的个数 \(down\)表示\(dep \% M = i ...
- HTML 5 教程
HTML5 是下一代的 HTML.有必要再过一遍.看下要点. 具体看 http://www.w3school.com.cn/html5/index.asp 教程 和 HTML5 标签参考手册 ...
- How to save rules of the iptables?
The easy way is to use iptables-persistent. Install iptables-persistent: sudo apt-get install iptabl ...
- IOS xcode安装
xcode软件下载地址: 可以通过虚拟机共享文件夹将xcode传递给虚拟机上的os系统: 第一个程序创建:
- 如何在 Azure 虚拟机里配置条带化
什么是条带化(striping) 条带 (strip) 是把连续的数据分割成相同大小的数据块,把每段数据分别写入到阵列中的不同磁盘上的方法.简单的说,条带是一种将多个磁盘驱动器合并为一个卷的方法. 许 ...
- 多个 Word 文档合并为一个
如果您工作中经常要跟 Word 文档打交道,时不时的您可能需要将多个 Word 文档合并为一个.信息量少的时候,我们可以直接使用复制粘贴.除此之外,还有没有其它办法呢? 借助word2010/2007 ...
- [翻译] ATTutorialController
ATTutorialController https://github.com/AfonsoTsukamoto/ATTutorialController A simple to use tutoria ...