http://localhost:9200/_license
{
“license” : {
“status” : “active”,
“uid” : “b91ae0e0-b04d-4e20-8730-cf0bca7b2035”,
“type” : “basic”,
“issue_date” : “2023-02-22T14:33:27.648Z”,
“issue_date_in_millis” : 1677076407648,
“max_nodes” : 1000,
“max_resource_units” : null,
“issued_to” : “elasticsearch”,
“issuer” : “elasticsearch”,
“start_date_in_millis” : -1
}
}
将 “type” : “basic”,更改为 “type” : “trial”
curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"