Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check-before-deployment.md (#5823) #5846

Merged
merged 1 commit into from
Mar 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cherry pick #5823 to master
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
xyqcmss authored and ti-srebot committed Mar 25, 2021
commit 0e85b16eefe48c85c95673b6d4e59bacafc41062
3 changes: 2 additions & 1 deletion check-before-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,12 @@ sudo systemctl enable ntpd.service
tidb ALL=(ALL) NOPASSWD: ALL
```

3. 以 `tidb` 用户登录到中控机,执行以下命令。将 `10.0.1.1` 替换成你的部署目标机器 IP,按提示输入部署目标机器 `tidb` 用户密码,执行成功后即创建好 SSH 互信,其他机器同理。
3. 以 `tidb` 用户登录到中控机,执行以下命令。将 `10.0.1.1` 替换成你的部署目标机器 IP,按提示输入部署目标机器 `tidb` 用户密码,执行成功后即创建好 SSH 互信,其他机器同理。新建的 `tidb` 用户下没有 `.ssh` 目录,需要执行生成 rsa 密钥的命令来生成 `.ssh` 目录。如果要在中控机上部署 TiDB 组件,需要为中控机和本机配置互信。

{{< copyable "shell-regular" >}}

```bash
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub 10.0.1.1
```

Expand Down