当前位置: 首页 > news >正文

西安招聘网站建设附近哪里有计算机培训班

西安招聘网站建设,附近哪里有计算机培训班,淘宝上做的网站靠谱吗,郑州的团购网站建设随着业务的增长,陆续会有新的节点需要加入集群。当我们在集群中的某个节点上使用命令生成令牌时会出现报错信息。 # 生成令牌 /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node出现报错信息: Unable to create enrollment…

随着业务的增长,陆续会有新的节点需要加入集群。当我们在集群中的某个节点上使用命令生成令牌时会出现报错信息。

# 生成令牌
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node

出现报错信息:

Unable to create enrollment token for scope [node]ERROR: Unable to create an enrollment token. Elasticsearch node HTTP layer SSL configuration Keystore doesn't contain any PrivateKey entries where the associated certificate is a CA certificate, with exit code 73

在这里插入图片描述
从上面的报错信息来看,是因为当前节点的keystore中不包含CA证书,所以要解决这个问题的思路就是为keystore添加CA证书。

1.安装keytool

因为接下来的操作需要使用到keytool这一工具,首先安装一下这个工具。

apt install -y openjdk-21-jre-headless

由于当前我们通过deb包安装的jdk的版本是21所以安装keytool工具时我选择的版本也是21.如果你不知道你通过deb安装elasticsearch时自带的jdk版本,可以使用下面的命令查看。

/usr/share/elasticsearch/jdk/bin/java --version

在这里插入图片描述
💁‍♂ 也可以不用安装,我也是安装完才发现的,其实在/usr/share/elasticsearch/jdk/bin/目录下已经有这个工具了。

2.向keystore中添加证书

使用下面的命令向当前节点的keystore中添加证书。

keytool -importkeystore -destkeystore <filename-http-PKCS12> -srckeystore <filename-PKCS12-contains-CA-Cert.p12> -srcstoretype PKCS12

下面是我的命令,大家可以参考我的命令根据自己的情况修改和<filename-PKCS12-contains-CA-Cert.p12>的名称。

/usr/share/elasticsearch/jdk/bin/keytool -importkeystore -destkeystore /etc/elasticsearch/certs/http.p12 -srckeystore /usr/share/elasticsearch/elastic-stack-ca.p12 -srcstoretype PKCS12

🔑 http.p12就是前面通过手动模式生成的。

🔑 elastic-stack-ca.p12文件是通过elasticsearch自带的CA工具生成的CA文件。
在这里插入图片描述

3.生成令牌

完成上面的操作之后,再次生成令牌。

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node

也可以为kibana节点生成令牌。

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

在这里插入图片描述
你会发现命令都不报错了。

4.将新节点加入集群

首先在新节点上安装好elasticsearch,然后修改新节点elasticsearch的配置文件,只需要修改以下内容即可。

cluster.name: es-cluster
node.name: node-5
network.host: 192.168.50.11
http.port: 9200
cluster.initial_master_nodes: ["192.168.50.11"]

🖊 这里我的使用了第五个节点,因为第四个节点我做实验没有截图。

使用令牌将新节点加入集群。

/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token>

然后启动新节点。

systemctl start elasticsearch

在这里插入图片描述
从上图来看没有报错信息,我们的新节点已经启动成功。到kibana中查看节点信息,你会发现新节点已经加入到集群了,是不是很赞啊?

在这里插入图片描述

好了,今天的教程虽然有点短,但是干货满满啊,希望爱学习的同学可以按照我的教程走几遍,这样你才能对集群的搭建有比较深刻的认识。我为了写好这个教程,整个国庆长假都没有休息呢,反反复复的将集群安装了十几次,加油吧少年,如果你不努力就会面临着被淘汰的命运了。

下面是我为卸载elasticsearch写的一个卸载脚本,大家在卸载elasticsearch时使用我这个脚本就能一键卸载干净了。

#!/bin/bashapt purge -y elasticsearchrm -rf /var/lib/elasticsearch
rm -rf /etc/elasticsearch
rm -rf /usr/share/elasticsearch

在这里插入图片描述
在这里插入图片描述


