- 注冊(cè)免費(fèi)證書 https://register.elastic.co/xpack_register
- 更新
參考 這里 https://www.elastic.co/guide/en/x-pack/current/installing-license.html
但是由于是在windows下,最后一步需要變通一下
我們用powershell來(lái)完成這一步
https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/invoke-restmethod
PS E:> Invoke-WebRequest -Method Put 'http://{host}:{port}/_xpack/license?acknowledge=true' -ContentType: applicat
ion/json -InFile license.json -Credential elastic