-
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
相关推荐
chlk12313 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密舒一笑14 小时前
Ubuntu系统安装CodeX出现问题改一下配置文件14 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)碳基沙盒15 小时前
OpenClaw 多 Agent 配置实战指南深紫色的三北六号1 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)SudosuBash1 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️十日十行2 天前
Linux和window共享文件夹Sinclair2 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序木心月转码ing3 天前
WSL+Cpp开发环境配置