标签:round tar post type start http ack cal style
一、Elasticsearch 6.7.2开启trial x-pack license;x-pack的license试用期只有30天
1、ES6.7.2版本默认已经安装了x-pack插件,这里就没有安装步骤了,只需要开启功能即可,每个节点都需要设置;设置elasticsearch.yml
添加下列行
xpack.security.enabled: true
2、开启试用license
curl -XPOST http://192.168.1.15:9200/_xpack/license/start_trial?acknowledge=true
3、设置密码 (这里以elasticsearch 6.7.2版本为例)
#cd /usr/local/elasticsearch-6.7.2/bin/
#./elasticsearch-setup-passwords interactive 后面直接点击Y/y即可
4、上述步骤之后,则成功配置了各种角色的用户和密码,后续操作则需要用用户和密码访问才可以(默认elastic用户为最高权限用户)
查询license状态:
# curl -u elastic:password http:// 192.168.1.14:9200/_xpack/license/
{
"license" : {
"status" : "active",
"uid" : "040c4352-4bc4-41d0-99fe-fa9d71a2df63",
"type" : "trial",
"issue_date" : "2019-11-17T12:28:55.508Z",
"issue_date_in_millis" : 1573993735508,
"expiry_date" : "2019-12-17T12:28:55.508Z",
"expiry_date_in_millis" : 1576585735508,
"max_nodes" : 1000,
"issued_to" : "my-application",
"issuer" : "elasticsearch",
"start_date_in_millis" : -1
}
}
Elasticsearch开启试用x-pack license
标签:round tar post type start http ack cal style
原文地址:https://www.cnblogs.com/xiaopaipai/p/11908439.html