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;
}
}
}
访问即可出现可视化界面