Virtual machine CentOS Setup Proxy online

Source: Internet
Author: User

Suppose we want to set the proxy to Ip:port

1. Web surfing

Web Settings agent is very simple, in the Firefox browser under Edit-->>preferences-->>advanced-->>network

Under Connection Click Settings, inside the manual proxy configuration set IP and port can be

2. Yum proxy settings

Edit file as:/etc/yum.conf

Add this line inside: Proxy=ip:port

The IP here is the IP you want to set, port is the one you want to set

3, wget proxy settings

Edit file as:/etc/wgetrc
Add the following two lines:
Http_proxy = Ip:port
Ftp_proxy = Ip:port

4, System environment proxy settings

Edit the file as/etc/profile, if you want to set your own account only, then edit ~/.BASHRC to

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 can

Virtual machine CentOS Setup Proxy online

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.