linux全局、apt、wget、curl代理服务器设置
发表于 : 周三 5月 29, 2024 8:44 am
一、apt代理(nano /etc/apt/apt.conf)
二、wget代理(nano /etc/wgetrc)
三、curl代理 (nano ~/.curlrc)
Code: [全选] [Expand/Collapse]
- 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";
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.
- 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
Code: [全选] [Expand/Collapse]
- proxy="http://username:password@192.168.144.232:9128"