mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-05 20:11:05 +08:00
deploy: 60d22a0068
This commit is contained in:
@@ -363,8 +363,8 @@ curl https://sh.rustup.rs -sSf <span class="p">|</span> sh
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>或者使用 tuna 源来加速(建议清华同学在校园网中使用) <a class="reference external" href="https://mirrors.tuna.tsinghua.edu.cn/help/rustup/">参见 rustup 帮助</a>:</p>
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span> <span class="nv">RUSTUP_DIST_SERVER</span><span class="o">=</span>https://mirrors.tuna.edu.cn/rustup
|
||||
<span class="nb">export</span> <span class="nv">RUSTUP_UPDATE_ROOT</span><span class="o">=</span>https://mirrors.tuna.edu.cn/rustup/rustup
|
||||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span> <span class="nv">RUSTUP_UPDATE_ROOT</span><span class="o">=</span>https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup
|
||||
<span class="nb">export</span> <span class="nv">RUSTUP_DIST_SERVER</span><span class="o">=</span>https://mirrors.tuna.tsinghua.edu.cn/rustup
|
||||
curl https://sh.rustup.rs -sSf <span class="p">|</span> sh
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
@@ -104,8 +104,8 @@ Rust 开发环境配置
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
export RUSTUP_DIST_SERVER=https://mirrors.tuna.edu.cn/rustup
|
||||
export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.edu.cn/rustup/rustup
|
||||
export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup
|
||||
export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup
|
||||
curl https://sh.rustup.rs -sSf | sh
|
||||
|
||||
也可以设置科学上网代理:
|
||||
|
||||
Reference in New Issue
Block a user