1、TiUP

1.1 TiUP部署步骤1 - 软硬件环境需求及前置检查

快速搭建:https://docs.pingcap.com/tidb/stable/quick-start-with-tidb

  1. 存储参数配置
  2. 关闭swap
  3. 关闭防火墙
  4. 安装NTP服务
  5. 操作系统优化参数
  6. SSH互信与sudo免密配置
  7. numactl工具安装

1.2 TiUP部署步骤2 - 安装TiUP组件

curl —proto ‘=https’ —tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh

source /root/.bash_profile

tiup cluster

tiup update —self && tiup update cluster