首页 > 其他分享 >clickhouse "status=232/ADDRESS_FAMILIES" "code=exited, status=70" 问题

clickhouse "status=232/ADDRESS_FAMILIES" "code=exited, status=70" 问题

时间:2023-07-19 12:12:54浏览次数:44  
标签:status code FAMILIES service server exited clickhouse

clickhouse 21.2.4.6安装时的问题

232问题

[root@localhost liang]# sudo 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 三 2023-07-19 11:26:57 CST; 22s ago
  Process: 14021 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: 14021 (code=exited, status=232/ADDRESS_FAMILIES)

7月 19 11:26:57 localhost.localdomain systemd[1]: clickhouse-server.service: main process exited, code=exited, status=232/ADDRESS_FAMILIES
7月 19 11:26:57 localhost.localdomain systemd[1]: Unit clickhouse-server.service entered failed state.
7月 19 11:26:57 localhost.localdomain systemd[1]: clickhouse-server.service failed.

70问题

[root@localhost liang]# sudo 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 三 2023-07-19 11:30:12 CST; 6s ago
  Process: 14190 ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml --pid-file=/run/clickhouse-server/clickhouse-server.pid (code=exited, status=70)
 Main PID: 14190 (code=exited, status=70)

7月 19 11:30:12 localhost.localdomain systemd[1]: clickhouse-server.service: main process exited, code=exited, status=70/n/a
7月 19 11:30:12 localhost.localdomain systemd[1]: Unit clickhouse-server.service entered failed state.
7月 19 11:30:12 localhost.localdomain systemd[1]: clickhouse-server.service failed.

232 似乎是日志问题,70是端口问题
博主也不太清楚,232后面跟了个address,但改了下日志权限就好了
查了一圈,网上的那几篇似乎不起作用,但通过gpt鼓捣出来了
232我是通过下面几个命令然后变成了70问题

ls -ld /var/lib/clickhouse/
ls -ld /var/log/clickhouse-server/
sudo chown -R clickhouse:clickhouse /var/lib/clickhouse/
sudo chown -R clickhouse:clickhouse /var/log/clickhouse-server/
sudo chmod 755 /var/lib/clickhouse/
sudo chmod 755 /var/log/clickhouse-server/
sudo systemctl restart clickhouse-server

然后再

vim /etc/clickhouse-server/config.xml

修改完是这样的

就是把 <listen_host>::</listen_host> 取消注释

sudo systemctl restart clickhouse-server
sudo systemctl status clickhouse-server

然后就能启动啦~

标签:status,code,FAMILIES,service,server,exited,clickhouse
From: https://www.cnblogs.com/liang8/p/17565210.html

相关文章

  • SecureBootEncodeUEFI 是一个操作系统启动过程中的安全功能,用于验证操作系统和驱动程
    SecureBootEncodeUEFI是一个操作系统启动过程中的安全功能,用于验证操作系统和驱动程序的签名,确保它们是由受信任的发行商发布并没有遭到篡改。这种技术可以防止恶意软件在系统启动时运行,并提供额外的安全层。SecureBootEncodeUEFI通常在计算机的UEFI(统一扩展固件接口)固件中实......
  • Leetcode日记
    日期题号题目解法难度2023-07-112741给定一个互不相同的正整数数组,找出特别排列(相邻元素互模任一为0)的总数目。取余dp+记忆,位运算,取余注意先加后取⭐⭐⭐1911求数组最大子序列交替和(偶数下标元素和减奇数下标元素和)dp⭐2023-07-121857有向图中求路径......
  • git commit 时报错:husky - pre-commit hook exited with code 1 (error)
    在使用git进行commit时出现错误:husky-pre-commithookexitedwithcode1(error)。方式一chatgpt的回答是:报错信息“husky-pre-commithookexitedwithcode1(error)”表示在执行Git提交操作时,pre-commit钩子脚本返回了非零的退出码,表示出现了错误。这种......
  • Codeforces Round #885 (Div. 2) A-D
    比赛链接A代码#include<bits/stdc++.h>usingnamespacestd;usingll=longlong;boolsolve(){intn,m,k;cin>>n>>m>>k;intx,y;cin>>x>>y;boolok=1;for(inti=1;i<=k;i++)......
  • Vscode Python Workspace 设定流程
    这里记录一下,使用vscode编写一个Python项目时,个人觉得比较舒服的配置方法:预先准备首先保存项目文件夹为工作区,获得xxx.code-workspace文件,以后通过它打开工作区。禁用不需要的插件。Python虚拟环境使用虚拟python环境可以把项目的依赖项安装到项目文件夹下,不会“污......
  • LeetCode 35.搜索插入位置
    题目:给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。请必须使用时间复杂度为 O(logn) 的算法。示例1:输入:nums=[1,3,5,6],target=5输出:2示例 2:输入:nums=[1,3,5,6],target=2输出:1......
  • LeetCode 852. Peak Index in a Mountain Array 二分
    Anarrayarramountainifthefollowingpropertieshold:arr.length>=3Thereexistssomeiwith0<i<arr.length-1suchthat:arr[0]<arr[1]<...<arr[i-1]<arr[i]arr[i]>arr[i+1]>...>arr[arr.length-......
  • C语言多文件编译(vs.code)
    C语言多文件编译(vs.code)1.保证已经进行完第一步:配置C语言环境如果还未进行,建议来这里查看2.在扩展商店下载插件C/C++ProjectGeneratorCMakeCMakeTools3.修改settings.json也可以直接用快捷键ctrl+,搜索coderunner并找到ExecutorMap在settings.json中编辑找到......
  • AtCoder Beginner Contest 310
    A-OrderSomethingElse#include<bits/stdc++.h>usingnamespacestd;#defineintlonglongint32_tmain(){ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr);intn,p,q;cin>>n>>p>>q;......
  • 8-102-(LeetCode- 207&210) 课程表
    1.题目 读题  考查点 2.解法思路这个问题可以用图论的方法来解决,具体思路如下:将课程和先修课程看作有向图的节点和边,如果要学习课程ai,则必须先学习课程bi,表示为bi->ai。判断图中是否存在环,如果存在环,则说明有些课程无法完成,返回false;如果不存在环,则说明所有课程都......