修改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
}
标签:终端,代理,192.168,socks5,export,PROXY,ubuntu,4.61,proxy
From: https://www.cnblogs.com/zzy3520/p/17509763.html