Skip to main content

Dev install

Docker

run

https://hub.docker.com/r/clickhouse/clickhouse-server/

docker run -d \
--name clickhouse-server \
-p 18123:8123 -p19000:9000 \
-v $(realpath ./ch_data):/var/lib/clickhouse/ \
-v $(realpath ./ch_logs):/var/log/clickhouse-server/ \
-e CLICKHOUSE_DB=my_database \
-e CLICKHOUSE_USER=username \
-e CLICKHOUSE_PASSWORD=password \
-e CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 \
--ulimit nofile=262144:262144
clickhouse/clickhouse-server

verify

echo 'SELECT version()' | curl 'http://localhost:8123/' --data-binary @-