Skip to content

Commit 323a643

Browse files
JoyinqinTomShawn
andauthored
Update production-offline-deployment-using-tiup.md (pingcap#3847)
* Update production-offline-deployment-using-tiup.md * Update production-offline-deployment-using-tiup.md Co-authored-by: TomShawn <[email protected]>
1 parent 3cb18ef commit 323a643

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

production-offline-deployment-using-tiup.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,16 @@ After sending the package to the control machine of the target cluster, install
7272

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

75-
```shell
75+
```bash
7676
tar xzvf tidb-community-server-${version}-linux-amd64.tar.gz
7777
sh tidb-community-server-${version}-linux-amd64/local_install.sh
7878
source /home/tidb/.bash_profile
7979
```
8080

81+
The `local_install.sh` script automatically executes the `tiup mirror set tidb-community-server-${version}-linux-amd64` command to set the current mirror address to `tidb-community-server-${version}-linux-amd64`.
82+
83+
To switch the mirror to another directory, you can manually execute the `tiup mirror set <mirror-dir>` command.
84+
8185
## Step 3: Mount the TiKV data disk
8286

8387
> **Note:**
@@ -236,13 +240,12 @@ alertmanager_servers:
236240

237241
## Step 5: Deploy the TiDB cluster
238242

239-
`/path/to/mirror` is the location of the offline mirror package that is output by the `local_install.sh` command:
243+
Execute the following command to deploy the TiDB cluster:
240244

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

243-
```shell
244-
export TIUP_MIRRORS=/path/to/mirror &&
245-
tiup cluster deploy tidb-test v4.0.0 topology.yaml --user tidb [-p] [-i /home/root/.ssh/gcp_rsa] &&
247+
```bash
248+
tiup cluster deploy tidb-test v4.0.0 topology.yaml --user tidb [-p] [-i /home/root/.ssh/gcp_rsa]
246249
tiup cluster start tidb-test
247250
```
248251

0 commit comments

Comments
 (0)