Powershell配置代理

  1、创建配置文件

  任何创建文本文件的方式,在这里都适用。但请注意文件的扩展名必须是.ps1。简单起见,我们使用命令类创建,命令如下:

复制代码 代码如下:

New-Item -ItemType file -Path $PROFILE  -Force

notepad $PROFILE

$Env:http_proxy=”http://127.0.0.1:7890″;

$Env:https_proxy=”http://127.0.0.1:7890″;

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注