CentOS sets various proxy for Internet access

Source: Internet
Author: User

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.

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.