Linux 临时挂代理

Linux挂代理

Linux 临时挂代理

之前写过

1
2
export http_proxy="代理ip:代理端口"
export https_proxy="代理ip:代理端口"

可以在 一个windows 或docker 上跑一个允许lan的clash 就好了

1
2
export http_proxy="10.0.0.200:7890"
export https_proxy="10.0.0.200:7890"

另外一个代理

1
2
export http_proxy="10.0.0.9:7890"
export https_proxy="10.0.0.9:7890"

临时取消代理

1
2
unset http_proxy
unset https_proxy

全局代理

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
nano /etc/profile



export  http_proxy="http://10.0.0.200:7890/"
export  https_proxy="http://10.0.0.200:7890/"
export ftp_proxy="http://10.0.0.200:7890/"
export no_proxy="localhost,127.0.0.1,10.0.0.1/255.255.255.0,*.leiyanhui.com, ::1"



source /etc/profile
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计