怎么在Centos上部署Rust?
一、安装Rust
1.安装必要环境依赖
sudo yum install -y curl gcc gcc-c++ gcc-gfortran readline-devel libpng-devel libjpeg-turbo-devel libtiff-devel pango-devel libicu-devel libxml2-devel libcurl-devel openssl-devel
2.使用Rustup安装Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
3.将Rust的可执行文件路径添加到系统环境变量PATH中
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
4.验证安装结果
rustc --version
cargo --version