sudo apt-get install apt-transport-https ca-certificates dirmngr sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
echo "deb https://repo.clickhouse.tech/deb/stable/ main/" | sudo tee \ /etc/apt/sources.list.d/clickhouse.list sudo apt-get update
sudo apt-get install -y clickhouse-server clickhouse-client 修改用户名密码 sudo service clickhouse-server start root@ubuntu:/etc/clickhouse-server# clickhouse-client -h 127.0.0.1 -d default -m -u default --password
CREATE TABLE test02( id UInt16,col1 String,col2 String,create_date date ) ENGINE = MergeTree(create_date, (id), 8192);