一、apt代理(nano /etc/apt/apt.conf)
Code: [全选] [Expand/Collapse]
-
Acquire::http::proxy "http://username:[email protected]:9128";
-
Acquire::ftp::proxy "http://username:[email protected]:9128";
-
Acquire::https::proxy "http://username:[email protected]:9128";
二、wget代理(nano /etc/wgetrc)
Code: [全选] [Expand/Collapse]
-
#You can set the default proxies for Wget to use for http, https, and ftp.
-
# They will override the value in the environment.
-
-
# If you do not want to use proxy at all, set this to off.
-
use_proxy = on
三、curl代理 (nano ~/.curlrc)
Code: [全选] [Expand/Collapse]
原文作者: BG6RSH | 查看原帖
三、debian全局代理(nano /etc/profile.d/proxy.sh)