Elasticsearch开启试用x-pack license
一、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
}
}
最新文章
- springmvc session和model解析
- shell脚本中生成延时
- UISegmentedControl 的使用
- Python :open文件操作,配合read()使用!
- verify.js使用验证插件使用
- 使用clssneme改变图片或样式
- lintcode:最大间隔
- new tips
- Howto: Deploy VC2008 apps without installing vcredist_x86.exe
- iOS开发,多个button数组,每个数组只能选中5项,多个数组只能选择3个。
- C#中的USB库 WinUSB
- Java后台实现方法
- configure: error: Cannot find php-config. Please use --with-php-config=PATH
- python模块:subprocess
- 六、input框中的数字(金额)只能输入正整数
- C# 基础之const
- HDU 4725 The Shortest Path in Nya Graph (最短路)
- Java读取excel的示例
- python 用类方法和静态方法实现是追加写文件内容,和读指定行号的内容
- Code Chef DARTSEGM(计算几何+凸包)