当前位置:网站首页>Linux system uninstall, install, upgrade, migrate clickHouse database
Linux system uninstall, install, upgrade, migrate clickHouse database
2022-08-02 09:55:00 【night rain】
1. View the clickhouse version
rpm -qa|grep clickhouse
2. View clickhouse service
service clickhouse-server status
3. Close the clickhouse service
sudo service clickhouse-server stop//or simply end the processps -ef|grep clickkill -9 process code
4. Uninstall clickhouse
yum remove -y clickhouse-common-staticyum remove -y clickhouse-server-commonrm -rf /var/lib/clickhouserm -rf /etc/clickhouse-*rm -rf /var/log/clickhouse-server
5. Install clickhouse
Download three clickHouse files
Select the same version for three files, and versions below 21 may not be supportedclickhouse window function, I chose version 21.3.4.25
//Install clickhouse components in orderrpm -ivh clickhouse-common-static-21.3.4.25-2.x86_64.rpmrpm -ivh clickhouse-server-21.3.4.25-2.noarch.rpmrpm -ivh clickhouse-client-21.3.4.25-2.noarch.rpm
Modify config and users configuration
Modify the configuration vim /etc/clickhouse-server/config.xml Change to the location where data is stored after this line/var/lib/clickhouse/ Modify the configuration vim /etc/clickhouse-server/users.xml database username and passworddefault default default
6. Start the clickhouse service
sudo service clickhouse-server start
7. Migrate clickhouse data
First check where the clickhouse data existscat /etc/clickhouse-server/config.xmlView The path after this lineThe path defaults to /var/lib/clickhouseCompress data, metadata, store folder data (data: database name, metadata: database table sql, store: data)tar -zcvf filenametar -xvf filename.gazUnzip and overwrite the three files in the /var/lib/clickhouse path of clickhouse in the new serverstart clickhouse servicesudo service clickhouse-server startNext, let's connect and test it
Uninstalling, installing, upgrading, and migrating the clickHouse database have all been explained here!
If the article is wrong or in doubt, please leave a message to discuss~
边栏推荐
- 被报表需求逼疯的银行数据人,是时候放弃用Excel做报表了
- This article takes you to understand the commonly used models and frameworks of recommender systems
- [Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
- 斯皮尔曼相关系数
- LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路
- 周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条...
- 软件测试与质量 之白盒测试
- 膜拜,Alibaba分布式系统开发与核心原理解析手册
- mysql进阶(二十一)删除表数据与数据库四大特性
- 1对1视频源码——快速实现短视频功能提升竞争力
猜你喜欢
随机推荐
function call to print lua internal structure
软件测试H模型
从零开始入门单片机(一):必会背景知识总结
谈谈对Volatile的理解
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
中国发布丨滴滴因违反网络安全法等被罚80.26亿元!调查细节公布
向量点积(Dot Product),向量叉积(Cross Product)
[Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
The love-hate relationship between C language volatile keyword, inline assembly volatile and compiler
AutoJs学习-实现科赫雪花
瑞萨RZ/G2L处理器详细测评
软件测试X模型
Getting Started with SCM from Scratch (1): Summary of Background Knowledge
HCIA静态路由综合练习
练习-17
李航《统计学习方法》笔记之k近邻法
享年94岁,图灵奖得主、计算复杂性理论先驱Juris Hartmanis逝世
在全志V853开发板试编译QT测试
【技术分享】OSPFv3基本原理