国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3

這篇具有很好參考價值的文章主要介紹了CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一、官網(wǎng)下載elasticsearch-8.5.3和kibana-8.5.3 linux下的安裝包

注意:安裝前要確定系統(tǒng)安裝了JDK8環(huán)境

官網(wǎng)下載地址:https://www.elastic.co/cn/downloads/?elektra=home&storm=hero

CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔

二、安裝elasticseatch

2.1 將壓下載的壓縮包上傳到linux系統(tǒng)的 /opt 目錄下
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔
2.2 在 /opt 目錄下創(chuàng)建soft目錄并解壓 elasticsearch

下面我將 elasticsearch 簡稱為 es 哈

#創(chuàng)建soft目錄
mkdir soft

#解壓elasticsearch-8.5.3-linux-x86_64.tar.gz
tar -zxvf elasticsearch-8.5.3-linux-x86_64.tar.gz

#解壓的es目錄移動到 soft 目錄下
mv elasticsearch-8.5.3  soft/
2.3 在es目錄下創(chuàng)建 數(shù)據(jù)目錄 data 和日志目錄 logs
#切換到es目錄下
cd /opt/soft/elasticsearch-8.5.3

#新建data和logs目錄
mkdir data
mkdir logs
2.4 因為es不允許用root用戶啟動,所以創(chuàng)建用戶es
#創(chuàng)建用戶組與用戶
groupadd es
useradd es -g es -p es

#給es目錄授權(quán)
chown -R es:es /opt/soft/elasticsearch-8.5.3/
2.5 修改用戶資源限制
vim /etc/security/limits.conf

添加以下內(nèi)容

* hard nofile 65536
* soft nofile 131072
* hard nproc 4096
* soft nproc 4096
2.6 修改系統(tǒng)配置
vim /etc/sysctl.conf

添加

fs.file-max=655360
vm.max_map_count=655360
2.7 使以上修改生效
/sbin/sysctl -p
2.8 修改 config/elasticsearch.yml 文件

配置如下

我虛擬機中三個centos系統(tǒng)IP是:192.168.29.188 , 192.168.29.189 , 192.168.29.190;你們根據(jù)自己系統(tǒng)IP修改哈

#集群名稱
cluster.name: my-app
#節(jié)點名稱
node.name: node-1
#節(jié)點角色
node.roles: [master,data]
path.data: /opt/soft/elasticsearch-8.5.3/data
path.logs: /opt/soft/elasticsearch-8.5.3/logs
#綁定的IP
network.host: 192.168.29.188
#暴露的http端口
http.port: 9200
#使用head等插件監(jiān)控集群信息,需要打開以下配置項
http.cors.allow-origin: "*"
http.cors.enabled: true
http.max_content_length: 200mb
#集群成員
discovery.seed_hosts: ["192.168.29.188:9300","192.168.29.189:9300","192.168.29.190:9300"]
cluster.initial_master_nodes: ["node-1"]

# 注意這里改成false
xpack.security.enabled: false

xpack.security.enrollment.enabled: true

# 注意這里改成false
xpack.security.http.ssl:
  enabled: false
  keystore.path: certs/http.p12

# 注意這里改成false
xpack.security.transport.ssl:
  enabled: false
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12

完整配置如下

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-app
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
node.roles: [master,data]
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /opt/soft/elasticsearch-8.5.3/data
#
# Path to log files:
#
path.logs: /opt/soft/elasticsearch-8.5.3/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 192.168.29.188
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200

http.cors.allow-origin: "*"
http.cors.enabled: true
http.max_content_length: 200mb
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.29.188:9300","192.168.29.189:9300","192.168.29.190:9300"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically      
# generated to configure Elasticsearch security features on 12-01-2023 02:34:39
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: false

xpack.security.enrollment.enabled: true
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: false
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: false
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
#----------------------- END SECURITY AUTO CONFIGURATION ------------------------
2.9 修改es目錄下config目錄下的jvm.options 文件
-Xms512m
-Xmx512m
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔
2.10 啟動es

切換到es用戶

su es

進入es目錄下bin目錄下執(zhí)行指令

./elasticsearch -d

瀏覽器訪問 IP:9200

CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔

訪問成功

2.11 關(guān)閉es
ps -ef | grep elasticsearch
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔
kill -9 1823

三、搭建另外兩個es節(jié)點

3.1將centos系統(tǒng)一下es目錄復(fù)制到centos系統(tǒng)二和三

