centos 安装clickhouse
时间: 2023-08-23 11:08:22 浏览: 151
clickhouse 在centos7 下离线安装包
以下是在 CentOS 7 上安装 ClickHouse 的步骤:
1. 添加 Yandex 的 RPM 源:
```bash
sudo rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
```
2. 安装 ClickHouse:
```bash
sudo yum install -y clickhouse-server clickhouse-client
```
3. 启动 ClickHouse 服务器:
```bash
sudo systemctl start clickhouse-server
```
4. 检查 ClickHouse 服务器状态:
```bash
sudo systemctl status clickhouse-server
```
如果一切正常,你应该能看到类似以下的输出:
```
● clickhouse-server.service - ClickHouse Server
Loaded: loaded (/usr/lib/systemd/system/clickhouse-server.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-07-30 02:21:05 UTC; 7s ago
Main PID: 2638 (clickhouse-serv)
CGroup: /system.slice/clickhouse-server.service
├─2638 /usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/var/run/clickhouse-server/clickhouse-s...
└─2639 /usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/var/run/clickhouse-server/clickhouse-s...
```
现在你已经成功安装了 ClickHouse。如果你需要进一步配置或管理 ClickHouse,请查看官方文档。
阅读全文