linux部署TIDB,参考官网

Amd64的安装方法:

1、下载并安装Tiup

执行:curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh

完成后出现:

2、声明全局环境变量

执行:source ${your_shell_profile}

${your_shell_profile} 需要修改为 Shell profile 文件的实际位置。

3、安装Tiup的cluster组件

执行:tiup cluster

4、执行如下命令,生成集群初始化配置文件:

执行:tiup cluster template > topology.yaml

5、修改topology.yaml配置文件

6、检查集群是否存在问题

执行:tiup cluster check ./topology.yaml --user root -p

解决存在的问题

7、部署TIDB集群

执行:tiup cluster deploy tidb-test v8.5.1 ./topology.yaml --user root -p

v8.5.1为版本号,可以通过执行 tiup list tidb 来查看 TiUP 支持的最新可用版本

8、检查部署的 TiDB 集群情况

执行:tiup cluster display tidb-test

9、安全启动集群

tiup cluster start tidb-test --init

预期结果

10、查看集群运行状态

执行:tiup cluster display tidb-test

11、访问相关数据库或平台

①数据库采用navicat访问,tidb_srevres

端口为默认4000,密码为上一步步骤预期结果中显示的信息

②Grafana 监控页面,grafana_servers

http://{grafana-ip}:3000,默认用户名和密码均为 admin

访问集群 TiDB Dashboard 监控页面,pd-servers

http://{pd-ip}:2379/dashboard,默认用户名为 root,密码为空

常用命令:

查看tiup集群:

tiup cluster list

停止集群:

tiup cluster stop 集群名称

销毁集群:

tiup cluster destroy tidb-test

扩缩容监控服务参考链接:

https://zhuanlan.zhihu.com/p/573299325

相关推荐
2601_9611940222 分钟前
27考研刘晓艳单词pdf
linux·sql·ubuntu·华为·pdf·.net
2023自学中2 小时前
imx6ull 开发板 推流ov5640数据,虚拟机用 ffplay 拉流播放
linux·音视频·嵌入式·开发板
shandianchengzi2 小时前
【记录】Ghidra|Ubuntu 26.04 下 Ghidra 界面缩放完整指南
linux·ubuntu·逆向·ghidra
天天进步20152 小时前
Python全栈项目--Python自动化运维工具开发
运维·python·自动化
Soari2 小时前
Ubuntu 根分区文件系统损坏,系统启动时自动检查失败
linux·运维·ubuntu
杨云龙UP3 小时前
Oracle Health Check巡检脚本使用SOP V2.0:从HTML原始报告→生成Word专业巡检报告→交付客户_2026-06-03
linux·运维·数据库·sql·oracle·报告·巡检
广州灵眸科技有限公司3 小时前
瑞芯微RV1126B开发板(EASY-EAI-PI2) Linux虚拟机准备
linux·运维·服务器
Lana学习中4 小时前
【运维杂记】连接不上远程服务器的问题处理
运维·服务器
AOwhisky4 小时前
MySQL 学习笔记(第一期):数据库基础与 MySQL 初探
运维·数据库·笔记·学习·mysql·云计算
Peace4 小时前
【Prometheus】
linux·运维·prometheus