clickhouse 离线包安装(ubuntu)

  1. 下载离线安装包,下三个包,版本号要一致, (在此下的是20.9.7.11版)

clickhouse-server, clickhouse-client, clickhouse-common-static

Index of /clickhouse/deb/stable/main/

  1. 拷安装包到/disk/tool/install中,并进入到/disk/tool/install目录下。注意按顺序进行下面安装

  2. 输入:sudo dpkg -i clickhouse-common-static_20.9.7.11_amd64.deb

运行时,发现权限不够,无法运行,执行下面语句加权限,用通配符,将三个包都加了执行读写权限。 chomd 754 clickhouse*

  1. 输入:sudo dpkg -i clickhouse-server_20.9.7.11_all.deb

  2. 输入:sudo dpkg -i clickhouse-client_20.9.7.11_all.deb

  3. 输入:vim /etc/clickhouse-server/config.xml

  4. 修改<!-- <listen_host>::</listen_host> -->为:<listen_host>::</listen_host> ,防止连接的时候报错

  5. 输入:vim /etc/clickhouse-server/users.xml 找到<password></password>,设密码。

9.输入:service clickhouse-server start 启动服务

  1. 输入:systemctl enable clickhouse-server 设置开机启动

  2. 输入:systemctl start clickhouse-server 开启服务

  3. 输入:systemctl status clickhouse-server 查看状态

13 输入:clickhouse-client 验证客户端是否正常。 完成安装

(有密码用下面语句: clickhouse-client --password mykey )

clickhouse 服务常用操作:

启动服务:service clickhouse-server start

重启服务:systemctl restart clickhouse-server

停止服务:service clickhouse-server stop

相关推荐
西洼工作室4 分钟前
centos时间不正确解决
linux·运维·centos
再学一丢丢14 分钟前
用户管理和权限管理
linux·运维·服务器
碧寒31 分钟前
Ubuntu系统18.04更新驱动解决方法
linux·运维·ubuntu
charlie1145141911 小时前
IMX6ULL2025年最新部署方案2在Ubuntu24.04上编译通过Qt5.12.9且部署到IMX6ULL正点原子开发板上
linux·嵌入式硬件·qt·系统架构·嵌入式软件·移植教程
python_chai1 小时前
Python网络编程从入门到精通:Socket核心技术+TCP/UDP实战详解
网络·python·tcp/ip·udp·socket
Bardb1 小时前
05--MQTT物联网协议
linux·服务器·阿里云·json
Dream Algorithm1 小时前
室分系统(室内分布系统)详解
网络·信息与通信
红虾程序员1 小时前
Linux进阶命令
linux·服务器·前端
.R^O^1 小时前
VLAN的知识
linux·服务器·网络·mysql
长流小哥2 小时前
Linux 深入浅出信号量:从线程到进程的同步与互斥实战指南
linux·c语言·开发语言·bash