微信号:fileft
1.配置代理:
vim /etc/profile
添加export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
添加export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
source /etc/profile
2.获取rustup-init:
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
3.安装:
chmod 777 rustup-init
./rustup-init
4.添加cargo路径:
vim /etc/profile
添加 export PATH=$PATH:$HOME/.cargo/bin
/etc/profile
5.
[root@localhost bin]# cargo -V
cargo 1.38.0 (23ef9a4ef 2019-08-20)
微信号:fileft