Kibana 7.6安裝
阿新 • • 發佈:2020-11-28
Kibana簡介
Kibana 是一個免費且開放的使用者介面,能夠讓您對 Elasticsearch 資料進行視覺化,並讓您在 Elastic Stack 中進行導航。您可以進行各種操作,從跟蹤查詢負載,到理解請求如何流經您的整個應用,都能輕鬆完成。
- Kibana是ElasticSearch的一個工具,用來分析ES中的資料並以各種圖形介面顯示出來
- 可以作為ElasticSearch的一個客戶端,在Kibana中可以很輕鬆的呼叫ES的RESTful介面
下載地址
https://elasticsearch.cn/download/
https://artifacts.elastic.co/downloads/kibana/kibana-7.6.0-linux-x86_64.tar.gz
安裝
下載壓縮包並解壓之後,需要關注兩個資料夾,一個是config資料夾,裡面的kibana.yml是配置檔案;一個是bin資料夾,裡面有kibana啟動的bat指令碼
上傳kibana-7.6.0-linux-x86_64.tar.gz檔案到 /opt目錄下,並解壓
tar -zxvf kibana-7.6.0-linux-x86_64.tar.gz
在目錄/usr/local下建立目錄:kibana-7.6.0
mkdir kibana-7.6.0
複製解壓後的檔案到/usr/local/kibana-7.6.0目錄下
cp -R /opt/kibana-7.6.0-linux-x86_64/* /usr/local/kibana-7.6.0/
設定 kibana-7.6.0目錄許可權給elasticsearch使用者
chown -R elasticsearch:elasticsearch kibana-7.6.0/
設定配置檔案
修改/usr/local/kibana-7.6.0/config/kibana.yml
設定ElasticSearch的訪問地址:
elasticsearch.hosts: ["http://192.168.8.190:9200"]
設定Kibana的訪問地址,如果不設定則只能本機訪問。
server.host: "192.168.8.190"
# Kibana is served by a back end server. This setting specifies the port to use. #server.port:5601 # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values. # The default is 'localhost', which usually means remote machines will not be able to connect. # To allow connections from remote users, set this parameter to a non-loopback address. server.host: "192.168.8.190" # Enables you to specify a path to mount Kibana at if you are running behind a proxy. # Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath # from requests it receives, and to prevent a deprecation warning at startup. # This setting cannot end in a slash. #server.basePath: "" # Specifies whether Kibana should rewrite requests that are prefixed with # `server.basePath` or require that they are rewritten by your reverse proxy. # This setting was effectively always `false` before Kibana 6.3 and will # default to `true` starting in Kibana 7.0. #server.rewriteBasePath: false # The maximum payload size in bytes for incoming server requests. #server.maxPayloadBytes: 1048576 # Kibana is served by a back end server. This setting specifies the port to use. #server.port: 5601 # Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values. # The default is 'localhost', which usually means remote machines will not be able to connect. # To allow connections from remote users, set this parameter to a non-loopback address. server.host: "192.168.8.190" # Enables you to specify a path to mount Kibana at if you are running behind a proxy. # Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath # from requests it receives, and to prevent a deprecation warning at startup. # This setting cannot end in a slash. #server.basePath: ""
啟動
如果用root使用者啟動會報錯:
Kibana should not be run as root. Use --allow-root to continue.
切換elasticsearch使用者,並進入目錄:/usr/local/kibana-7.6.0/bin 啟動服務
./kibana
當看到以下提示資訊,說明啟動成功
log [07:05:19.737] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.747] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.751] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.759] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.761] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.766] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.779] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.854] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.857] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.860] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.863] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.867] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.869] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.872] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:19.876] [warning][browser-driver][reporting] Enabling the Chromium sandbox provides an additional layer of protection. log [07:05:20.504] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml log [07:05:20.511] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready log [07:05:20.564] [info][listening] Server running at http://192.168.8.190:5601 log [07:05:20.835] [info][server][Kibana][http] http server running at http://192.168.8.190:5601