转载请注明出处: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