Skip to content

Commit 4284c8d

Browse files
authored
Merge pull request #25662 from guzj11/patch-48
Update install-kubectl.md
2 parents 5c51dfa + b877acd commit 4284c8d

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

content/zh/docs/tasks/tools/install-kubectl.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,24 @@ If you are on macOS and using [Homebrew](https://brew.sh/) package manager, you
234234
-->
235235
### 在 macOS 上使用 Homebrew 安装 {#install-with-homebrew-on-macos}
236236

237-
如果你在 macOS 上且使用 [Homebrew](https://brew.sh/) 包管理器,
237+
如果你使用的是 macOS 系统且使用 [Homebrew](https://brew.sh/) 包管理器,
238238
你可以使用 Homebrew 来安装 kubectl。
239239

240240
<!--
241241
1. Run the installation command:
242242
-->
243243
1. 运行安装命令:
244244

245+
```bash
246+
brew install kubectl
245247
```
248+
249+
<!--
250+
or
251+
-->
252+
或者
253+
254+
```bash
246255
brew install kubernetes-cli
247256
```
248257

@@ -269,8 +278,9 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
269278
-->
270279
1. 运行安装命令:
271280
272-
```
273-
port install kubectl
281+
```bash
282+
sudo port selfupdate
283+
sudo port install kubectl
274284
```
275285

276286
<!--
@@ -297,7 +307,7 @@ If you are on macOS and using [Macports](https://macports.org/) package manager,
297307
Or if you have `curl` installed, use this command:
298308
-->
299309
1.[此链接](https://storage.googleapis.com/kubernetes-release/release/{{< param "fullversion" >}}/bin/windows/amd64/kubectl.exe)
300-
下载最新发型版本
310+
下载最新发行版本 {{< param "fullversion" >}}
301311

302312
或者如何你安装了 `curl`,使用下面的命令:
303313

@@ -385,10 +395,15 @@ Updating the installation is performed by rerunning the two commands listed in s
385395
{{< /note >}}
386396

387397
<!--
388-
### Install with Chocolatey on Windows
398+
### Install on Windows using Chocolatey or Scoop
399+
-->
400+
### 在 Windows 系统上用 Chocolatey 或者 Scoop 安装
389401

390-
1. To install kubectl on Windows you can use either [Chocolatey] package manager or [Scoop](https://scoop.sh) command-line installer.
402+
<!--
403+
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [Scoop](https://scoop.sh) command-line installer.
391404
-->
405+
406+
392407
1. 要在 Windows 上用 [Chocolatey](https://chocolatey.org) 或者
393408
[Scoop](https://scoop.sh) 命令行安装程序安装 kubectl:
394409

0 commit comments

Comments
 (0)