1.3 計劃采取措施
生產環境預備的是:
cd elasticsearch
export JAVA_HOME=/home/shsnc/snc_product/elasticsearch/jdk ##修改JDK的環境變量
./bin/elasticsearch-certutil ca ##一直回車即可
./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12 ##一直回車即可
mv elastic-certificates.p12 ./config/ ##將證書文件放置到node0指定路徑
mv elastic-stack-ca.p12 ./config/ ##將證書文件放置到node0指定路徑
scp elastic-certificates.p12 elastic-stack-ca.p12 192.168.XXX.178:/home/shsnc/snc_product/elasticsearch/config/ ##將證書文件放置到node1指定路徑
scp elastic-certificates.p12 elastic-stack-ca.p12 192.168.XXX.179:/home/shsnc/snc_product/elasticsearch/config/ ##將證書文件放置到node2指定路徑
./bin/x-pack-env ##執行環境變量
./bin/x-pack-security-env ##執行環境變量
./bin/elasticsearch-setup-passwords interactive ##手動配置每個用戶密碼
export JAVA_HOME=/home/shsnc/snc_product/jdk ##還原JDK的環境變量
cluster.name: shsnc
node.name: node0
network.host: 192.168.XXX.177
http.port: 9200
transport.tcp.port: 9300
node.master: true
node.data: false
node.ingest: true
bootstrap.memory_lock: true
cluster.routing.allocation.same_shard.host: true
xpack.license.self_generated.type: basic
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /home/shsnc/snc_product/elasticsearch/config/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /home/shsnc/snc_product/elasticsearch/config/elastic-certificates.p12
http.cors.enabled: true
http.cors.allow-origin: "*"
bootstrap.system_call_filter: false
node.attr.box_type: hot
discovery.zen.ping.unicast.hosts: ["192.168.XXX.177:9300","192.168.XXX.178:9300","192.168.XXX.179:9300"
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/129089.html
閱讀 283·2024-11-07 18:25
閱讀 130362·2024-02-01 10:43
閱讀 867·2024-01-31 14:58
閱讀 828·2024-01-31 14:54
閱讀 82766·2024-01-29 17:11
閱讀 3047·2024-01-25 14:55
閱讀 1985·2023-06-02 13:36
閱讀 3032·2023-05-23 10:26