ClickHouse可视化安装-----tabix

ClickHouse可视化安装-----tabix


官网提供了五种安装方式,官网网址:https://github.com/tabixio/tabix
我的开发环境:ubuntu18.04

今天介绍两种方式:

第一种 内嵌式

1、进入config.xml将注释的配置打开

vim /etc/clickhouse-server/config.xml

将以下注释的配置打开

<http_server_default_response><![CDATA[<html ng-app="SMI2"><head><base href="http://ui.tabix.io/"></head><body><div ui-view="" class="content-ui"></div><script src="http://loader.tabix.io/master.

2、重启clickhouse服务(有些重启服务不行就重启服务器)

service clickhouse-server restart

3、访问 http://ip地址:8123

第二种方式:nginx代理

1 下载nginx

2 下载tabix

3 解压到当前目录

4 配置nginx

cd 进入nginx的安装目录后:vim conf/nginx.conf

替换成以下内容,注意要更改root地址

worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
server {
    listen 80;
    server_name ui.tabix.io;
    charset        utf-8;
	#替换成自己tabix的build目录地址
    root /opt/tabix-18.07.1/build;
    location / {
        if (!-f $request_filename) {
            rewrite ^(.*)$ /index.html last;
        }
        index  index.html index.htm;
    }
}
}

访问即可出现可视化界面

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值