Skip to content

Instantly share code, notes, and snippets.

@wangshouh
Created January 13, 2023 13:50
Show Gist options
  • Save wangshouh/8829fe24636b4c9eb233520a54a8f4e4 to your computer and use it in GitHub Desktop.
Save wangshouh/8829fe24636b4c9eb233520a54a8f4e4 to your computer and use it in GitHub Desktop.

本 gist 介绍 clickhouse 的安装。

使用以下命令下载:

curl https://clickhouse.com/ | sh

使用以下命令安装:

sudo ./clickhouse install

前往/etc/clickhouse-server/config.d修改对应配置文件,并使用以下命令赋予root相关权限:

sudo chown -R root /var/lib/clickhouse /var/log/clickhouse-server /etc/clickhouse-server

使用以下命令启动服务器:

sudo /usr/bin/clickhouse-server --config-file /etc/clickhouse-server/config.xml --pid-file /var/run/clickhouse-server/clickhouse-server.pid --daemon

关闭防火墙:

systemctl stop firewalld

前往指定端口查看play

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment