elasticsearch-7.9.3 集群安全认证 启动失败
es1:
[root@ES1 elasticsearch]# egrep -v "#|^$" /etc/elasticsearch/elasticsearch.yml
cluster.name: elk_server
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 172.168.0.139
http.port: 9200
discovery.seed_hosts: ["172.168.0.139", "172.168.0.137"]
cluster.initial_master_nodes: ["172.168.0.139", "172.168.0.137"]
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
es2:
[root@ES2 elasticsearch]# egrep -v "#|^$" /etc/elasticsearch/elasticsearch.yml
cluster.name: elk_server
node.name: node-2
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 172.168.0.137
http.port: 9200
discovery.seed_hosts: ["172.168.0.139", "172.168.0.137"]
cluster.initial_master_nodes: ["172.168.0.139", "172.168.0.137"]
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
[root@ES2 elasticsearch]#
证书已经生成也复制到节点目录下,但是还是启动失败求解
es1:
[root@ES1 elasticsearch]# egrep -v "#|^$" /etc/elasticsearch/elasticsearch.yml
cluster.name: elk_server
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 172.168.0.139
http.port: 9200
discovery.seed_hosts: ["172.168.0.139", "172.168.0.137"]
cluster.initial_master_nodes: ["172.168.0.139", "172.168.0.137"]
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
es2:
[root@ES2 elasticsearch]# egrep -v "#|^$" /etc/elasticsearch/elasticsearch.yml
cluster.name: elk_server
node.name: node-2
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 172.168.0.137
http.port: 9200
discovery.seed_hosts: ["172.168.0.139", "172.168.0.137"]
cluster.initial_master_nodes: ["172.168.0.139", "172.168.0.137"]
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
[root@ES2 elasticsearch]#
证书已经生成也复制到节点目录下,但是还是启动失败求解
1 个回复
pineapple
赞同来自: wudawei