Daizc
count.articles42
count.tags21
count.categories3
常见软件Proxy配置合集

常见软件Proxy配置合集

  • System
  • APT
  • Docker

System

1
2
export HTTP_PROXY=http://localhost:1080
export HTTPS_PROXY=http://localhost:1080

APT

/etc/apt/apt.conf.d/proxy.conf

1
2
Acquire::http::Proxy "http://localhost:1080";
Acquire::https::Proxy "http://localhost:1080";

Docker

/etc/systemd/system/docker.service.d/http-proxy.conf

1
2
3
4
[Service]
Environment="HTTP_PROXY=http://192.167.20.38:1080"
Environment="HTTPS_PROXY=http://192.167.20.38:1080"
Environment="NO_PROXY=localhost,127.0.0.1,192.168.0.0/16"

copyright.author:Daizc
copyright.permalink:https://note.bequick.run/%E5%B8%B8%E8%A7%81%E8%BD%AF%E4%BB%B6Proxy%E9%85%8D%E7%BD%AE%E5%90%88%E9%9B%86/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×