scp -r  /opt/soft/elasticsearch-8.5.3 root@192.168.29.189:/opt/soft/elasticsearch-8.5.3

scp -r  /opt/soft/elasticsearch-8.5.3 root@192.168.29.190:/opt/soft/elasticsearch-8.5.3
3.2 在centos系統(tǒng)二和三重復(fù)2.4 2.5 2.6 2.7 步驟
3.3 修改centos系統(tǒng)二和三的config/elasticsearch.yml 文件

只需修改以下部分

node.name: node-2
network.host: 192.168.29.189

節(jié)點三亦是如此

node.name: node-3
network.host: 192.168.29.190
3.4 查看集群節(jié)點數(shù)

啟動系統(tǒng)二三的es

瀏覽輸入(換成你的IP):http://192.168.29.188:9200/_cat/nodes

CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔

瀏覽器顯示三個節(jié)點

四、安裝Kibana-8.5.3

4.1 安裝kibana

解壓壓縮包

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

移動到 /opt/soft 目錄下

mv kibana-8.5.3  soft/

授權(quán)

chown -R es:es kibana-8.5.3/

切換到es用戶

su es

修改 kibana-8.5.3 目錄下 config 目錄下 kibana.yml 文件

server.port: 5601

server.host: "192.168.29.188"

elasticsearch.hosts: ["http://192.168.29.188:9200","http://192.168.29.189:9200","http://192.168.29.190:9200"]

i18n.locale: "zh-CN"

進入kibana目錄,啟動kibana

nohup ./bin/kibana > kibana.log 2>&1 &
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔

瀏覽器輸入:http://192.168.29.188:5601/

CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔

看到如上界面,即安裝啟動成功文章來源地址http://www.zghlxwxcb.cn/news/detail-661290.html

4.2 殺死kibana進程
netstat -tunlp | grep 5601
CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3,中間件,elasticsearch,Powered by 金山文檔
#1953是進程號  看上截圖
kill -9 1953

