辋川集

木末芙蓉花,山中发红萼,涧户寂无人,纷纷开且落

By - 陳 思敬

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 thought on “Linux 终端设置代理服务器

Christen March 19, 2015 at 10:54 am

Windows根据IP反查主机

C:\Users\Christen>nbtstat -A 192.168.98.175

Reply

Leave a Reply

Your email address will not be published.
*
*