一、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
}
}

最新文章

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

热门文章

  1. 本周总结(19年暑假)—— Part2
  2. 查漏补缺之slice
  3. 一文解读XaaS (转)
  4. Scrapy 使用 LinkExtractor 提取链接和使用 Exporter 导出数据
  5. 【快学springboot】3.多种接受参数的方式
  6. 【转】stm32 IAP升级程序
  7. Hadoop的伪分布式安装和部署的流程
  8. (转)C#的 GC工作原理基础
  9. python 中常见的异常类型汇总
  10. linux服务器常用操作和命令