Proxy servers must be set for Internet access in the school environment. Therefore, newly installed CentOS cannot be operated using yum or wget. The following figure shows your configuration settings: Usingyumwithaproxyserver ------------------------------------------------------------- Toenableyumoperationstouseaproxy.
Proxy servers must be set for Internet access in the school environment. Therefore, newly installed CentOS cannot be operated using yum or wget. The configuration settings are as follows:
The configuration documents in English on the network are as follows:
Using yum with a proxy server
---------------------------------------
To enable yum operations to use a proxy server you shoshould first add the following parameter to/etc/yum. conf this is the yum setting after configuring the proxy network
Proxy = http: // yourproxy: 8080/
Edit the/etc/yum. conf file
This is our specific proxy settings: add the following in the last line of the yum. conf file:
Yes # the comment line serves as a description to help us understand the role of this line.
Where yourproxy is the name of the proxy server you want to access and 8080 is the proxy port. If the server requires authentication you can specify the login credentials like:
Proxy = http: // username: password @ yourproxy: 8080/
---------------------------------------
The rpm package manager makes use of the proxy environment variable. This can be set system wide in/etc/profile or user specific in ~ /. Bash_profile ::
Export http_proxy = http: // yourproxy: 8080/
Export ftp_proxy = http: // yourproxy: 8080/
---------------------------------------
To use wget throug a proxy server add the following lines to/etc/wgetrc this is the wget setting after configuring the proxy network
Http_proxy = http: // yourproxy: 8080/
Ftp_proxy = http: // yourproxy: 8080/
In both cases, login information can be set like in the example above.