[root@zhcy-bd01 ]# yum install clickhouse-server clickhouse-client
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* elrepo: hkg.mirror.rackspace.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
repo.clickhouse.tech_rpm_stable_x86_64 | 3.0 kB 00:00:00
repo.clickhouse.tech_rpm_stable_x86_64/primary_db | 452 kB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package clickhouse-client.noarch 0:22.1.3.7-2 will be installed
--> Processing Dependency: clickhouse-common-static = 22.1.3.7-2 for package: clickhouse-client-22.1.3.7-2.noarch
---> Package clickhouse-server.noarch 0:22.1.3.7-2 will be installed
--> Running transaction check
---> Package clickhouse-common-static.x86_64 0:22.1.3.7-2 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================================================================
Installing:
clickhouse-client noarch 22.1.3.7-2 repo.clickhouse.tech_rpm_stable_x86_64 130 k
clickhouse-server noarch 22.1.3.7-2 repo.clickhouse.tech_rpm_stable_x86_64 154 k
Installing for dependencies:
clickhouse-common-static x86_64 22.1.3.7-2 repo.clickhouse.tech_rpm_stable_x86_64 205 M
Transaction Summary
================================================================================================================================================================================================================================
Install 2 Packages (+1 Dependent package)
Total download size: 206 M
Installed size: 678 M
Is this ok [y/d/N]: Y
Downloading packages:
(1/3): clickhouse-client-22.1.3.7-2.noarch.rpm | 130 kB 00:00:01
(2/3): clickhouse-server-22.1.3.7-2.noarch.rpm | 154 kB 00:00:00
(3/3): clickhouse-common-static-22.1.3.7-2.x86_64.rpm | 205 MB 00:00:47
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.3 MB/s | 206 MB 00:00:47
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : clickhouse-common-static-22.1.3.7-2.x86_64 1/3
Installing : clickhouse-server-22.1.3.7-2.noarch 2/3
Cannot set'net_admin' or 'ipc_lock' or 'sys_nice' capability for clickhouse binary. This is optional. Taskstats accounting will be disabled. To enable taskstats accounting you may add the required capability later manually.
ClickHouse binary is already located at /usr/bin/clickhouse
Symlink /usr/bin/clickhouse-server already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-server to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-client to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-local to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-benchmark to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-copier already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-copier to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-obfuscator to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-git-import to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-compressor to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-format to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-extract-from-config already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-extract-from-config to /usr/bin/clickhouse.
Creating clickhouse groupif it does not exist.
groupadd -r clickhouse
Creating clickhouse user if it does not exist.
useradd -r --shell /bin/false --home-dir/nonexistent -g clickhouse clickhouse
Will set ulimits for clickhouse user in /etc/security/limits.d/clickhouse.conf.
Creating config directory /etc/clickhouse-server/config.d that is used for tweaks of main server configuration.
Creating config directory /etc/clickhouse-server/users.d that is used for tweaks of users configuration.
Config file /etc/clickhouse-server/config.xml already exists, will keep it and extract path info from it./etc/clickhouse-server/config.xml has /var/lib/clickhouse/ as data path./etc/clickhouse-server/config.xml has /var/log/clickhouse-server/ as log path.
Users config file /etc/clickhouse-server/users.xml already exists, will keep it and extract users info from it.
Creating log directory /var/log/clickhouse-server/.
Creating data directory /var/lib/clickhouse/.
Creating pid directory /var/run/clickhouse-server.
chown -R clickhouse:clickhouse '/var/log/clickhouse-server/'
chown -R clickhouse:clickhouse '/var/run/clickhouse-server'
chown clickhouse:clickhouse '/var/lib/clickhouse/'
groupadd -r clickhouse-bridge
useradd -r --shell /bin/false --home-dir/nonexistent -g clickhouse-bridge clickhouse-bridge
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-odbc-bridge'
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-library-bridge'
Password for default user is empty string. See /etc/clickhouse-server/users.xml and /etc/clickhouse-server/users.d to change it.
Setting capabilities for clickhouse binary. This is optional.
chown -R clickhouse:clickhouse '/etc/clickhouse-server'
ClickHouse has been successfully installed.Start clickhouse-server with:
sudo clickhouse startStart clickhouse-client with:
clickhouse-client
Created symlink from/etc/systemd/system/multi-user.target.wants/clickhouse-server.service to /etc/systemd/system/clickhouse-server.service.
Installing : clickhouse-client-22.1.3.7-2.noarch 3/3
Verifying : clickhouse-common-static-22.1.3.7-2.x86_64 1/3
Verifying : clickhouse-server-22.1.3.7-2.noarch 2/3
Verifying : clickhouse-client-22.1.3.7-2.noarch 3/3
Installed:
clickhouse-client.noarch 0:22.1.3.7-2 clickhouse-server.noarch 0:22.1.3.7-2
Dependency Installed:
clickhouse-common-static.x86_64 0:22.1.3.7-2
Complete!