mkdir org/elasticsearch/license/
mv LicenseVerifier.class org/elasticsearch/license/LicenseVerifier.class
jar uvf x-pack-core-6.3.0.jar org/elasticsearch/license/LicenseVerifier.class
mkdir org/elasticsearch/xpack/core/
mv LicenseVerifier.class org/elasticsearch/xpack/core/XPackBuild.class
jar uvf x-pack-core-6.3.0.jar org/elasticsearch/xpack/core/XPackBuild.class
bin/elasticsearch-setup-passwords interactive
- 按步骤分别重置elastic/kibana等账号的密码
- elastic就是登陆elasticsearch服务的最高权限账号
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
在kibana.yml下添加如下两行
elasticsearch.username: elastic
elasticsearch.password: {你修改的password}
此处修改完后,重启ES和kibana服务就需要登陆账号和密码了
在elasticsearch.yml中添加如下三行配置
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
重启服务,并通过如下形式访问head端口 http://192.168.36.61:9100/?auth_user=elastic&auth_password=passwd