linux配置网络代理

linux配置网络代理

在shell的配置文件中添加网络代理

  1. 打开shell配置文件
    vim ~/.bashrc

  2. 在文件末尾添加代理(不加方括号)

http_proxy=[你要设置的代理]
https_proxy=[你要设置的代理]
proxy=[你要设置的代理]
  1. 重新加载shell配置,使设置的配置生效
    source ~/.bashrc

猜你喜欢

转载自blog.csdn.net/qq_39378657/article/details/111869605
今日推荐