ubuntu设置终端代理
修改bash的配置文件~/.bashrc增加两个函数
# set proxy
function setproxy() {
export http_proxy=socks5://192.168.4.61:7890
export HTTPS_PROXY=socks5://192.168.4.61:7890
export FTP_PROXY=socks5://192.168.4.61:7890
}
# unset proxy
function unsetproxy() {
unset http_proxy HTTPS_PROXY FTP_PROXY
}

浙公网安备 33010602011771号