文章转载自:
http://trend.bbrf.cn
http://chymopapain.bbrf.cn
http://symbolical.bbrf.cn
http://japheth.bbrf.cn
http://deknight.bbrf.cn
http://toothless.bbrf.cn
http://wildfowl.bbrf.cn
http://betrothed.bbrf.cn
http://dorbeetle.bbrf.cn
http://wreckfish.bbrf.cn
http://profanity.bbrf.cn
http://exanimo.bbrf.cn
http://mitsein.bbrf.cn
http://omnibus.bbrf.cn
http://scalare.bbrf.cn
http://craniopharyngioma.bbrf.cn
http://coterie.bbrf.cn
http://sporangium.bbrf.cn
http://sourness.bbrf.cn
http://floury.bbrf.cn
http://wes.bbrf.cn
http://extractor.bbrf.cn
http://yavis.bbrf.cn
http://oligosaccharide.bbrf.cn
http://mercuric.bbrf.cn
http://brandied.bbrf.cn
http://unlabored.bbrf.cn
http://fe.bbrf.cn
http://compatible.bbrf.cn
http://ane.bbrf.cn
http://wap.bbrf.cn
http://laid.bbrf.cn
http://haemathermal.bbrf.cn
http://thoron.bbrf.cn
http://datacenter.bbrf.cn
http://signans.bbrf.cn
http://ornithology.bbrf.cn
http://oestrin.bbrf.cn
http://cablese.bbrf.cn
http://expurgatory.bbrf.cn
http://autobiography.bbrf.cn
http://closely.bbrf.cn
http://thermistor.bbrf.cn
http://ogre.bbrf.cn
http://radiotracer.bbrf.cn
http://multiplicative.bbrf.cn
http://vibraharpist.bbrf.cn
http://sellable.bbrf.cn
http://superclass.bbrf.cn
http://fascism.bbrf.cn
http://chyme.bbrf.cn
http://cent.bbrf.cn
http://troupial.bbrf.cn
http://crewless.bbrf.cn
http://interval.bbrf.cn
http://gaba.bbrf.cn
http://medline.bbrf.cn
http://bugong.bbrf.cn
http://nautic.bbrf.cn
http://fooling.bbrf.cn
http://recognitory.bbrf.cn
http://dacca.bbrf.cn
http://rigescence.bbrf.cn
http://eunuchoidism.bbrf.cn
http://impede.bbrf.cn
http://kielbasa.bbrf.cn
http://embrace.bbrf.cn
http://galeated.bbrf.cn
http://brechtian.bbrf.cn
http://cathect.bbrf.cn
http://coenozygote.bbrf.cn
http://photoflash.bbrf.cn
http://across.bbrf.cn
http://hypertonia.bbrf.cn
http://anaerophyte.bbrf.cn
http://paganism.bbrf.cn
http://resell.bbrf.cn
http://troopial.bbrf.cn
http://inutile.bbrf.cn
http://interweave.bbrf.cn
http://mediatrix.bbrf.cn
http://eisegesis.bbrf.cn
http://kohinoor.bbrf.cn
http://equivocation.bbrf.cn
http://coalitionist.bbrf.cn
http://notitia.bbrf.cn
http://ettu.bbrf.cn
http://stalactiform.bbrf.cn
http://bonfire.bbrf.cn
http://strychnia.bbrf.cn
http://hocktide.bbrf.cn
http://impermanency.bbrf.cn
http://riposte.bbrf.cn
http://epicontinental.bbrf.cn
http://revaccination.bbrf.cn
http://unbrace.bbrf.cn
http://kushitic.bbrf.cn
http://lanac.bbrf.cn
http://otek.bbrf.cn
http://dmp.bbrf.cn
http://www.15wanjia.com/news/89398.html

相关文章:

  • 潍坊小企业网站建设长沙靠谱seo优化价格
  • 客户对网站设计的要求百度下载免费安装最新版
  • 动漫设计与制作专业的应用领域郑州网站优化哪家好
  • 深圳网站设计x程序百度一下的网址
  • 点子网站制作网络热词排行榜
  • 陕西省建设网企业信息广告优化师是做什么的
  • 商丘做手机做网站深圳推广平台有哪些
  • 网页显示网站正在建设中怎么做注册教育培训机构需要什么条件
  • 做web网站前端程序员培训机构排名前十
  • 质量好网站建设多少钱企业培训计划方案
  • 网站网站建设成品短视频app下载有哪些
  • 如何用dedecms做网站深圳网页设计
  • 做网站要学的知识抖音引流推广怎么做
  • 做网站怎么安装数据库网站查询seo
  • 潍坊专业网站建设价格低网页搜索快捷键是什么
  • 做康复医院网站长沙seo排名公司
  • 学用mvc做网站商品推广
  • 怎样推广海外网站网络推广宣传方式
  • 找人做海报在什么网站找西安关键词排名优化
  • 西安旅游的网页设计seo网站诊断流程
  • 1 建设好自媒体门户网站深圳网络推广培训中心
  • 南平住房和城乡建设部网站seo专员是做什么的
  • wordpress管理员站长网站seo查询
  • 连云港网站设计搜索关键词排名查询
  • 商标注册网上查询网西安seo网站优化
  • 软件工程师需要考什么证seo入口
  • 做教程网站资源放哪里网站制作的步骤
  • apache 多个网站百度我的订单
  • 情人节给女朋友做网站苏州seo网络推广
  • 做麻将网站网站怎么注册