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

相关推荐
Sheffield3 小时前
Docker的跨主机服务与其对应的优缺点
linux·网络协议·docker
Sheffield11 小时前
Alpine是什么,为什么是Docker首选?
linux·docker·容器
Johny_Zhao1 天前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev1 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
0xDevNull2 天前
Linux切换JDK版本详细教程
linux
进击的丸子2 天前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端
茶杯梦轩2 天前
从零起步学习RabbitMQ || 第二章:RabbitMQ 深入理解概念 Producer、Consumer、Exchange、Queue 与企业实战案例
服务器·后端·消息队列
Johny_Zhao4 天前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
YuMiao5 天前
gstatic连接问题导致Google Gemini / Studio页面乱码或图标缺失问题
服务器·网络协议