Ubuntu Server 代理设置
最近在安装Ubuntu server时设置了代理服务器,但是发现有问题,死活找不到代理设置在哪里,最后通过下边方法找到了相关配置,特注记一下以备忘:
find / -type f|xargs grep 10.104.1.10
/etc/apt/apt.conf.d/90curtin-aptproxy:Acquire::http::Proxy "http://10.104.1.10:8080";
/etc/apt/apt.conf.d/90curtin-aptproxy:Acquire::https::Proxy "http://10.104.1.10:8080";
/etc/systemd/system/snapd.service.d/snap_proxy.conf:Environment="HTTP_PROXY=http://10.104.1.10:8080"
/etc/systemd/system/snapd.service.d/snap_proxy.conf:Environment="HTTPS_PROXY=http://10.104.1.10:8080"
安装时设置代理位置
/etc/apt/apt.conf.d/90curtin-aptproxy
/etc/systemd/system/snapd.service.d/snap_proxy.conf
修改配置
$ vim /etc/systemd/system/snapd.service.d/snap_proxy.conf
[Service]
Environment="HTTP_PROXY=http://10.104.1.10:8080/"
Environment="HTTPS_PROXY=http://10.104.1.10:8080/"