ES - X-pack证书更新

2018-07-17  本文已影响0人  花间提壶机智一比

1.注册免费许可

https://register.elastic.co/xpack_register

进入该链接,进行注册

image

2.注册之后到邮箱里面点击提示下载的链接


To download your license, please go to:

--> http://license.elastic.co/************

3.到指定页面根据我们使用的版本进行下载即可

image

4.使用以下命令指定该文件

文件重命名为,licese.json ,和命令执行在同一个path下


curl -H "Content-Type: application/json" -XPUT -u yourname:"yourpassword" 'http://172.18.0.135:9288/_xpack/license?acknowledge=true' -d @licese.json

执行后出现以下字样

{"acknowledged":true,"license_status":"valid"}

然后重启es集群,启动kibana

若是出现es插件异常,或者禁止登陆功能不要慌,可能是es还没有启动成功。

若是过一段时间还是不可以,我们可以使用以下命令重新设置密码。

deploy@es-cluster1:~$ ./elasticsearch-6.2.4/bin/x-pack/setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y


Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [kibana]: 
Reenter password for [kibana]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 

若是搭建的集群,只在其中一台上面更新,重启整个集群即可。

尊重原创,转载请注明出处:https://www.jianshu.com/p/3623b4626267

上一篇 下一篇

猜你喜欢

热点阅读