-
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
相关推荐
能喵烧香1 天前
深度解析:Linux 与 Windows 超级权限账户的本质差异pixcarp1 天前
知识库系统的内容资产闭环怎么设计江畔柳前堤1 天前
github实战指南01-账号配置与 SSH 密钥Moshow郑锴1 天前
Ubuntu 26.04 中文输入法 : fcitx5+Rime中州韵引擎莫名的好感°1 天前
手机RAR解压怎么选?2026年二季度四款产品问答qq_163135751 天前
Linux 【04-more命令超详细教程】sevencheng7981 天前
【ADB】adb命令行常用按键模拟代码暗影天帝1 天前
BPI-R3 Mini 刷 Yuzhii DHCPD U-Boot 教程小赖同学啊1 天前
智能连接器集群化高可用生产方案wanghao6664551 天前
DevOps 从入门到实践:构建高效交付流水线