General method for Linux proxy setting

Source: Internet
Author: User

When configuring a test environment under Linux, you often encounter issues related to proxy server configuration, which is summarized here to save some time later. And I want to help people who need it.

General settings for Linux under Proxy

In general, the settings for the following environment variables are placed in the/etc/profile.d/proxy.sh file. For users without system permissions, you can add the following to the. profile file in your user directory. After logging in, most applications will be able to surf the internet normally.

#proxy =http:// Username: password @proxyurl or IP address: port number proxy=http://Proxyurl or IP address: port number Export http_proxy=$proxyexport https_proxy=$proxyexport ftp_proxy=$proxyexport no_proxy= Comma-separated list of exceptions
Proxy settings for the CentOS Yum tool

Under CentOS, after you set up the above proxy, Yum still has some resource packages that cannot be downloaded properly, you can set the proxy separately by adding the following in the/etc/yum.conf file.

Proxy=http://Proxyurl or IP address: port number proxy_username= user name Proxy_password= password

General method for Linux proxy setting

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.