先到官网去下载license证书
https://register.elastic.co/
注册之后根据提示,会将证书发送到邮件
在命令行执行下面命令
url -XPOST -u elastic:changeme 'http://125.124.132.156:9201/_license/start_basic?acknowledge=true' -H "Content-Type: application/json" -d @license.json
检查是否生效
先到官网去下载license证书
https://register.elastic.co/
注册之后根据提示,会将证书发送到邮件
在命令行执行下面命令
url -XPOST -u elastic:changeme 'http://125.124.132.156:9201/_license/start_basic?acknowledge=true' -H "Content-Type: application/json" -d @license.json
检查是否生效