CentOS7 Setup System/yum and Firefox Web proxy internet

Source: Internet
Author: User

First, the system global proxy settings;

    1. 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;

    1. 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;

    1. 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

    1. 192.168.78.124 is the IP address of the proxy network server;

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.