配置代理网络# vi ~/.bash_profilehttp_proxy=http://172.20.36.21:80/https_proxy=http://172.20.36.21:80/ftp_p
配置代理网络
# vi ~/.bash_profilehttp_proxy=http://172.20.36.21:80/https_proxy=http://172.20.36.21:80/ftp_proxy=http://172.20.36.21:80/export http_proxyexport https_proxyexport ftp_proxy# source ~/.bash_profile
curl 配置代理
# socks需要用户名/密码curl --proxy-user uwo:123456 --socks5 172.20.36.21:80 'http://baidu.com/'# socks无需要用户名/密码curl --socks5 172.20.36.21:80 http://baidu.com/# 临时代理设置curl -x 172.20.36.21:80 http://baidu.com/