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