命令行设置代理

Write Comment
命令行设置代理

命令行设置代理

卷心菜 卷心菜
Abstract 教程为命令行下教程,如果是桌面系统,可以直接在设置中修改。

教程为命令行下教程,如果是桌面系统,可以直接在设置中修改

linux

方法一:设置环境变量

临时

export all_proxy=http://ip:port // 全部
export http_proxy=http://ip:port
export https_proxy=http://ip:port // socks5h://ip:port
export no_proxy=localhost,127.0.0.1,::1 # 不通过代理

或者永久,加入到/etc/profile 中,初次需要重新加载 . /etc/profile 或者

Login required to read the rest of the content

登录 to comment~