# 使用 TiUP 部署步骤 2: 安装 TiUP 组件

__*TiDB 部署步骤*__
__*TiUP 组件安装*__

+ 下载并安装 TiUP 工具:
  + `$ curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh`

+ 设置 TiUP 环境变量:
  + `$ source .bash_profile`

+ 安装 TiUP cluster 组件:
  + `$ tiup cluster`

-------------------------------------------------------------
使用普通用户登录中控机,后续安装 TiUP 及集群管理操作均通过该用户完成:

1. 执行如下命令安装 TiUP 工具:
`$ curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh`

2. 设置 TiUP 环境变量:
`$ source <profile_file_path>`

3. 安装 TiUP cluster 组件:
`$ tiup cluster`

详细步骤,请参考:https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup
