?? 以上分享 ElasticSearch 安裝部署,如有問(wèn)題請(qǐng)指教寫(xiě)。
???? 如你對(duì)技術(shù)也感興趣,歡迎交流。
?????? 如有需要,請(qǐng)??點(diǎn)贊??收藏?????分享
linux 配置 elastictsearch集群
?詳解 ElasticSearch Kibana 配置部署_PJ碼匠人的博客-CSDN博客Elasticsearch 安裝,配置文件參數(shù)修改,錯(cuò)誤修復(fù),用戶(hù)驗(yàn)證,kibana安裝配置,參數(shù)設(shè)置https://meyan.blog.csdn.net/article/details/132580977
windows ?配置 elastictsearch集群
鏈接:https://pan.baidu.com/s/1V7jxVhUFvsINrH7zz9Laeg?pwd=n9cx?
提取碼:n9cx?
配置節(jié)點(diǎn)9201?
配置文件?
# ======================== Elasticsearch Configuration =========================
# ---------------------------------- Cluster -----------------------------------
#
# 集群名(集群中的節(jié)點(diǎn)通過(guò)節(jié)點(diǎn)名確認(rèn)同一集群)
cluster.name: elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
# 節(jié)點(diǎn)名
node.name: node-9201
# 節(jié)點(diǎn)是否可做主節(jié)點(diǎn)
node.master: true
# 節(jié)點(diǎn)是否可做數(shù)據(jù)節(jié)點(diǎn)
node.data: true
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
# 數(shù)據(jù)地址
path.data: E:\elasticsearch7_cluster/data
#
# Path to log files:
#日志保存地址
path.logs: E:\elasticsearch7_cluster/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
# 是否需要在服務(wù)啟動(dòng)時(shí)鎖定內(nèi)存
#bootstrap.memory_lock: true
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
#設(shè)定綁定地址
network.host: localhost
#
# Set a custom port for HTTP:
#設(shè)置客戶(hù)端端口
http.port: 9201
# 集群間交互端口
transport.tcp.port: 9301
# --------------------------------- Discovery ----------------------------------
#
# The default list of hosts is ["127.0.0.1", "[::1]"]
#設(shè)置初始對(duì)外訪問(wèn)地址默認(rèn) ["127.0.0.1", "[::1]"]
#discovery.seed_hosts: ["host1", "host2"]
#
#設(shè)置初始化主節(jié)點(diǎn)
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#設(shè)置服務(wù)節(jié)點(diǎn)數(shù)啟動(dòng)后才啟動(dòng)
#gateway.recover_after_nodes: 3
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
# 跨域設(shè)置
http.cors.enabled: true
http.cors.allow-origin: "*"
啟動(dòng)服務(wù)
錯(cuò)誤?
?解決方法
將配置文件用utf8格式另存然后覆蓋當(dāng)前配置文件即可
啟動(dòng)成功?
?查看集群健康狀態(tài)
配置節(jié)點(diǎn)9202
?配置文件
# ======================== Elasticsearch Configuration =========================
# ---------------------------------- Cluster -----------------------------------
#
#
cluster.name: elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
#
node.name: node-9202
node.master: true
node.data: true
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
#
#bootstrap.memory_lock: true
#
#
# ---------------------------------- Network -----------------------------------
#
#
network.host: localhost
#
http.port: 9202
transport.tcp.port: 9302
# 發(fā)現(xiàn)主節(jié)點(diǎn)
discovery.seed_hosts: ["localhost:9301"]
# 超時(shí)時(shí)間 一分鐘
discovery.zen.fd.ping_timeout: 1m
# 重試次數(shù)
discovery.zen.fd.ping_retries: 5
#
#
# --------------------------------- Discovery ----------------------------------
#
#discovery.seed_hosts: ["host1", "host2"]
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# ---------------------------------- Gateway -----------------------------------
#
#gateway.recover_after_nodes: 3
#
# ---------------------------------- Various -----------------------------------
#
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
啟動(dòng)9202
?
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-723721.html
配置節(jié)點(diǎn)9203?
配置文件?
# ======================== Elasticsearch Configuration =========================
# ---------------------------------- Cluster -----------------------------------
#
#
cluster.name: elasticsearch
#
# ------------------------------------ Node ------------------------------------
#
#
node.name: node-9203
node.master: true
node.data: true
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
#
#bootstrap.memory_lock: true
#
#
# ---------------------------------- Network -----------------------------------
#
#
network.host: localhost
#
http.port: 9203
transport.tcp.port: 9303
#
#
# --------------------------------- Discovery ----------------------------------
#
# 節(jié)點(diǎn)發(fā)現(xiàn)
discovery.seed_hosts: ["localhost:9301","localhost:9302"]
# 超時(shí)時(shí)間 一分鐘
discovery.zen.fd.ping_timeout: 1m
# 重試次數(shù)
discovery.zen.fd.ping_retries: 5
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# ---------------------------------- Gateway -----------------------------------
#
#gateway.recover_after_nodes: 3
#
# ---------------------------------- Various -----------------------------------
#
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"
?啟動(dòng)9203
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-723721.html
到了這里,關(guān)于從入門(mén)到進(jìn)階 之 ElasticSearch 節(jié)點(diǎn)配置 集群篇的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!