介紹:
x-pack是Elasticsearch中的一個plugin,主要功能是實現認證功能
報錯:
類似下面這樣的報錯,是因為licese過期導致的
解決:
1.首先去Elasticsearch的官方網站填寫信息並下載licese;
https://license.elastic.co/registration
2. 將文件重命名為license.json,放在任意目錄中,隨后在任意目錄中執行如下命令
curl -XPUT -u elastic:changeme 'http://IP:Port/_xpack/license' -d @license.json
elastic為默認用戶名
changeme為默認密碼