自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

一篇帶給你ElasticSearch集群部署

開發(fā) 架構(gòu)
本篇文章帶給大家ElasticSearch集群部署的相關(guān)知識(shí),希望對(duì)你有所幫助!

ElasticSearch集群部署

下載

安裝包下載地址

https://www.elastic.co/cn/downloads/elasticsearch

上傳到服務(wù)器/usr/elastic目錄

解壓

cd /usr/elastic
tar -zxvf elasticsearch-7.17.0-linux-x86_64.tar.gz

修改jdk環(huán)境變量

使用安裝包自帶的jdk,防止使用本機(jī)安裝的jdk版本不兼容導(dǎo)致無法啟動(dòng)

cd /usr/elastic/elasticsearch-7.17.0/bin
vim elasticsearch-env

增加配置節(jié),指定使用安裝包中自帶的jdk

JAVA_HOME="/usr/elastic/elasticsearch-7.17.0/jdk"

修改jvm.options

-Xms1g
-Xmx1g
8-13:-XX:+UseG1GC

配置集群信息

cd /usr/elastic/elasticsearch-7.17.0/config
vim elasticsearch.yml

配置信息每個(gè)節(jié)點(diǎn)只有node.name不同

#集群名字
cluster.name: my-application
#節(jié)點(diǎn)名字
node.name: node-1
#IP地址
network.host: 0.0.0.0
#端口號(hào)
http.port: 9200
#是否有資格當(dāng)主節(jié)點(diǎn)
node.master: true
#是否存儲(chǔ)數(shù)據(jù)
node.data: true
#節(jié)點(diǎn)發(fā)現(xiàn),所有節(jié)點(diǎn)的ip地址
discovery.seed_hosts: ["192.168.32.132", "192.168.32.133","192.168.32.136"]
#選舉master
cluster.initial_master_nodes: ["node-1", "node-2", "node-3"]
#允許跨域訪問
http.cors.enabled: true
http.cors.allow-origin: "*"

配置ES環(huán)境變量

vim /etc/profile

增加

export ES_HOME=/usr/elastic/elasticsearch-7.17.0
export PATH=$ES_HOME/bin:$PATH

使配置文件生效

source /etc/profile

配置es可以創(chuàng)建的最大線程數(shù)量

vim /etc/security/limits.conf

增加

es soft nofile 65535
es hard nofile 65535
es soft nproc 4096
es hard nproc 4096

修改最大虛擬內(nèi)存

vim /etc//sysctl.conf

增加

vm.max_map_count = 655360

執(zhí)行加載虛擬內(nèi)存

sysctl -p

root用戶無法啟動(dòng)es,所以創(chuàng)建用戶

useradd es
passwd es

修改文件夾權(quán)限給es用戶

chown -Rf es:es /usr/elastic/ elasticsearch-7.17.0

暫時(shí)關(guān)閉防火墻

systemctl stop firewalld

訪問

訪問192.168.32.133:9200

返回如下json表示成功

Kibana安裝

下載地址

https://www.elastic.co/cn/downloads/kibana

下載與elasticsearch相同版本號(hào)的安裝包

上傳到/usr/elastic

解壓

tar -zxvf kibana-7.17.0-linux-x86_64.tar.gz

修改配置kibana.yml

server.port: 5601
server.host: "0.0.0.0"
server.name: "kibana"
elasticsearch.hosts: ["http://192.168.32.132:9200", "http://192.168.32.132:9200","http://192.168.32.136:9200"]

啟動(dòng)kibana

cd /usr/elastic/kibana-7.17.0-linux-x86_64/bin
./kibana --allow-root

訪問地址

http://192.168.32.132:5601/

責(zé)任編輯:姜華 來源: 今日頭條
相關(guān)推薦

2021-01-28 08:55:48

Elasticsear數(shù)據(jù)庫數(shù)據(jù)存儲(chǔ)

2021-01-26 06:58:03

AnsibleCeph集群運(yùn)維

2021-04-23 08:59:35

ClickHouse集群搭建數(shù)據(jù)庫

2021-07-12 06:11:14

SkyWalking 儀表板UI篇

2023-07-06 08:22:49

SonarQubeToken

2021-07-21 09:48:20

etcd-wal模塊解析數(shù)據(jù)庫

2021-04-08 11:00:56

CountDownLaJava進(jìn)階開發(fā)

2021-06-21 14:36:46

Vite 前端工程化工具

2021-04-01 10:51:55

MySQL鎖機(jī)制數(shù)據(jù)庫

2021-04-14 14:16:58

HttpHttp協(xié)議網(wǎng)絡(luò)協(xié)議

2022-04-29 14:38:49

class文件結(jié)構(gòu)分析

2023-03-29 07:45:58

VS編輯區(qū)編程工具

2021-03-12 09:21:31

MySQL數(shù)據(jù)庫邏輯架構(gòu)

2024-06-13 08:34:48

2022-03-22 09:09:17

HookReact前端

2021-04-14 07:55:45

Swift 協(xié)議Protocol

2022-02-25 15:50:05

OpenHarmonToggle組件鴻蒙

2021-07-08 07:30:13

Webpack 前端Tree shakin

2023-03-13 09:31:04

2021-10-28 08:51:53

GPIO軟件框架 Linux
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)