轉載請註明出處:http://blog.csdn.net/dongdong9223/article/details/89214284
本文出自【我是幹勾魚的博客】
Ingredients:
-
Java:Java SE Development Kit 8u162(Oracle Java Archive),Linux下安裝JDK並修改環境變量
-
Elasticsearch:elasticsearch-6.6.2.tar.gz,(Elasticsearch version 6.6.2,Download Elasticsearch,Past Releases),Downloads
-
Kibana:kibana-6.6.2-linux-x86_64.tar.gz,(Kibana User Guide,Downloads Kibana 6.6.2,Download Kibana,Past Releases),Downloads ,Grab Your Towel. Adventures Await.
1 下載
wget -c https://artifacts.elastic.co/downloads/kibana/kibana-6.6.2-linux-x86_64.tar.gz
2 解壓縮
tar -zxvf kibana-6.6.2-linux-x86_64.tar.gz
3 配置
編輯配置文件:
vi config/kibana.yml
加入內容:
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: "http://localhost:9200"
kibana.index: ".newkibana"
xpack.security.enabled: false
4 啓動
4.1 前臺啓動:
./bin/kibana
4.2 後臺啓動:
nohup ./bin/kibana &
這時候啓動的是守護進程,當然也可以不加nohup,這樣終端還是會監控輸出。
4.3 訪問
可以使用命令查看能否訪問:
curl http://localhost:5601
如果kibana.yml文件配置不正確可能會報錯:
# curl http://localhost:5601
Kibana server is not ready yet
如果是已經正確配置依然報這個錯的話,可能是還沒有啓動完成,稍等一會再訪問就可以了。
頁面如下:
5 日誌監控
如果是後臺啓動,則日誌被保存到了nohup.out中,日誌監控如下:
tail -f nohup.out