【转】YUM, WGET代理设置

来源:互联网 发布:语音录制软件ios 编辑:程序博客网 时间:2024/05/01 06:56

http://my.oschina.net/yinlei212/blog/142434

yum 设置代理:

/etc # vi yum.conf 

-----------------------------

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

##添加这句话
proxy=http://10.10.112.251:10001


#  This is the default, if you make this bigger yum won't see if the metadata


-------------------------------------------

wget 设置代理:

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://10.10.112.251:8087/
http_proxy = http://10.10.112.251:8087/
#ftp_proxy = http://proxy.yoyodyne.com:18023/


# If you do not want to use proxy at all, set this to off.
use_proxy = yes

0 0
原创粉丝点击