本文共 457 字,大约阅读时间需要 1 分钟。
clickhouse时区设置
sudo vim /etc/clickhouse-server/config.xml
<timezone>Asia/Shanghai</timezone>
保存,重启服务
sudo service clickhouse-server restart
测试:
bigdata@server01:~$ clickhouse-client
ClickHouse client version 18.14.13.Connecting to localhost:9000.Connected to ClickHouse server version 18.14.13 revision 54409.server01 :) select Now();
SELECT Now()
┌───────────────Now()─┐
│ 2018-11-09 14:08:21 │└─────────────────────┘1 rows in set. Elapsed: 0.010 sec.
转载地址:http://mjboa.baihongyu.com/