When the local area network needs to configure the agent, Windows can be configured through a browser, but Linux needs to modify the configuration file to achieve
Apply to global user, modify environment variable/etc/profile file, modify as follows:
# Vi/etc/profile
Add the following in this configuration file:
Http_proxy=http://username:[email protected]:8080https_proxy= $http _proxyftp_proxy=http://username:[email Protected]:8080no_proxy=*.cmcc;10.10.*export http_proxy Https_proxy Ftp_proxy
After modifying the configuration file for the environment variable, execute the following command to have the configuration file take effect:
Source/etc/profile
Description
Http_proxy # # HTTP protocol using Proxy server address
Https_proxy # # HTTPS protocol using secure proxy address
Ftp_proxy # # FTP protocol using Proxy server address
Username # # User name used by proxy
PASSWD # # Agent uses the password of the user name
Proxy.xxx.com # # Proxy address, can be IP, can also be a domain name
8080 # # The port used by the agent;
No_proxy # # Hosts or IPs that do not use proxies
Export # # Load variables
This article from "Shiyu" blog, reproduced please contact the author!
Linux Server Configuration Agent