当前位置:网站首页>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 clickhouse2. View clickhouse service
service clickhouse-server status3. Close the clickhouse service
sudo service clickhouse-server stop//or simply end the processps -ef|grep clickkill -9 process code4. 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-server5. 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.rpmModify 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 start7. 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 itUninstalling, 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~
边栏推荐
- 【技术分享】OSPFv3基本原理
- 一文带你了解推荐系统常用模型及框架
- Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’
- 阿里巴巴 CTO 程立:开源是基础软件的源头!
- AutoJs学习-AES加解密
- Daily practice of dynamic programming (3)
- R语言ggpubr包的ggline函数可视化分组折线图、add参数为mean_se和dotplot可视化不同水平均值的折线图并为折线图添加误差线(se标准误差)和点阵图、自定义palette设置颜色
- Two-dimensional array piecemeal knowledge sorting
- R语言时间序列数据算术运算:使用log函数将时间序列数据的数值对数化、使用diff函数计算对数化后的时间序列数据的逐次差分(计算价格的对数差分)
- HikariCP数据库连接池,太快了!
猜你喜欢

matlab-day02

新“内卷”席卷科技圈,Google CEO 要求 174000 员工提高工作效率!

要长续航还是更安全?海豹与深蓝SL03对比导购

瑞萨RZ/G2L处理器详细测评

【新版干货书】深度伪造 (DeepFakes):创造,检测和影响
![[Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation](/img/25/e16bac4e789cddadffd43ed9e9df7c.jpg)
[Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation

LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一:解题思路

Redis数据结构

2022牛客暑期多校训练营4(ADHKLMN)

QT专题:事件机制event基础篇
随机推荐
The k-nearest neighbor method in the notes of Li Hang's "Statistical Learning Methods"
node制作一个视频帧长图生成器
小程序云开发(十):渐变与动画
8月份的.NET Conf 活动 专注于 .NET MAUI
日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
leetcode 62. Unique Paths(独特的路径)
[Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation
DVWA 通关记录 2 - 命令注入 Command Injection
你认同这个观点吗?大多数企业的数字化都只是为了缓解焦虑
QT专题:事件机制event基础篇
膜拜,Alibaba分布式系统开发与核心原理解析手册
周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条...
智能网络安全网卡|这是不是你要的安全感
AutoJs学习-存款计算器
php组件漏洞
STL中list实现
第十七章 Excel操作
[Concurrent programming] - Thread pool uses DiscardOldestPolicy strategy, DiscardPolicy strategy
MySql千万级分页优化,快速插入千万数据方法
HCIA动态主机配置协议实验(dhcp)