linux全局、apt、wget、curl代理服务器设置

发表回复

确认码
输入您在图片中看到的字符,不需要区分大小写。
表情
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode 允许
[img] 允许
[url] 允许
表情 允许

主题浏览
   

展开视图 主题浏览: linux全局、apt、wget、curl代理服务器设置

Re: apt、wget、curl代理服务器设置

BG6RSH » 周三 5月 29, 2024 9:20 am

三、debian全局代理(nano /etc/profile.d/proxy.sh)
  1. export ftp_proxy=ftp://user:password@host:port
  2. export http_proxy=http://user:password@host:port
  3. export https_proxy=https://user:password@host:port
  4. export socks_proxy=https://user:password@host:port

linux全局、apt、wget、curl代理服务器设置

BG6RSH » 周三 5月 29, 2024 8:44 am

一、apt代理(nano /etc/apt/apt.conf)
  1. Acquire::http::proxy "http://username:password@192.168.144.232:9128";
  2. Acquire::ftp::proxy "http://username:password@192.168.144.232:9128";
  3. Acquire::https::proxy "http://username:password@192.168.144.232:9128";
二、wget代理(nano /etc/wgetrc)
  1. #You can set the default proxies for Wget to use for http, https, and ftp.
  2. # They will override the value in the environment.
  3. https_proxy = http://username:password@192.168.144.232:9128
  4. http_proxy = http://username:password@192.168.144.232:9128
  5. ftp_proxy = http://username:password@192.168.144.232:9128
  6.  
  7. # If you do not want to use proxy at all, set this to off.
  8. use_proxy = on
三、curl代理 (nano ~/.curlrc)
  1. proxy="http://username:password@192.168.144.232:9128"

页首