-
Linux下socket服务设置方法:https://linuxtutorials.org/socks5-proxy-environment-variable-linux ,区别如下:
一般代理
http_proxy=http://192.168.137.1:7890
https_proxy=http://192.168.137.1:7890socks5代理
http_proxy=socks5://127.0.0.1:6633
https_proxy=socks5://127.0.0.1:6633 -
配置文件/etc/environment
http_proxy=http://192.168.137.1:7890
https_proxy=http://192.168.137.1:7890
no_proxy=127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,cn.archive.ubuntu.com,ubuntu02.rolkey.com -
.docker/config.json
{
"proxies": {
"default": {
"httpProxy": "http://192.168.137.1:7890",
"httpsProxy": "http://192.168.137.1:7890",
"noProxy": "127.0.0.1,192.168.0.0/16,172.100.0.0/24,localhost,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
}
}
} -
/etc/docker/daemon.json ,proxies两段可以拷贝切换
{
"registry-mirrors": [
"https://dockerproxy.com/",
"https://hub-mirror.c.163.com/"
],
"proxies": {
"http-proxy": "socks5://127.0.0.1:6633",
"https-proxy": "socks5://127.0.0.1:6633",
"no-proxy": "127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,registry.docker-cn.com,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
},
"proxies": {
"http-proxy": "http://192.168.137.1:7890",
"https-proxy": "http://192.168.137.1:7890",
"no-proxy": "127.0.0.1,localhost,192.168.0.0/16,172.100.0.0/24,registry.docker-cn.com,cn.archive.ubuntu.com,mirrors.tuna.tsinghua.edu.cn,deb.debian.org,ftp.debian.org,security.debian.org"
},
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
}
}
Linux代理的相关配置
HjmaAs2024-08-21 16:59
相关推荐
缘友一世13 分钟前
tmux 共享终端:AI 模型执行命令的实时审计方案沐雪轻挽萤22 分钟前
无人系统:Ubuntu 操作系统全景架构与实战工程指南白緢30 分钟前
嵌入式 Linux + 内核开发高频问题及排查学编程就要猛31 分钟前
JavaEE初阶:网络编程hughnz36 分钟前
钻井自动化案例研究ILL11IIL40 分钟前
Docker容器技术蜡笔小新..42 分钟前
Linux下Matplotlib使用Times New Roman字体的解决方案飞yu流星44 分钟前
文件压缩、文本内容、文本编辑洪流之源1 小时前
图像格式转换与内存对齐详解二宝哥1 小时前
Failed connect to mirrorlist.centos.org:80; Connection refused