第一步 x-pack-core-6.6.0.jar
首先破解 x-pack-core-6.6.0.jar 破解的方式大家可以參考 https://codeantenna.com/a/YDks83ZHjd 中<5.破解x-pack> 這部分 , 也可以直接下載我編譯好的
https://download.csdn.net/download/iBuDongIt/88748782
下載后解壓替換 elasticsearch-6.6.0/modules/x-pack-core/x-pack-core-6.6.0.jar即可
注意 : 先切換到 elasticsearch 所屬的用戶組
su es
第二步 elasticsearch.yml
設(shè)置elasticsearch.yml
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
第三步 設(shè)置密碼
重啟elasticsearch.yml
kill -9 29180 殺死es進(jìn)程
./bin/elasticsearch -d 重新啟動
設(shè)置密碼的安全指令
./bin/elasticsearch-setup-passwords interactive
執(zhí)行過程:文章來源:http://www.zghlxwxcb.cn/news/detail-796684.html
[es@robot elasticsearch-6.6.0]$ ./bin/elasticsearch-setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,apm_system,kibana,logstash_system,beats_system,remote_monitoring_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y
Enter password for [elastic]:
Reenter password for [elastic]:
Enter password for [apm_system]:
Reenter password for [apm_system]:
Enter password for [kibana]:
Reenter password for [kibana]:
Enter password for [logstash_system]:
Reenter password for [logstash_system]:
Enter password for [beats_system]:
Reenter password for [beats_system]:
Enter password for [remote_monitoring_user]:
Reenter password for [remote_monitoring_user]:
Changed password for user [apm_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]
至此 es已經(jīng)設(shè)置好密碼了 可以在瀏覽器上輸入 ip:9200 驗(yàn)證下 賬戶名: elastic 密碼為 第一個設(shè)置的密碼文章來源地址http://www.zghlxwxcb.cn/news/detail-796684.html
到了這里,關(guān)于elasticsearch6.6.0設(shè)置訪問密碼的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!