docs: update why-exercise.md

This commit is contained in:
h3n4l 2022-11-15 23:34:52 +08:00 committed by GitHub
parent 1a5bdaaf77
commit 9c8160b14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@
我们使用 [mdbook](https://rust-lang.github.io/mdBook/) 构建在线练习题,你也可以下载到本地运行:
```shell
$ cargo install mdbook
$ cd rust-by-practice && mdbook serve
$ cd rust-by-practice && mdbook serve zh-CN/
```
在本地win 10或者linux服务器上运行时应当使用 -n 参数指定mdbook服务所监听的IP地址-p 参数指定服务监听的端口不指定则为默认的3000以win 10本地运行为例
```shell
$ mdbook serve -p 8888 -n 127.0.0.1
$ mdbook serve -p 8888 -n 127.0.0.1 zh-CN/
```
## 特性