This article describes how to configure proxy for the svn client in centos. For more information, see SVNcentosCentOS.
I use the subversion installed by the root user through yum: yum-y install subversion
After installation ~ There is a hidden folder under the Directory. you can see it is named. subversion through ls-a. There is a servers file under the Directory, which can configure the proxy CHECK code.
You can use a proxy to checkout all domains in global, or configure a separate group to use a proxy for the specified domain.
Copy codeThe code is as follows:
[Global]
# Http-proxy-exceptions = * .exception.com, www.internal-site.org
Http-proxy-host = defaultproxy.whatever.com
Http-proxy-port = 7000
Http-proxy-username = defaultusername
Http-proxy-password = defaultpassword
After the configuration, you can mount a proxy to the SVN client. if you only want to mount a proxy to a specific domain, use another section to configure the proxy:
Copy codeThe code is as follows:
[Groups]
Group1 = * .googlecode.com
# Othergroup = repository.blarggitywhoomph.com
# Thirdgroup = * .example.com
### Informationforthefirstgroup:
[Group1]
Http-proxy-host = proxy.myoffice.com
Http-proxy-port = 8080
# Http-proxy-username = blah
# Http-proxy-password = doubleblah
# Http-timeout = 60
The above is just an excerpt from my configuration. I configured a proxy for the googlecode domain.