Embedded
这种方式使用的clickhouse内置的服务,直接打开config.xml中http_server_default_response标签的注释就行
<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.js"></script></body></html>]]></http_server_default_response>
访问方式:
http://clickhouse:8123
使用默认的用户名default,密码不填,直接为空
源码方式安装
git clone https://github.com/smi2/tabix.ui
nginx配置:
server {
listen 80;
server_name localhost;
#charset koi8-r;
#
#access_log logs/host.access.log main;
# root /home/dmadmin/bigdata/tabix/tabix/build;
location / {
root /home/dmadmin/bigdata/tabix/tabix/build;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
if (!-f $request_filename) {
rewrite ^(.*)$ /index.html last;
}
index index.html index.htm;
}
location /ck {
proxy_pass http://127.0.0.1:8123;
}
}
访问:
输入服务器地址
进入tabix页面
输入账号密码及ck地址(http://ip/ck)
点击登录,就可以进入到tabix页面了