Centos server setting proxy for Internet access

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324981662&siteId=291194637