tabix安装官网
两种方式:
第一种 内嵌式(最简单的方式)
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.js"></script></body></html>]]></http_server_default_response>
重启clickhouse服务(有些重启服务不行就重启服务器)
service clickhouse-server restart
访问 http://ip地址:8123
第二种方式:nginx代理
1 下载nginx至于ngxin下载安装自行百度吧
2 下载tabix
tabix github版本下载地址
rz命令将tar包上传到linux的某个文件夹下执行
tar -zxvf tabix-18.07.1.tar.gz
解压到当前目录
查看tabix目录结构
ll tabix-18.07.1
配置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;
}
}
}
启动nginx,
./sbin/nginx
访问http://node01:80
以上两种方式访问后页面:
name:随便填代表当前保存的连接信息名称
http://host:port:填写htt://你的ip:8123
login和password是用户名与密码
extend:不用填
点击login