找回密码
 立即注册
搜索
查看: 284|回复: 0

Linux 代理设置

[复制链接]

266

主题

0

回帖

1119

积分

管理员

积分
1119
发表于 2024-1-14 01:24:00 | 显示全部楼层 |阅读模式

建配置文件 enproxy:

export proxy="https://192.168.1.182:33355"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy="localhost, 127.0.0.1, ::1"

建配置文件 disproxy:

unset http_proxy
unset https_proxy
unset ftp_proxy
unset no_proxy

用时:

source enproxy

不用时:

source disproxy

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|棱讯科技 ( 粤ICP备2024228160号-2|粤公网安备44030002003510号 )

GMT+8, 2024-7-27 17:07 , Processed in 0.013299 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表