-
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
相关推荐
桌面运维家几秒前
vDisk一键部署怎么应用?自动化脚本使用指南倔强的石头1066 分钟前
【Linux指南】基础IO系列(一)Linux 文件本质揭秘 —— 从 “磁盘文件” 到 “一切皆文件”robitmind6 分钟前
操作input子系统,用模拟按键输入解锁ubuntu锁屏Code小翊6 分钟前
re标准库模块一天学完2023自学中6 分钟前
imx6ull , 4.3寸800*480屏幕,触摸芯片型号 gt9147,显示触摸点的坐标数据Warren988 分钟前
Allure 常用装饰器:实战用法 + 最佳实践(接口自动化)2501_943695339 分钟前
高职大数据运维与管理专业,怎么学习Hadoop的基础操作?落羽的落羽9 分钟前
【Linux系统】文件IO:理解文件描述符、重定向、缓冲区xie_pin_an11 分钟前
Linux 基础入门:从历史到核心指令全解析遇见火星11 分钟前
服务器HBA卡与RAID卡:到底有什么区别?