PowerShell 设置环境变量

Wednesday, Dec 27, 2023 | 1 minute read | Updated at Wednesday, Dec 27, 2023

@
PowerShell 设置环境变量

一般cmd命令行设置环境变量使用set, 但是在powershell环境下不生效,特地查询了下,记录于此。 Windows 下对应的设置环境变量的 PowerShell 命令为:

$env:RUSTUP_DIST_SERVER="https://mirror.nju.edu.cn/rustup"
$env:RUSTUP_UPDATE_ROOT="https://mirror.nju.edu.cn/rustup/rustup"

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。