1、2.3版本的安装命令
安装Marvel
./bin/plugin -i elasticsearch/marvel/latest
2、5.0版本的安装命令
安装Marvel
sudo bin/elasticsearch-plugin install x-pack
是不是很尴尬,怎么都报错找不到Marvel,因为在5.0把很多插件都集成到了x-pack。
bin/x-pack/setup-passwords auto
es6修改密码:
curl -H "Content-Type: application/json;charset=UTF-8" -XPUT -u elastic 'localhost:9200/_xpack/security/user/elastic/_password' -d '{
"password" : "123456"
}'
es6之前的修改密码方式:
curl -XPUT -u elastic 'localhost:9200/_xpack/security/user/elastic/_password' -d '{
"password" : "123456"
}'