(二)TIDB搭建正式集群
需要在linux系统各种搭建集群或者单结点。一准备环境linux环境关闭防火墙。安装盘大于30G否则会失败。二、下载包官网https://pingkai.cn/download#tidb-community部署手册https://pingkai.cn/docs/pingkaidb/stable/production-deployment-using-tiup/三、在线安装TIUPtiup默认的安装路径~/.tiup即/root/.tiup 所有的组件都在这个下面如果我们安装到指定的目录下1、指定目录export TIUP_HOME/data/tidb/tiup2、下载TIUPcurl --proto https --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh3、声明全局环境变量source /root/.bash_profile4、查看环境变量[rootlocalhost ~]# cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH$PATH:$HOME/bin export PATH export PATH/data/tidb/tiup/bin:$PATH如果第一次默认安装第二次在修改了路径此时.bash_profile文件中的路径没有删除请手动修改否则 which tiup 的时候无法查看。5、验证tiupwhich tiup tiup --version此时我们的tiup就安装好了下面就可以使用 tiup cluster 命令安装各个组件了。四、使用tiup cluster 搭建正式集群1、创建拓扑文件tiup cluster template /data/tidb/topology.yaml2、topology.yaml文件中文件路径和ip 端口都是使用默认的# # Global variables are applied to all deployments and used as the default value of # # the deployments if a specific deployment value is missing. global: # # The user who runs the tidb cluster. user: tidb # # group is used to specify the group name the user belong to if its not the same as user. # group: tidb # # SSH port of servers in the managed cluster. ssh_port: 22 # # Storage directory for cluster deployment files, startup scripts, and configuration files. deploy_dir: /data/tidb/tidb-deploy # # TiDB Cluster data storage directory data_dir: /data/tidb/tidb-data # # default listen_host for all components listen_host: 192.168.50.20 # # Supported values: amd64, arm64 (default: amd64) arch: amd64 # # Monitored variables are applied to all the machines. monitored: # # The communication port for reporting system information of each node in the TiDB cluster. node_exporter_port: 9100 # # Blackbox_exporter communication port, used for TiDB cluster port monitoring. blackbox_exporter_port: 9115 # # Server configs are used to specify the configuration of PD Servers. pd_servers: # # The ip address of the PD Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of TiDB Servers. tidb_servers: # # The ip address of the TiDB Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of TiKV Servers. tikv_servers: # # The ip address of the TiKV Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of TiFlash Servers. tiflash_servers: # # The ip address of the TiFlash Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of Prometheus Server. monitoring_servers: # # The ip address of the Monitoring Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of Grafana Servers. grafana_servers: # # The ip address of the Grafana Server. - host: 192.168.50.20 # # Server configs are used to specify the configuration of Alertmanager Servers. alertmanager_servers: # # The ip address of the Alertmanager Server. - host: 192.168.50.203、从拓扑文件中部署一个名字为demo_tidb 版本为v8.5.5的集群tiup cluster deploy demo_tidb v8.5.5 /data/tidb/topology.yaml --user root -p比较慢静静地等待就可以了。4、成功标志5、启动集群--初始化启动初始化了密码优先使用 tiup cluster start ontology_tidb --init --普通启动tidb密码为空 tiup cluster start ontology_tidb 成功了提示started cluster demo_tidb successfully6、集群的其他操作1、停止集群 tiup cluster stop demo_tidb 2、查看集群状态 tiup cluster display demo_tidb 3、销毁集群 tiup cluster destroy demo_tidb 4.卸载tiup --卸载 tiup 组件 tiup uninstall --all --卸载自己 tiup uninstall --self 5、最后删除掉创建的目录文件7、访问控制台http://192.168.50.20:2379/8、使用客户端连接mysql 8.0以上驱动均可。

相关新闻

mdBook 环境变量配置指南:用 MDBOOK_ 前缀覆盖 book.toml 中的任意配置

mdBook 环境变量配置指南:用 MDBOOK_ 前缀覆盖 book.toml 中的任意配置

开发工具文档 【免费下载链接】mdBook Create book from markdown files. Like Gitbook but implemented in Rust 项目地址: https://gitcode.com/gh_mirrors/md/mdBook 点击查看 免费下载 mdBook 的所有配置项都可以通过命令行环境变量在运行时覆盖,无…

2026/10/1 16:54:55 阅读更多 →
如何通过三维价值挖掘模型实现轻资产创业:从资源到收益的系统方法论

如何通过三维价值挖掘模型实现轻资产创业:从资源到收益的系统方法论

如何通过三维价值挖掘模型实现轻资产创业:从资源到收益的系统方法论 轻资产创业已成为个体经济时代的主流模式,据《2024年全球创业报告》显示,采用副产品变现模式的一人企业平均启动成本仅为传统创业的17%,且3年内存活率高达68%。…

2026/10/1 16:54:55 阅读更多 →
小米MiMo-V2.6双版本发布:Pro与Flash开源模型部署与选型指南

小米MiMo-V2.6双版本发布:Pro与Flash开源模型部署与选型指南

