Clickhouse在Mac M1 MBP上安装

sudo su -
cd /opt

要下载ARM64版本的安装程序,才可能苹果M1笔记本上安装。

curl -O ‘https://builds.clickhouse.com/master/macos-aarch64/clickhouse
&& chmod a+x ./clickhouse
./clickhouse install

./clickhouse install --binary-path=/usr/local/bin

ClickHouse has been successfully installed.

Start clickhouse-server with:

sudo clickhouse start

Start clickhouse-client with:

clickhouse-client --password

指定目录安装
clickhouse install --binary-path=/usr/local/bin

指定目录启动
clickhouse start --binary-path=/usr/local/bin

这样在M1笔记本上半Mac最方便的,比Docker和本地编辑Clickhouse的CPP版本都方便。

PS:
https://djcurtis.me/installing-clickhouse-on-an-m1-mac.html
https://clickhouse.com/docs/en/install