常用工具设置互联网代理

设置上网代理地址的格式为

[protocol]://[username]:[password]@[ip]:[port]


linux 全局代理

编辑/etc/profile

http_proxy=代理地址

export http_proxy


linux yum

编辑/etc/yum.conf

添加变量 proxy=代理地址


git

git config --global http.proxy http://yourname:yourpass@proxyserver:proxyport

你可能感兴趣的:(linux,proxy,git)