参考
https://blog.csdn.net/JIANG123456T/article/details/77674857
http://www.clickhouse.com.cn/topic/5a366e97828d76d75ab5d5a0
一. 环境
1、Centos 7.3
2、Rpm包下载
http://repo.red-soft.biz/repos/clickhouse/stable/el7/
二. 安装步骤
1.首先安装依赖1
yum install libicu unixODBC
2.下载安装包
http://repo.red-soft.biz/repos/clickhouse/stable/el7/
3.安装1
2
3
4
5rpm -ivh clickhouse-server-common-1.1.54236-4.el7.x86_64.rpm
rpm -ivh clickhouse-server-1.1.54236-4.el7.x86_64.rpm
rpm -ivh clickhouse-debuginfo-1.1.54236-4.el7.x86_64.rpm
rpm -ivh clickhouse-client-1.1.54236-4.el7.x86_64.rpm
rpm -ivh clickhouse-compressor-1.1.54236-4.el7.x86_64.rpm
3.1 配置文件路径
/etc/clickhouse-server/
4.启动
4.1 启动服务端1
clickhouse-server --config-file=/etc/clickhouse-server/config.xml
可看到clickhouse服务已经成功启动
4.2 启动客户端1
clickhouse-client --host=xx.xx.xx.xx --port=9000
4.3 查看启动的进程1
ps -aux|grep clickhouse-server
4.4 关闭clickhouse服务
使用kill -9 杀掉相关进程即可。
5 后台托管启动服务1
nohup clickhouse-server --config-file=/etc/clickhouse-server/config.xml >null 2>&1 &