Linux/CentOS7安装Rust

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"

  

Linux/CentOS7安装Rust

上一篇:Linux错误 DataNode起不来


下一篇:Tomcat8弱口令+后台getshell