In Linux, user variables contain proxy environment settings, such as ftp_proxy, http_proxy, and rsync_proxy.
Let me give you an example! If we want to access the network through the HTTP proxy of the following proxy server, the settings are as follows:
Proxy.debian.org: 8080
Account: Debian
Password 123456
# Export http_proxy = Debian: 123456@proxy.debian.org: 8080
In this way, you can set it, but there is no disk, and we need to set it again when you restart the computer. To write the relevant script, refer to the following URL.
Http://hi.baidu.com/215317196/blog/item/b7161aed5f1f2e4879f05515.html
If you want to set all the proxies, you can write as follows:
# Export http_proxy = Debian: 123456@proxy.debian.org: 8080
# Export ftp_proxy = Debian: 123456@proxy.debian.org: 8080
# Export rsync_proxy = Debian: 123456@proxy.debian.org: 8080
If you do not have a user name or password, write it directly, for example, export http_proxy = "proxy.debian.org: 8080.
You can write the above environment variable in/etc/profile to read the environment variable as the machine starts.