Aug 232012
 

以前没感觉这个东西有啥用途,不过现在公司的网络不行,就必须用proxy。这样才能加快速度。3128是squid的默认端口。

日后想办法,对所有的机器都做这个设置,考虑用puppet来实现.就是在这两个文件里加入下面两行.应该没啥难度.

yum的设置

/etc/yum.conf

proxy=http://10.1.199.5:3128

wget设置

/etc/wgetrc

http_proxy=http://10.1.199.5:3128
ftp_proxy=http://10.1.199.5:3128

验证了一下,在suqid里看到的log

1345698983.230   1144 10.1.199.6 TCP_MISS/200 2548 GET http://www.chenshake.com/wp-
content/uploads/2012/08/centos.ks_.txt - DIRECT/66.147.244.244 text/plain
1345699190.195      0 10.1.199.6 TCP_MEM_HIT/200 2556 GET http://www.chenshake.com/wp-
content/uploads/2012/08/centos.ks_.txt - NONE/- text/plain

http://www.cnblogs.com/cocowool/archive/2012/07/05/2578487.html

 Leave a Reply

(required)

(required)

This site uses Akismet to reduce spam. Learn how your comment data is processed.