Suppose we want to set up a proxy for the IP: PORT
1, pages online
Internet web page is very simple proxy settings in firefox browser Edit - >> Preferences - >> Advanced - >> Network
In the Connection click Settings, inside the manual proxy configuration settings in the IP and PORT you can
2, yum proxy settings
Edit the file is: /etc/yum.conf
Add this line in it: proxy = IP: PORT
IP IP here for you to be set, PORT is the port you want to set
3, wget proxy settings
Edit the file is: / etc / wgetrc
add the following two lines:
the http_proxy = IP: PORT
ftp_proxy = IP: PORT
4, the system environment proxy settings
Edit the file / etc / profile, if you only want to set up your account, edit ~ / .bashrc to
Add three lines:
# 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
然后source /etc/profile 或者source ~/.bashrc即可
Reprinted: https: //www.cnblogs.com/jhj117/p/6148771.html