#refer:https://github.com/Altinity/clickhouse-rpm-install
#refer:https://github.com/Altinity/clickhouse-rpm-install#install-packages-after-script
Centos安装
Install script,Ensure curl is installed on the system
$sudo yum install -y curl
$curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh|sudo bash
$sudo yum list'clickhouse*'
ClickHouse packages should be listed as available, something like this:
Available Packages
clickhouse-client.x86_64 18.1.0-1.el7 Altinity_clickhouse
clickhouse-common-static.x86_64 18.1.0-1.el7 Altinity_clickhouse
clickhouse-compressor.x86_64 1.1.54336-3.el7 Altinity_clickhouse
clickhouse-debuginfo.x86_64 18.1.0-1.el7 Altinity_clickhouse
clickhouse-mysql.noarch 0.0.20180319-1 Altinity_clickhouse
clickhouse-server.x86_64 18.1.0-1.el7 Altinity_clickhouse
clickhouse-server-common.x86_64 18.1.0-1.el7 Altinity_clickhouse
clickhouse-test.x86_64 18.1.0-1.el7 Altinity_clickhouse
#Install clickhouse
$sudo yum install -y clickhouse-server clickhouse-client
$sudo yum list installed'clickhouse*'
#start clickhouse
$sudo /etc/init.d/clickhouse-server restart
#connect clickhouse
$clickhouse-client
#Other
$sudo yum install -y pygpgme yum-utils
$sudo yum -q makecache -y --disablerepo='*'--enablerepo='altinity_clickhouse'
#
网友评论