clickhouse安装并不复杂,这是一套我自己在生产环境下经常使用的安装流程
1.上传安装包,这里我用的是22.3
- clickhouse-client-22.3.12.19.x86_64.rpm
- clickhouse-common-static-22.3.12.19.x86_64.rpm
- clickhouse-server-22.3.12.19.x86_64.rpm
链接:https://pan.baidu.com/s/1WvBn_wqkxXLDvvZpC8yznA
提取码:uzlb
2.rpm依次安装
rpm -ivh clickhouse-common-static-22.3.12.19.x86_64.rpm
rpm -ivh clickhouse-client-22.3.12.19.x86_64.rpm
rpm -ivh clickhouse-server-22.3.12.19.x86_64.rpm
安装clickhouse-server的时候出现要填写密码的时候可以直接enter一下就行,后续再添加密码
3.配置clickhouse可以被别的服务器访问
vi /etc/clickhouse-server/config.xml
打开listen_host
4.修改clickhouse密码
vi /etc/clickhouse-server/users.xml
5.启动clickhouse
#启动命令
/etc/init.d/clickhouse-server start
#停止
/etc/init.d/clickhouse-server stop
#重启
/etc/init.d/clickhouse-server restart