Linux下安装流程
1、下载仓库
curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh | sudo os=centos dist=7 bash
2、查看安装包
sudo yum list 'clickhouse*'
3、安装服务
sudo yum install -y clickhouse-server clickhouse-client
4、查看安装列表
sudo yum list installed 'clickhouse*'
控制台输出
Installed Packages
clickhouse-client.noarch
clickhouse-common-static.x86_64
clickhouse-server.noarch
5、查看配置
cd /etc/clickhouse-server/
vim config.xml
数据目录:/var/lib/clickhouse/
临时目录:/var/lib/clickhouse/tmp/
日志目录:/var/log/clickhouse-server
HTTP端口:8123
TCP 端口:9000
6、配置访问权限
config.xml文件中去掉下面配置的注释。
<listen_host>::</listen_host>
7、启动服务
/etc/rc.d/init.d/clickhouse-server start
8、查看服务
ps -aux |grep clickhouse