Where am I from
-
Install Rust
open “https://www.rust-lang.org/zh-CN/tools/install” in browser, read the manual to install Rust.. -
Change the cargo registry source URL for update
$ cd ~/.cargo/ $ vim config -
Paste blow text
[source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index" -
Exec blow command
cargo install mdbook #wait a minute ,the programm will compiler source code -
How use
mdbook --help mdbook serve --open # usually -
Enjoy !!
And notice your.profile&bashrcfile, maybe you should run commandsource .profile