一、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