第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Centos7.5快速安裝ElasticSearch6.4

標(biāo)簽:
Linux 大數(shù)據(jù)

本文主要是记录在Centos7.5下安装ElasticSearch6.4集群及管理工具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.yml

cluster.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.11

node.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   = 3

redirect_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

图片描述

點(diǎn)擊查看更多內(nèi)容
2人點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消