Centos7安装ElasticSearch6.4
本文主要是记录在Centos7下安装ElasticSearch集群及管理工具Cerebro的流程。
节点准备
节点IP | 角色 | ES节点名称 |
---|---|---|
192.168.1.10 | master | node1 |
192.168.1.11 | data | node2 |
1.下载ES安装包
cd /opt
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.tar.gz
tar -zxvf elasticsearch-6.4.0.tar.gz
2. 添加普通用户
groupadd elsearch
useradd elsearch -g elsearch -p elasticsearch
chown -R elsearch.elsearch /opt/elasticsearch-6.4.0/
3. 修改ES配置(两个节点分别配置)
# vim config/elasticsearch.ymlcluster.name: es## 节点node1
node.name: node1
node.master: true
network.host: 192.168.1.10## 节点node2
#node.name: node2
#node.master: false
#network.host: 192.168.1.11node.data: true
path.data: /opt/elasticsearch-6.4.0/data
path.logs: /opt/elasticsearch-6.4.0/logs
transport.tcp.port: 9300
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.1.10:9300","192.168.1.11:9300"]
4.修改系统参数
# vim /etc/security/limits.conf
elsearch hard nofile 655360
elsearch soft nofile 655360# vim /etc/sysctl.conf
vm.max_map_count=655360
# sysctl -p
5.添加ES到Supervisor
# vim /etc/supervisor.d/es.ini
[supervisord]
minfds=65536
minprocs=32768[program:es-node]
command = /opt/elasticsearch-6.4.0/bin/elasticsearch
directory = /opt/elasticsearch-6.4.0
user = elsearch
startsecs = 3
redirect_stderr = true
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 10
stdout_logfile = /opt/elasticsearch-6.4.0/logs/supervisor.log
6.通过Supervisor启动ES服务
# 两个节点分别启动
supervisorctl reread
supervisorctl add es-node
# supervisorctl start es-node
supervisorctl status
7.浏览器访问ES
8.下载cerebro管理资源包(假设安装在192.168.1.10)
cd /opt
wget https://github.com/lmenezes/cerebro/releases/download/v0.8.1/cerebro-0.8.1.tgz
tar -zxf cerebro-0.8.1.tgz
chown -R elsearch.elsearch /opt/cerebro-0.8.1
9.配置cerebro
# vim conf/application.conf
hosts = [{host = "http://192.168.1.10:9200"name = "Default ES Cluster"
# auth = {# username = "xx_admin"
# password = "xx_pwd"
# }},}
10.添加cerebro配置到Supervisor
[program:cerebro-node]
command = /opt/cerebro-0.8.1/bin/cerebro -Dhttp.port=12345 -Dhttp.address=192.168.1.10
directory = /opt/cerebro-0.8.1/
user = elsearch
startsecs = 3redirect_stderr = true
stdout_logfile_maxbytes = 100MB
stdout_logfile_backups = 10
stdout_logfile = /opt/cerebro-0.8.1/logs/supervisor.log
11.通过Supervisor启动cerebro
supervisorctl reread
supervisorctl add cerebro-node
# supervisorctl start cerebro-node
supervisorctl status
12.浏览器访问cerebro
进入其首页后,直接选择Default ES Cluster
选项即可进入控制台。
Centos7安装ElasticSearch6.4相关推荐
- ELK之centos7安装 elasticsearch6.5遇到的坑
完成演示 遇到的坑 https://hacpai.com/article/1535987429686
- Centos7.4 安装elasticsearch6.1.3集群部署
Centos7.4 安装elasticsearch6.1.3集群部署 安装elasticsearch 1.依赖环境安装 这里使用的java 是1.8.0_77的版本.使用的是rpm 安装包的形式进行部 ...
- Centos7上安装 elasticsearch-6.2.2及相关插件
原文地址 elasticsearch是一个开源的搜索服务器,提供了一个分布式多用户能力的全文搜索引擎,下面是我的安装笔记 准备工作 java版本 jdk版本必须是1.8及1.8以上 [root@loc ...
- centos7 nginx配置php7,centos7安装并配置nginx+php,centos7nginx
centos7安装并配置nginx+php,centos7nginx centos7安装并配置nginx+php 安装nginx yum install nginx 设置nginx开启起动 syste ...
- centos7安装配置pgAgent
centos7安装pgagent: 默认cmake已经安装 编译wxGTK https://excellmedia.dl.sourceforge.net/project/wxwindows/2.8.7 ...
- centos7 安装mysql php_Centos7安装mysql与php的方法
本文主要和大家分享Centos7安装mysql与php的方法,希望能帮助到大家. 相关mysql视频教程推荐:<mysql教程> 官网下载安装mysql-server 依次使用下面三个命令 ...
- Windows下安装ElasticSearch6.3.1以及Head插件
2019独角兽企业重金招聘Python工程师标准>>> es5以上版本安装head需要安装node和grunt(之前的直接用plugin命令即可安装) 安装ElasticSearch ...
- Centos7安装Apache和PHP,包含配置过程
本文主要讲的是本人在迁移php网站相关软件的安装和配置过程,以及一下问题的解决步骤.通过阅读本文能够知道如何迁移php网站,如何配置httpd服务使得它能够解析php文件以及如何解决迁移过程中的异常问 ...
- LINUX CentOS7安装字体库
LINUX CentOS7安装字体库 2017年12月26日 17:06:07 q260996583 阅读数:4866更多 个人分类: linux JAVA画图时常用到Font 类对象 这样的对象依赖 ...
最新文章
- R操作MySQL数据库创建表、删除表、增删改查(CRUD)
- 【Linux】解决Linux服务器内存不足问题
- python五十七:str与repr,类似于 java对象中的tostring()方法
- 1087 All Roads Lead to Rome (30 分)【难度: 一般 / Dijkstra】
- JPA的entityManager的find、getReference、persisit、remove方法的使用
- IBASE component deletion
- 台式计算机单核与双核,什么是单核cpu、双核cpu 单核cpu和双核cpu的区别是什么...
- msg_p!=(void*) 0 --消息邮箱(点滴学习)
- 编写一个watchdog.sh脚本_拍摄Vlog,如何构思和编写脚本?
- python tkinter界面 控件位置随窗体自动调整适应_如何实现python tkinter控件随窗口变化?...
- 用语言控制Linux:Linux的语音识别软件
- Spring中定义Bean的6种方式(声明式+编程式)
- SECS/GEM Driver开发使用,带例子
- 计算机密码的怎么查询,电脑密码如何查看? 手把手教你查看方法
- 玩转Kaggle:Dog Breed Identification【识别狗的类别】
- 关于微信小程序进行数据统计以及分析问题
- vs code修改代码后再次运行,报错:file“<stdin>“,line 1
- 软件项目管理MOOC(北邮)——第一章测试答案
- set feedback on
- 股票交易数据接口API 接口说明