ClickHouse启动失败

博客围绕启动操作展开,提及启动时可能出现报错情况,给出的解决方案是指定配置文件路径并进行后台启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动操作

sudo systemctl start clickhouse-server
sudo systemctl stop clickhouse-server
sudo systemctl status clickhouse-server

不要使用service clickhouse-server/etc/init.d/clickhouse-service

报错信息

[root@clickhouse04 ~]# systemctl status clickhouse-server
● clickhouse-server.service - ClickHouse Server (analytic DBMS for big data)
   Loaded: loaded (/etc/systemd/system/clickhouse-server.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2021-02-26 13:47:35 CST; 16s ago
  Process: 6106 ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid (code=exited, status=232/ADDRESS_FAMILIES)
 Main PID: 6106 (code=exited, status=232/ADDRESS_FAMILIES)

Feb 26 13:47:35 clickhouse04 systemd[1]: Unit clickhouse-server.service entered failed state.
Feb 26 13:47:35 clickhouse04 systemd[1]: clickhouse-server.service failed.

解决方案

指定配置文件路径

clickhouse-server --config-file=/etc/clickhouse-server/config.xml

后台启动

nohup clickhouse-server --config-file=/etc/clickhouse-server/config.xml &
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值