大家好,又见面了,我是你们的朋友全栈君。
bash proxy
export http_proxy=XXX
export https_proxy=XXX
apt proxy
sudo vim /etc/apt/apt.conf
Acquire::http::proxy "http://XXX";
Acquire::https::proxy "https://XXX";
Acquire::ftp::proxy "ftp://XXX";
Acquire::socks::proxy "socks://XXX";
docker proxy
mkdir -p /etc/systemd/system/docker.service.d
sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" "HTTPS_PROXY=https://[proxy-addr]:[proxy-port]/"
#Environment="HTTP_PROXY=http://[proxy-addr]:[proxy-port]/" "HTTPS_PROXY=https://[proxy-addr]:[proxy-port]/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"
systemctl daemon-reload
systemctl restart docker
install with proxy
sudo -E add-apt-repository ppa:xxx/xxx
#set time and time zone
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/162712.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...