mirror of
https://github.com/gnu4cn/ccna60d.git
synced 2024-05-21 04:55:00 +08:00
Update README.md
This commit is contained in:
parent
271e9ce30d
commit
ab858a38d8
@ -27,7 +27,7 @@ cargo install mdbook
|
||||
|
||||
### 在 Windows 上
|
||||
|
||||
在 "Administrator: Windows Powershell" 中,先安装 choco
|
||||
在 “Powershell(管理员)”("Administrator: Windows Powershell") 中,先安装 `choco`
|
||||
|
||||
```powershell
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
@ -39,7 +39,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
|
||||
choco install -y msys2
|
||||
```
|
||||
|
||||
在 msys2 中安装 mdbook
|
||||
在 `msys2` 中安装 `mdbook`
|
||||
|
||||
```console
|
||||
pacman -S mingw-w64-x86_64-mdbook
|
||||
@ -48,7 +48,7 @@ pacman -S mingw-w64-x86_64-mdbook
|
||||
安装好 `mdbook` 后, 带一些命令行参数和开关运行服务器:
|
||||
|
||||
```console
|
||||
mdbook serve ~/ccna60d -p 8080 -n 127.0.0.1 --open
|
||||
mdbook serve ~/rust-lang-zh_CN -p 8080 -n 127.0.0.1 --open
|
||||
```
|
||||
|
||||
> 注:当在 Windows 系统上时,咱们要在 `msys2` 的终端窗口中运行此命令。
|
||||
|
Loading…
Reference in New Issue
Block a user