一、wget设置代理
eg:
wget -Y on -e "http_proxy=http://10.0.0.172:9201" "www.wo.com.cn"
此命令使用10.0.0.172:9201这个代理服务器IP和端口访问站点www.wo.com.cn
参数说明
-Y 是否使用代理
-e 执行命令
二、curl设置代理
eg:
curl -x 10.0.0.172:80 www.wo.com.cn
此命令使用10.0.0.172:80这个代理服务器IP和端口访问站点www.wo.com.cn
参数说明
-x 设置代理,格式为host[:port],port的缺省值为1080
使用socks5代理方法:
--socks5-hostname host:port
原文:https://blog.csdn.net/iloveyin/article/details/41806163