-
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
相关推荐
JhonKI7 分钟前
【Linux网络】构建HTTP响应与请求处理系统 - HttpResponse从理解到实现文牧之21 分钟前
PostgreSQL 常用日志蓝莓味柯基26 分钟前
DevOps:概念与学习路径FJW02081442 分钟前
【Linux】web服务器的部署和优化Linux运维老纪1 小时前
Python文件操作及数据库交互(Python File Manipulation and Database Interaction)weixin_430750931 小时前
智能小助手部署 Win10 + ollama的Deepseek + CentOS+ maxKB有谁看见我的剑了?1 小时前
docker 运行时权限和 Linux 能力了解平生不喜凡桃李1 小时前
Linux 进程控制hope_wisdom1 小时前
Linux系统编程之内存映射偶尔微微一笑1 小时前
sgpt在kali应用