mysql8.0 wordpress,邢台做网站建设优化制作公司金信,卡片式wordpress模板,九号公司有关网络代理的环境变量
环境变量说明可选的取值http_proxyhttp协议的网络连接使用该代理。ip:porthttp://ip:portsocks://ip:portsocks4://ip:portsocks5://ip:porthttps_proxyhttps协议的网络连接使用该代理。ftp_proxyftp协议使用该代理。all_proxy所有网络协议的网络连接都…有关网络代理的环境变量
环境变量说明可选的取值http_proxyhttp协议的网络连接使用该代理。ip:porthttp://ip:portsocks://ip:portsocks4://ip:portsocks5://ip:porthttps_proxyhttps协议的网络连接使用该代理。ftp_proxyftp协议使用该代理。all_proxy所有网络协议的网络连接都使用该代理all_proxy变量的优先级低于以上变量(http_proxy等)。no_proxy无需代理的主机和域名支持通配符多个主机 / 域名之间使用逗号分隔。localhost,10.*,*.ad.com,
proxy.sh
port 和 port2是端口
#!/bin/basharg$1set_proxy() {export ALL_PROXYsocks5://127.0.0.1:portexport HTTP_PROXYhttp://127.0.0.1:port2export HTTPS_PROXYhttp://127.0.0.1:port2export all_proxysocks5://127.0.0.1:portexport http_proxyhttp://127.0.0.1:port2export https_proxyhttp://127.0.0.1:port2
}unset_proxy() {unset ALL_PROXYunset HTTP_PROXYunset HTTPS_PROXYunset all_proxyunset http_proxyunset https_proxy
}help() {echo help:echo set set proxyecho unset unset proxyecho proxy check proxyecho help help information
}if [[ $arg set ]];thenset_proxy
elif [[ $arg unset ]];thenunset_proxy
elif [[ $arg proxy ]];thenenv |grep -i proxy
elsehelp
fi参考文献 Linux设置网络代理