Linux 终端设置代理服务器

临时设置

export http_proxy="http://192.168.90.254:8080"
echo $http_proxy
export http_proxy=""

写入文件

# vim ~/.bashrc
export http_proxy=http://username:password@proxyserver:port/
export ftp_proxy=http://username:password@proxyserver:port/ 
source ~/.bashrc

Subversion 代理服务器

# vim $HOME/.subversion/servers
# [global]
http-proxy-host = 192.168.90.254
http-proxy-port = 8080 
http-proxy-username = scott
http-proxy-password = tiger 

wget 设置代理

$>wget -e http_proxy=192.168.90.254:8080 http://imgad0.3conline.com/ivy/image/201112/8/1323343968864.swf

curl 设置代理

$>curl -o test.swf -x 192.168.90.254:8080 http://imgad0.3conline.com/ivy/image/201112/8/1323343968864.swf

1 Comment

Got Something To Say:

Your email address will not be published. Required fields are marked *

*

Windows根据IP反查主机

C:\Users\Christen>nbtstat -A 192.168.98.175

© 2006-2018. Powered by WordPress Romangie & Bootstrap. ICP No. 15008795