一、wget设置代理
wget -Y on -e "http_proxy=http://10.0.0.172:9201" "www.baidu.com"此命令使用10.0.0.172:9201这个代理服务器IP和端口访问站点www.baidu.com
参数说明
-Y 是否使用代理
-e 执行命令
二、curl设置代理
curl -x 10.0.0.172:80 www.baidu.com
此命令使用10.0.0.172:80这个代理服务器IP和端口访问站点www.wo.com.cn
参数说明
-x 设置代理,格式为host[:port],port的缺省值为1080
网友回复