ClickHouse/docs/zh/operations/update.md
2022-04-10 17:08:18 -06:00

19 lines
590 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_position: 47
sidebar_label: "更新"
---
# 更新 {#clickhouse-update}
如果从deb包安装ClickHouse请在服务器上执行以下命令:
``` bash
$ sudo apt-get update
$ sudo apt-get install clickhouse-client clickhouse-server
$ sudo service clickhouse-server restart
```
如果您使用除推荐的deb包之外的其他方式安装ClickHouse请使用适当的更新方法。
ClickHouse不支持分布式更新。该操作应在每个单独的服务器上连续执行。不要同时更新群集上的所有服务器否则群集将在一段时间内不可用。