ClickHouse启动失败

启动操作

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 &

你可能感兴趣的:(ClickHouse)