10.1. Configuring Proxy Server Access
To enable all yum operations to use a proxy server, specify the proxy server details in /etc/yum.conf. The proxy setting must specify the proxy server as a complete URL,
including the TCP port number. If your proxy server requires a username and password, specify these by adding proxy_username and proxy_password settings.
The settings below enable yum to use the proxy server mycache.mydomain.com, connecting to port 3128, with the username yum-user and the password qwerty.
# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty
Example 3. Configuration File Settings for Using A Proxy Server
![]() | Global Settings |
|---|---|
|
If you define a proxy server in |
To enable proxy access for a specific user, add the lines in the example box below to the user's shell profile. For the default bash shell, the profile is the file~/.bash_profile. The settings below
enable yum to use the proxy server mycache.mydomain.com, connecting to port 3128.
![[Note]](https://www.centos.org/HEADER.images/note.png)
3393

被折叠的 条评论
为什么被折叠?



