docker run --restart=always --name clickhouse \
--ulimit nofile=262144:262144 \
--volume=$PWD/data:/var/lib/clickhouse \
-p 8123:8123 \
-p 9000:9000 \
-e CLICKHOUSE_USER=default \
-e CLICKHOUSE_PASSWORD=123456 \
-d yandex/clickhouse-server
yum install yum-utils
yum-config-manager --add-repo https://packages.clickhouse.com/rpm/clickhouse.repo
yum install clickhouse-server clickhouse-client
systemctl enable clickhouse-server
systemctl start clickhouse-server
systemctl status clickhouse-server
/etc/init.d/clickhouse-server start
lsof -i :8123
vi /etc/clickhouse-server/config.xml
<listen_host>::</listen_host>
vi /etc/clickhouse-server/users.xml
<password>123456</password>