💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# ClickHouse安装 ## ClickHouse单节点部署 ### 安装方式 1、YUM安装 1)安装curl工具 yum install -y curl 2)添加clickhouse的yum镜像 curl -s[https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh](https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh)| sudo bash 3)检查镜像情况 yum list | grep clickhouse 4)安装clickhouse的服务端和客户端 yum install -y clickhouse-server clickhouse-client 5)启动服务 service clickhouse-server start 6)启动交互式客户端 clickhhouse-client --password 2、Tgz安装 下载tgz安装包进行tar -xzvf安装 3、Rpm安装 下载rpm包下载安装 ![](https://img.kancloud.cn/cb/7d/cb7d2812fdf5ef0424b53a1d930a8ced_797x73.png) ~~~ sudo rpm -ivh \* ~~~ ![](https://img.kancloud.cn/c4/34/c43445fc87399d1d0ce04c2444e9b375_800x469.png) 启动命令: ~~~ clickhouse start clickhouse-client --password ~~~ 生成的目录文件 /etc/clickhouse-server:配置文件目录,包括:config.xml和users.xml /etc/clickhouse-client:客户端配置文件目录 /var/lib/clickhouse:默认数据目录 /var/log/clickhouse-server:默认日志目录 /etc/init.d/clickhouse-server:启动shell脚本 /etc/security/limits.d/clickhouse.conf:最大文件打开数的配置 /etc/cron.d/clickhouse-server:定时任务配置,默认没有任务 /usr/bin/clickhouse-client:clickhouse客户端 查看启动情况,默认端口9000 ![](https://img.kancloud.cn/71/24/71248fcd4d4c3daac2e7b1a2cfc1fe0f_830x49.png) show databases ![](https://img.kancloud.cn/cb/82/cb82f94ff21a127b4bc4efe743eaccac_394x175.png) 文档参考:[https://clickhouse.tech/docs/zh/getting-started/install/](https://clickhouse.tech/docs/zh/getting-started/install/)