kibana從5.6升級到6.8


kibana從5.6升級到6.8

下載kibana和elasticsearch的tar包

解壓之后進入到kibana-6.8.5/config,和elasticsearch/config

如下報錯:

missing authentication token for REST request [/_template/.kibana_task_manager?include_type_name=true&filter_path=*.version]

解決辦法

進入elasticsearch/bin目錄,輸入命令:

./elasticsearch-setup-passwords

不要進入xpack目錄下去執行setup-passwords,會失敗。

這一步是創建用戶名和密碼,我輸入的用戶名是elastic,密碼是changeme

然后進入kibana-6.8.5/config/目錄

vim kibana.yml

輸入以下內容:

elasticsearch.username: "elastic"
elasticsearch.password: "changeme"

其他參數修改:

server.host: "127.0.0.1"
elasticsearch.hosts: "http://127.0.0.1:9200"
kibana.index: ".kibana"

進入elasticsearch/config目錄,

vim elasticsearch.yml

添加如下內容:

# 原來的數據和日志所在目錄,具體看自己原來版本的配置
path.data: /data
path.logs: /var/logs

network.host: 127.0.0.1
http.port: 9200

# 以下修改如果不添加不知道會出現什么情況,可以自行測試
http.cors.enabled: true
http.cors.allow-origin: '*'
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type

進入各自的bin目錄,分別在后台運行kibana和es

nohup ./elasticsearch &
nohup ./kibana &


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM