一、背景
7.10.2版本+,elastic家的es开始需要license授权。
license分为BASIC
和GOLD,PLATINUM,ENTERPRISE
这几种类型,其中BASIC
是免费的,但是功能上有所限制,能够在license中看到的就是BASIC
限制了节点数量,最大节点数不能超过1000个。
二、准备
-
elastic官网下载
-
ES yml文件参考7.6.2
-
jvm配置主机的50%
-
IK分词器在github上找
三、部署
-
下载安装包
-
配置es数据路径
-
rpm安装
-
配置文件修改es yml 和jvm.options
-
启动es
-
完成
交付情况

csharp
[root@master ~]# curl http://172.21.27.35:9200
{
"name" : "xfzcvmmw185345",
"cluster_name" : "demo01_selection",
"cluster_uuid" : "kux5CkPFQDKYLIOrISCWpg",
"version" : {
"number" : "7.16.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "6fc81662312141fe7691d7c1c91b8658ac17aa0d",
"build_date" : "2021-12-02T15:46:35.697268109Z",
"build_snapshot" : false,
"lucene_version" : "8.10.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
#
# 集群信息
[root@master ~]# curl http://172.21.27.35:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
172.21.27.35 47 98 10 0.18 0.32 0.39 cdfhilmrstw - xfzcvmmw185345
172.21.27.36 57 96 2 0.05 0.05 0.05 cdfhilmrstw - xfzcvmmw185344
172.21.27.37 49 76 4 0.42 0.20 0.18 cdfhilmrstw * xfzcvmmw185343
# kibana地址
http://172.21.27.37:5601
license信息

测试数据
bash
put _template/yumchina_tmp
{
"aliases" : { },
"order": 0,
"version": 1,
"index_patterns": [
"*"
],
"settings" : {
"number_of_shards": 3,
"number_of_replicas": "0",
"refresh_interval": "30s"
}
}
# 创建
POST my_monday_test02/_doc/
{
"@timestamp": "2025-07-20T13:12:00",
"message": "GET /search HTTP/1.1 200 1070000",
"user": {
"id": "kimchy"
}
}
# 删除
get my_monday_test02
# 修改
# 同创建
四、xpack开启
略
五、关于license
网上查阅了很多资料,都说BASIC
许可的有效期是一年,一年后会过期,邮件中也提及了license的过期时间:Thank you for using the Elastic Stack and registering for your free Basic license! This license expires on July 14, 2022.
,但是我在2021-07-14
重新申请BASIC
许可之后,显示的效果如上图所示:Your license will never expire.
显示是永不过期,至于是否真的是永不过期,还有待验证。
查看license状态
www.cnblogs.com/jie-fang/p/...
Register for Free Basic License
