软件环境
操作系统
CentOS 7
软件版本
clickhouse-client-20.9.2.20-2.noarch.rpm
clickhouse-common-static-20.9.2.20-2.x86_64.rpm
clickhouse-server-20.9.2.20-2.noarch.rpm
安装步骤
1.官方下载RPM包
2.上传到服务器
3.进入rpm包的目录,运行 rpm -ivh * 即可完成安装
注意事项
1.经过测试只需要安装上面三个RPM
2.服务的管理方式有两种,优先推荐第二种
2.1 clickhouse 命令
clickhouse local [args]
clickhouse client [args]
clickhouse benchmark [args]
clickhouse server [args]
clickhouse extract-from-config [args]
clickhouse compressor [args]
clickhouse format [args]
clickhouse copier [args]
clickhouse obfuscator [args]
clickhouse install [args]
clickhouse start [args]
clickhouse stop [args]
clickhouse status [args]
clickhouse restart [args]
2.2 systemctl
#Cent OS7 系统上测试,需要使用以下命令执行
#service clickhouse-server start 命令,
#只提示 Init script is already running,然后就没有动静了sudo systemctl start clickhouse-server
sudo systemctl stop clickhouse-server
sudo systemctl status clickhouse-server
参考链接
官方教程
RPM下载链接
https://github.com/ClickHouse/ClickHouse/issues/14861