瀏覽器訪問提示:Kibana server is not ready yet
查看日志如下
{"type":"log","@timestamp":"2019-12-04T10:26:39Z","tags":["warning","task_manager"],"pid":4631,"message":"PollError [security_exception] failed to authenticate user [elastic], with { header={ WWW-Authenticate=\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\" } }"}
分析:
這個是屬於誤刪除某些系統索引文件,導致賬號認證失敗造成的
解決辦法也簡單,重新設置賬號密碼就行了。
cd /usr/share/elasticsearch
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 # 輸入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]