1. 小米 MiMo-V2.6 双版本发布背后的产品逻辑小米这次把 MiMo-V2.6 拆成 Pro 和 Flash 两个版本,而且价格保持不变,这个动作本身就值得琢磨。我第一时间看到这个消息的时候,脑子里冒出来的第一个念头是:小米在开源模型这条路上&am…

2026/10/1 16:53:55 阅读更多 →

最新新闻

ComfyUI v0.37跑通Qwen-Image-2.1:从模型部署到稳定出图全攻略

ComfyUI v0.37跑通Qwen-Image-2.1:从模型部署到稳定出图全攻略

昨天把 ComfyUI 更新到了 v0.37,顺手把 Qwen-Image-2.1 跑通了。整个过程比我预想的顺利,但中间也踩了几个坑——比如模型路径不对、采样器选错导致画面发灰、爆内存等等。这篇就好好记录一下,从下载模型到稳定出图的完整流程,顺带…

2026/10/1 18:15:34 阅读更多 →
Spring Boot房产交易系统毕业设计:从技术选型到远程调试全攻略

Spring Boot房产交易系统毕业设计:从技术选型到远程调试全攻略

每年到这个时间点,都会有一批计算机、软件工程的同学为毕业设计发愁。如果你拿到的是“基于Spring Boot的房产交易系统”,那先恭喜你,这个题目的上限和下限都很清楚,不会太冷门也不太容易翻车。我帮学弟学妹做过不少毕业设计的运行…

2026/10/1 18:15:34 阅读更多 →
Agent Memory 分层架构与 MCP 实战:从记忆写入到 Docker 部署

Agent Memory 分层架构与 MCP 实战:从记忆写入到 Docker 部署

1. 从“hindsight”说起:为什么记忆是 Agent 落地的最后一公里“hindsight”这个词本身很有意思,字面意思是“事后的洞察力”,也就是我们常说的“后见之明”。把这个词放到 Agent Memory 这个语境里,它其实精准地戳中了一个痛点&a…

2026/10/1 18:15:34 阅读更多 →
【Java并发编程系列7】线程池基本知识

【Java并发编程系列7】线程池基本知识

初识线程池我们知道,线程的创建和销毁都需要映射到操作系统,因此其代价是比较高昂的。出于避免频繁创建、销毁线程以及方便线程管理的需要,线程池应运而生。线程池优势降低资源消耗:线程池通常会维护一些线程(数量为 c…

2026/10/1 18:15:34 阅读更多 →
AMD ROCm上Gemma4情绪分析LoRA微调实战指南

AMD ROCm上Gemma4情绪分析LoRA微调实战指南

1. 这不是“跑个demo”——它是一次在AMD生态里把大模型微调链路彻底打通的实操验证我在 AMD ROCm 云上真跑通了 Gemma4 情绪 LoRA 微调:准确率 0.594 → 0.734,附 4 个坑和全套截图。这句话里每一个词都不是虚的——AMD ROCm是硬件底座的硬约束&#xf…

2026/10/1 18:15:34 阅读更多 →
基于MATLAB的PQ解耦法风电并网潮流计算:从原理到实现

基于MATLAB的PQ解耦法风电并网潮流计算:从原理到实现

风电并网仿真做到一定程度,很多人都会碰上一个尴尬局面:常规规模的IEEE标准节点系统,用MATLAB里现成的牛顿-拉夫逊法算潮流,顺畅得很;可一旦把风电场接入点做细——多台双馈风机等值、集电线路、无功补偿、升压变压器全…

2026/10/1 18:14:34 阅读更多 →

日新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 0:00:30 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 0:00:30 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 1:01:17 阅读更多 →

周新闻

如何划分训练/验证集:Spirula Studio五种eval_mode策略详解

如何划分训练/验证集:Spirula Studio五种eval_mode策略详解

如何划分训练/验证集:Spirula Studio五种eval_mode策略详解 【免费下载链接】spirula-studio Cross-vendor 3D Gaussian Splatting trainer - video to splat to mesh, Vulkan or CUDA. 项目地址: https://gitcode.com/GitHub_Trending/sp/spirula-studio Sp…

2026/9/30 13:14:22 阅读更多 →
SEO怎么推广速查手册新手避坑实战指南

SEO怎么推广速查手册新手避坑实战指南

SEO怎么推广速查手册新手避坑实战指南 模板网站太丑不够用?别急着加滤镜,那是治标不治本。很多老板盯着后台流量掉得眼红,却还在纠结首页Banner的圆角是不是3像素。这就像穿着西装去挖土,姿势不对,努力白费。我整理这份 速查手册…

2026/9/30 18:13:06 阅读更多 →
FireRed-OpenStoryline少样本仿写深度解析:AI Agent如何复刻你的独特文案风格与节奏

FireRed-OpenStoryline少样本仿写深度解析:AI Agent如何复刻你的独特文案风格与节奏

FireRed-OpenStoryline少样本仿写深度解析:AI Agent如何复刻你的独特文案风格与节奏 【免费下载链接】FireRed-OpenStoryline FireRed-OpenStoryline is an AI video editing agent that transforms manual editing into intention-driven directing through natural language …

2026/9/30 13:14:49 阅读更多 →

月新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 0:00:30 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 0:00:30 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 1:01:17 阅读更多 →