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

相关推荐
未济3 天前
linux 配置环境变量
linux
傲世仙尊3 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
虎头金猫3 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
_艾伦 耶格尔.3 天前
进程间通信
linux
Liuqy-053 天前
Linux IO编程——静态库、动态库
linux
wuyk5553 天前
《WiFi 嵌入式物联网开发全套实战》| 第 16 章 ESP32 AP+STA 双模共存原理与工程坑点
网络·stm32·物联网
彧azz3 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅3 天前
linux(8) 软硬链接
linux·运维·服务器
Wang's Blog3 天前
Java 项目实战: 外卖平台-文件下载与ServletOutputStream回写浏览器
服务器·项目开发
AIgorithmGEEK3 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid