This theme is built w|

TomZz

园龄:2年7个月粉丝:1关注:1

📂通用
🔖代理
2022-07-21 22:13阅读: 501评论: 0推荐: 0

常用终端代理配置

Windows

全局设置

设置->系统->高级系统设置->环境变量

系统环境变量

HTTP_PROXY: http://127.0.0.1:7890
HTTPS_PROXY: http://127.0.0.1:7890

Powershell

notepad $profile

function proxy() {
  $Env:https_proxy="http://localhost:port"
  $Env:http_proxy="http://localhost:port"
}

function noproxy() {
  $Env:https_proxy=""
  $Env:http_proxy=""
}

CMD

设置
set http_proxy=ip:port
set https_proxy=ip:port
清除
set http_proxy=
set https_proxy=

Bash Zsh等

vim ~/.bashrc or vim ~/.zshrc

export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
proxy () {
  export http_proxy="http://127.0.0.1:7890"
  export https_proxy="http://127.0.0.1:7890"
  echo "Network Proxy on"
}
noproxy () {
  unset http_proxy
  unset https_proxy
  echo "Network Proxy off"
}

Fish

vim ~/.config/fish/config.fish

function proxy
  set -xg ALL_PROXY http://localhost:1087
end
​
function noproxy
  set -e ALL_PROXY
end

proxy

Git

git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
git config --global --unset http.proxy
git config --global --unset https.proxy

NPM

npm config set proxy http://username:password@server:port
npm config set https-proxy http://username:pawword@server:port

使用CNPM

npm init
npm install -g cnpm --registry=https://registry.npmmirror.com

Go

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go install golang.org/x/tools/gopls@latest

本文作者:TomZz

本文链接:https://www.cnblogs.com/Tom-Zz/p/16503799.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   TomZz  阅读(501)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起
  1. 1 Different World Alan Walker,K-391,CORSAK胡梦周,Sofia Carson
  2. 2 Wild Wild Web John The Whistler
  3. 3 In the End Linkin Park
  4. 4 Leave Out All The Rest Linkin Park
Wild Wild Web - John The Whistler
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.

It's a wild wild web when you feel lost inside

the wild wild web where there's nothing to hide

on the wild wild web please tell me where I'll find

virtual reality of your smile

It's a changing world that we're living today

It's a changing world that we're living today

If you need a girl there's a very new way

If you need a girl there's a very new way

You're chatting all alone on the web

You're chatting all alone on the web

declaring all your love on the net

It's a wild wild web when you feel lost inside

the wild wild web where there's nothing to hide

on the wild wild web please tell me where I'll find

virtual reality of your smile

From my bottom I prefer the old fashion way

From my bottom I prefer the old fashion way

When to flirt with a girl you just go for a date

When to flirt with a girl you just go for a date

but all I gotta view is your mail

but all I gotta view is your mail

so stay connected just don't run away

It's a wild wild web when you feel lost inside

the wild wild web where there's nothing to hide

on the wild wild web please tell me where I'll find

virtual reality of your smile

It's a wild wild web when you feel lost inside

It's a wild wild web when you feel lost inside

the wild wild web where there's nothing to hide

on the wild wild web please tell me where I'll find

virtual reality of your smile

Now I hope that some day we will be meeting for real

And we talk and we laugh having some Indian meal

And we talk and we laugh having some Indian meal

I hope that good time at last

I hope that good time at last

cause Gs I found are most just too fast

It's a wild wild web when you feel lost inside

the wild wild