由 BG6RSH » 周三 5月 29, 2024 8:44 am
一、apt代理(nano /etc/apt/apt.conf)
Acquire::http::proxy "http://username:password@192.168.144.232:9128";
Acquire::ftp::proxy "http://username:password@192.168.144.232:9128";
Acquire::https::proxy "http://username:password@192.168.144.232:9128";
二、wget代理(nano /etc/wgetrc)
#You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://username:password@192.168.144.232:9128
http_proxy = http://username:password@192.168.144.232:9128
ftp_proxy = http://username:password@192.168.144.232:9128
# If you do not want to use proxy at all, set this to off.
use_proxy = on
三、curl代理 (nano ~/.curlrc)
proxy="http://username:password@192.168.144.232:9128"
一、apt代理(nano /etc/apt/apt.conf)
[Codebox=ini file=Untitled.ini]Acquire::http::proxy "http://username:password@192.168.144.232:9128";
Acquire::ftp::proxy "http://username:password@192.168.144.232:9128";
Acquire::https::proxy "http://username:password@192.168.144.232:9128";[/Codebox]
二、wget代理(nano /etc/wgetrc)
[Codebox=ini file=Untitled.ini]#You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://username:password@192.168.144.232:9128
http_proxy = http://username:password@192.168.144.232:9128
ftp_proxy = http://username:password@192.168.144.232:9128
# If you do not want to use proxy at all, set this to off.
use_proxy = on[/Codebox]
三、curl代理 (nano ~/.curlrc)
[Codebox=ini file=Untitled.ini]proxy="http://username:password@192.168.144.232:9128"[/Codebox]