CentOS sets various proxy for Internet access
Suppose we want to set the proxy to IP: PORT.
1. Web surfing
Setting proxy for Web surfing is simple. In the firefox browser, Edit --> Preferences --> Advanced --> Network
Click Settings under Connection, and set the IP address and PORT in manual proxy configuration.
2. yum proxy settings
The edited file is/etc/yum. conf.
Add this line in: proxy = IP: PORT
Here, the IP address is the IP address you want to set. PORT is the PORT you want to set.
3. wget proxy settings
The edited file is/etc/wgetrc.
Add the following two rows:
Http_proxy = IP: PORT
Ftp_proxy = IP: PORT
4. System Environment proxy settings
The editing file is/etc/profile. If you only want to set the file for your account, edit ~ /. Bashrc.
Add three rows:
# Add proxy for network
Export http_proxy = "http://child-prc.intel.com: 913"
Export https_proxy = "http://child-prc.intel.com: 913"
Export ftp_proxy = $ http_proxy
Then source/etc/profile or source ~ /. Bashrc.