厚积薄发

不忘初心,方得始终!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

安装及部署

一、环境配置

  • 操作系统:Cent OS 7

  • Kibana版本:3.1.2

  • JDK版本:1.7.0_51

  • SSH Secure Shell版本:XShell 5

二、操作过程

1、下载指定版本的Kibana

进入安装目录,并通过curl命令下载Kibana压缩包文件并解压:

  • 下载

curl -L -O https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.zip
  • 解压

unzip kibana-3.1.2.zip 

2、配置Nginx虚拟机主机

http {
    charset utf-8;
    include       mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] $request_time $upstream_response_time "$request" '
                      '$status $body_bytes_sent $request_length $bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" "$sent_http_content_range"';

    
    server { 
        listen      83; 
        server_name 192.168.1.181; 
        access_log  /usr/local/nginx/logs/kibana.log main; 
        client_max_body_size 5m; 
        index index.html index.htm; 
        autoindex on; 
        root  /usr/local/logdeal/kibana-3.1.2; 
        location / { 
            index index.html index.htm; 
        } 
      }

}

3、更改Elasticsearch的配置文件config.js

elasticsearch: "http://192.168.1.181:9100" #指向elasticsearch访问地址

4、启动nginx,访问kibana地址

/usr/local/logdeal/nginx/sbin/nginx -c /usr/local/logdeal/nginx/conf/nginx_kibana.conf

  http://192.168.1.181:83/#/dashboard/file/default.json

posted on 2016-05-31 17:18  欢迎来到Java的世界  阅读(1070)  评论(0编辑  收藏  举报