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

相关推荐
funnycoffee12321 分钟前
centos 上没有安装telnet命令 ,如何测试到1个目标IP的 443端口是否open
linux·tcp/ip·centos
威迪斯特22 分钟前
Ubuntu的apt命令详解:系统管理的核心工具
运维·服务器·ubuntu·apt·下载·包管理·维护
QuestLab29 分钟前
【第20期】2026年4月23日 AI日报
运维·服务器·人工智能
第八学期30 分钟前
如何解决挖矿病毒的攻击
运维·服务器·安全
爱莉希雅&&&33 分钟前
Ansible+Docker案例(含ansible配置安装docker)
linux·运维·mysql·nginx·docker·容器·ansible
wicb91wJ638 分钟前
Linux服务器性能调优常用命令
linux·服务器·网络
圆山猫40 分钟前
[AI] [Linux] 教我编一个启用rust的riscv kernel用于qemu启动
linux·ai·rust
zhang1338308907541 分钟前
QY-18DL-1倾斜位移裂缝计:智能地质安全监测先锋
运维·网络·安全
嘿嘿潶黑黑1 小时前
关于Debian源速度慢的解决方法
运维·debian
RisunJan1 小时前
Linux命令-nmap(网络探测和安全审计工具)
linux·网络·安全