官网教程:https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup
(1)安装TiUP
1.下载 : curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
2.设置环境变量:source .bash_profile
3.安装 TiUP cluster 组件:tiup cluster
4.升级TiUP cluster组件版本:tiup update --self && tiup update cluster
(2) 写配置文件
1.直接下载配置文件:tiup cluster template > topology.yaml
或者在github上直接看:https://github.com/pingcap/tiup/blob/master/embed/templates/examples/topology.example.yaml#L176
注解都很齐全,自己配置的话可以删少一点注解,不然太多了,主要的配置就是下面几个: