sudovim/etc/profile.d/proxy.sh
# set proxy config via profile.d - should apply for all usersexporthttp_proxy="http://10.10.1.10:8080/"exporthttps_proxy="http://10.10.1.10:8080/"exportftp_proxy="http://10.10.1.10:8080/"exportno_proxy="127.0.0.1,localhost"# For curlexportHTTP_PROXY="http://10.10.1.10:8080/"exportHTTPS_PROXY="http://10.10.1.10:8080/"exportFTP_PROXY="http://10.10.1.10:8080/"exportNO_PROXY="127.0.0.1,localhost"#将要从代理中排除的其他IP添加到NO_PROXY和no_proxy环境变量中
sudochmod+x/etc/profile.d/proxy.sh