配置各种工具Proxy

由于国内特殊的网络环境,一些国外的开发组件访问有障碍
如果使用代理地址的方式,不同工具的proxy设置需要特殊设置
这里收集我遇到的proxy设置项

Shell

export http_proxy="http://127.0.0.1:1000"
export https_proxy="http://127.0.0.1:1000"

常见工具

Git

git config set --global http.proxy http://127.0.0.1:1000
git config set --global https.proxy http://127.0.0.1:1000

Curl

兼容Shell的Proxy设置

wget

兼容Shell的Proxy设置

Docker

nano ~/.docker/config.json
{
	"proxies": {
		"default": {
			"httpProxy": "http://127.0.0.1:1000",
		    "httpsProxy": "http://127.0.0.1:1000",
		}
	}
}

JavaScript

Bun

兼容Shell的Proxy设置

Npm

npm config set proxy http://127.0.0.1:1000
npm config set https-proxy http://127.0.0.1:1000
使用 Hugo 构建
主题 StackJimmy 设计