1. Global proxy settings:
vi /etc/profile
add the following
http_proxy = http://username:password@yourproxy:8080/
ftp_proxy = http://username:password@yourproxy:8080/
export http_proxy
export ftp_proxy
2.yum proxy settings:
vi /etc/yum.conf
add the following
proxy = http://username:password@yourproxy:8080/
or
proxy=http://yourproxy:808
proxy=ftp://yourproxy:808 proxy_username=username proxy_password=password
3.wget proxy settings:
vi /etc/wgetrc
add the following
# Proxy
http_proxy=http://username:password@proxy_ip:port/
ftp_proxy=http://username:password@proxy_ip:port/
Cloud server ECS Linux system realizes proxy Internet access through Squid configuration
https://help.aliyun.com/knowledge_detail/41342.html