RUST官方文档:forge.rust-lang.org/infra/other…
在linux shell中执行:
curl <https://sh.rustup.rs> -sSf | sh
然后安装选项选择1即可:
安装完成后发现rustup等命令没有在linuxPATH下,导致命令执行不了
原因是rust安装后可执行文件在/root/.cargo/bin/rustup路径下,需要再LINUX的PATH中增加这个路径,编辑/etc/profile,增加以下两行:
pathmunge /root/.cargo/bin
pathmunge /root/.cargo/bin after
然后source /etc/profile 即可。