Software Environment
operating system
CentOS 7
Software version
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
installation steps
1. Officially download the RPM package
2. Upload to the server
3. Enter the directory of the rpm package and run rpm -ivh * to complete the installation
Precautions
1. After testing, only the above three RPMs need to be installed.
2. There are two service management methods, and the second one is recommended first.
2.1 clickhouse commands
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
reference link
Official tutorial
RPM download link
https://github.com/ClickHouse/ClickHouse/issues/14861