Rust学习(CentOS7环境)——1.编译环境的安装

1. 设置好清华镜像:

export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup

2. 下载rustup-init:

wget  'https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup/archive/1.21.1/x86_64-unknown-linux-gnu/rustup-init' -O 'rustup-init'
chmod a+x rustup-init
./rustup-init -v -y --no-modify-path

3.修改bash/zsh的配置文件:

# rust
export RUSTUP_DIST_SERVER="https://mirrors.tuna.tsinghua.edu.cn/rustup"
export PATH="$HOME/.cargo/bin:$PATH"

 

你可能感兴趣的:(编程语言)