linux 中yum 和wget代理設置

yum 設置代理: php

/etc # vi yum.conf  centos

----------------------------- ide

[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 this

##添加這句話
proxy=http://10.10.112.251:10001


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


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

wget 設置代理: spa

# 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
debug

相關文章
相關標籤/搜索