clickhouse 安装和远程登录开启

2020-09-13  本文已影响0人  秦胜飞_3838

一、Clickhouse的安装

1、添加yum源

    yum-config-manager --add-repo http://repo.red-soft.biz/repos/clickhouse/repo/clickhouse-el6.repo

2、安装

    yum install clickhouse-server clickhouse-client clickhouse-server-common clickhouse-compressor

3、启动服务

    /etc/init.d/clickhouse-server start

4、登录测试

[root@db_server_yayun_01 ~]# clickhouse-client 
ClickHouse client version 20.5.2.7 (official build).
Connecting to 127.0.0.1:9000 as user default.
Connected to ClickHouse server version 20.5.2 revision 54435.
VM_0_15_centos :) 
VM_0_15_centos :) 
VM_0_15_centos :) 
VM_0_15_centos :) 

二、Clickhouse远程登录

1、修改配置文件

[root@db_server_yayun_01 ~]vi /etc/clickhouse-server/config.xml

找到<listent_host>::</listen_host> 去掉注释


image

三、客户端连接(DBeaver)

1、主机:Clickhouse远程登录服务器的IP

2、用户名、密码:默认default,密码为空

3、Dbeaver有社区版的,因为是客户端,操作起来会比tabix更方便、好用一些

image
image
上一篇下一篇

猜你喜欢

热点阅读