First, the system global proxy settings;
Open the/etc/profile with the Vi/vim editor and append the following:
Http_proxy=http://192.168.78.124:8080ftp_proxy=http://192.168.78.124:8080export Http_proxyexport Ftp_proxy
If you need to enter an account number and password, then append the following:
Http_proxy=http://username:[email Protected]:8080ftp_proxy=http://username:[email Protected]:8080export HTTP_ Proxyexport Ftp_proxy
In addition, if you do not want to do a global configuration, only for a certain user configuration, such as root, you can append one of the above configuration to/root/.bash_profile
Two. Yum's proxy settings;
Open the/etc/yum.conf with the Vi/vim editor and append the following:
http_proxy=http://192.168.78.124:8080ftp_proxy=http://192.168.78.124:8080
Or:
Http_proxy=http://192.168.78.124:8080ftp_proxy=http://192.168.78.124:8080proxy_username=usernameproxy_password=password
In addition, Ubuntu OS apt-get proxy networking settings can be used in the following ways:
Echo ' acquire::http::p Roxy "http://192.168.78.124:8080"; ' >/etc/apt/apt.conf
Three. Proxy settings for wget;
Open/ETC/WGETRC with the Vi/vim editor, locate the row where the proxy settings are located, and then append the following:
# You can set the "Default proxies for Wget" for HTTP, HTTPS, and ftp.# they would override the value in the Environme NT. #https_proxy = http://proxy.yoyodyne.com:18023/#http_proxy = http://proxy.yoyodyne.com:18023/#ftp_proxy = http:// proxy.yoyodyne.com:18023/http_proxy=http://192.168.78.124:8080/ftp_proxy=http://192.168.78.124:8080/
Note: If you need to set user name and password, follow the above format.
Four. Firefox browser agent networking settings;
Description: Set the path,edit--> preferences-->advanced-->network-->settings.
650) this.width=650; "title=" Firefox.png "alt=" wkiom1usthxhiuu5aaiaammeafw630.jpg "src=" Http://s3.51cto.com/wyfs02 /m02/6b/69/wkiom1usthxhiuu5aaiaammeafw630.jpg "/>
Five. Notes
192.168.78.124 is the IP address of the proxy network server;
8080 is the custom port number.
End.
This article is from the "Feng Xuewei blog" blog, make sure to keep this source http://hsuehwee.blog.51cto.com/10114119/1632253
CentOS7 Setup System/yum and Firefox Web proxy internet