在Linux上安装ClickHouse可视化工具tabix

1 先安装好nginx, 可以参考

http://www.hohode.com/2018/02/13/Nginx%E7%9A%84%E5%AE%89%E8%A3%85/

2 从GitHub上下载tabix

从GitHub上下载tabix

3 解压并查看tabix目录结构

1
2
tar -zxvf tabix-18.07.1.tar.gz
ll tabix-18.07.1

4 配置nginx

1
vim conf/nginx.conf

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}
}
}

5 启动Nginx

1
sbin/nginx

6 访问http://126.21.18.61

注意将126.21.18.61替换为自己服务器的ip地址

tabix home page

tabix index page

下载地址 https://github.com/tabixio/tabix/releases
参考文档 https://blog.csdn.net/qq_28603127/article/details/109281086

Compartir