到了這里,關(guān)于CentOS7安裝elasticsearch-8.5.3集群、kibana-8.5.3的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Centos7安裝Elasticsearch6.4.3和Kibana6.4.3

    Centos7安裝Elasticsearch6.4.3和Kibana6.4.3

    一、下載好安裝文件上傳到/usr/local 二、安裝Java環(huán)境 1)、解壓jdk 2)、 配置Java環(huán)境變量 3)、profile末尾添加 4)、刷新配置文件 5)、檢查是否安裝成功 三、安裝Elasticsearch 1)、解壓安裝包 2)、修改啟動時默認(rèn)Jvm參數(shù),默認(rèn)是1G,根據(jù)自己需求自行修改 我虛擬機內(nèi)存不夠改

    2023年04月22日
    瀏覽(23)
  • 使用Docker安裝ELK(Elasticsearch+Logstash+Kibana)+filebeat____基于CentOS7.9

    使用Docker安裝ELK(Elasticsearch+Logstash+Kibana)+filebeat____基于CentOS7.9

    目錄 一、安裝JDK 二、部署Elasticsearch 三、部署kibana 四、部署Logstash 五、部署filebeat 六、filebeat采集數(shù)據(jù),logstash過濾,在kibana中顯示 七、kibana增加索引 1、更新系統(tǒng) 2、安裝Java 下面是安裝OpenJDK的命令: 3、驗證安裝 1、查看是否安裝docker 安裝最新版的docker可能導(dǎo)致部分系統(tǒng)不

    2024年02月04日
    瀏覽(27)
  • 最新Elasticsearch8.4.3 + Kibana8.4.3在云服務(wù)器Centos7.9安裝部署(參考官方文檔)

    最新Elasticsearch8.4.3 + Kibana8.4.3在云服務(wù)器Centos7.9安裝部署(參考官方文檔)

    ??最近筆者學(xué)習(xí)Elasticsearch,官方最新穩(wěn)定版為 Elasticsearch-8.4.3,想在云服務(wù)器上Centos7.9搭建。搭建之路坑多路少啊(指網(wǎng)上的博文教程五花八門,基本都是ES7版本居多,ES8有少數(shù),各種配置參數(shù)一頭霧水,細節(jié)不多說,照搬了踩坑跌得頭破血流),對小菜的我來說,簡直要

    2024年02月02日
    瀏覽(34)
  • CentOS7下安裝ElasticSearch7.6.1詳細教程(單機、集群搭建)

    CentOS7下安裝ElasticSearch7.6.1詳細教程(單機、集群搭建)

    CentOS 7下安裝ElasticSearch7.6.1詳細教程 ElasticSearch客戶端Kibana7.6.1安裝教程 ElasticSearch分詞器IK安裝教程 Elasticsearch-head插件安裝教程 想要學(xué)習(xí)ElasticSearch技術(shù),需要在服務(wù)器搭建ElasticSearch環(huán)境。 CenOS:7; JDK:1.8; Elasticsearch:7.6.1; ES不能使用root用戶來啟動,必須使用普通用戶來

    2023年04月09日
    瀏覽(22)
  • CentOS7搭建Elasticsearch與Kibana服務(wù)

    CentOS7搭建Elasticsearch與Kibana服務(wù)

    因為我們還需要部署kibana容器,因此需要讓es和kibana容器互聯(lián)。這里先創(chuàng)建一個網(wǎng)絡(luò): ?運行docker命令,部署單點es: 命令解釋: -e \\\"cluster.name=es-docker-cluster\\\" :設(shè)置集群名稱 -e \\\"http.host=0.0.0.0\\\" :監(jiān)聽的地址,可以外網(wǎng)訪問 -e \\\"ES_JAVA_OPTS=-Xms512m -Xmx512m\\\" :內(nèi)存大小 -e \\\"discovery.ty

    2024年02月03日
    瀏覽(26)
  • Elasticsearch-7.8.0安裝最全(mac、Linux、window、centos7.5集群、docker)

    第一章 Elasticsearch-7.8.0單機安裝 第二章 Elasticsearch-7.8.0集群基于Centos7 第三章 Elasticsearch-7.8.0通過Docker方式安裝 Elasticsearch安裝單機、Kibana安裝單機 適用于mac、window、linux單機測試 1.1.1 安裝包下載 下載地址:https://www.elastic.co/downloads/past-releases#elasticsearch 1.1.2 解壓安裝ElasticSea

    2024年04月09日
    瀏覽(27)
  • centos7 搭建ELK(elasticsearch、logstash、kibana)

    centos7 搭建ELK(elasticsearch、logstash、kibana)

    1、下載安裝包 使用華為鏡像站下載速度很快,華為鏡像站: https://mirrors.huaweicloud.com/home ,下載時需要保證版本一致 2、安裝elasticsearch 解壓到當(dāng)前目錄 安裝,將Elasticsearch移動到/opt目錄之中 創(chuàng)建Elasticsearch用戶 es 規(guī)定 root 用戶不能啟動 es,所以需要新建一個其他用戶來啟動

    2024年02月13日
    瀏覽(59)
  • 中間件: ElasticSearch的安裝與部署

    文檔地址: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html 創(chuàng)建用戶: 系統(tǒng)參數(shù)配置: 方式一:YUM安裝 方式二: 配置 啟動 (1)修改配置elasticsearch.yml: cluster.name # 一個集群內(nèi)cluster name 需要相同 node.name # 各個節(jié)點node name 唯一 discovery.seed_hosts # network.host node.mast

    2024年02月12日
    瀏覽(19)
  • Elasticsearch 8.3集群部署(centos7)實戰(zhàn)

    Elasticsearch 8.3集群部署(centos7)實戰(zhàn)

    【提示】elasticsearch7以上的版本壓縮包內(nèi)自帶JDK 本地安裝 下載elasticsearch 的rpm包,然后 使用 rpm -ivh elasticsearch #這個命令安裝,名字不全# systemctl daemon-reload # 重新加載某個服務(wù)的配置文件,如果新安裝了一個服務(wù),歸屬于 systemctl 管理,要是新服務(wù)的服務(wù)程序配置文件生效,

    2023年04月15日
    瀏覽(27)
  • Centos7快速安裝Kibana并連接ES使用

    Centos7快速安裝Kibana并連接ES使用

    Elasticsearch 提供了一個名為 Kibana 的官方可視化界面。Kibana 是一個開源的數(shù)據(jù)可視化和管理工具,用于 Elasticsearch。它提供了豐富的功能,如儀表板、圖表、地圖等,幫助您更好地理解、搜索和可視化存儲在 Elasticsearch 中的數(shù)據(jù)。 創(chuàng)建 Kibana 的存儲庫文件 /etc/yum.repos.d/kibana.r

    2024年02月05日
    瀏覽(30)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包