Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
brucmao
V2EX  ›  Linux

wsl 取消代理不成功

  •  1
     
  •   brucmao · Aug 6, 2019 · 5673 views
    This topic created in 2497 days ago, the information mentioned may be changed or developed.

    前端时间在 wsl 设置了代理

    export http_proxy=127.0.0.1:7890
    export https_proxy=127.0.0.1:7890
    

    现在想取消代理,用了如下命令

    export http_proxy=
    export https_proxy=
    
    

    也尝试过用

    unset  http_proxy
    unset  https_proxy
    

    但是只能在当前窗口有效,我重开 windows terminal 发现没取消成功,怎么才能永远取消代理设置呢

    okampfer
        1
    okampfer  
       Aug 6, 2019
    你设置代理具体是怎么设置的?

    检查你的~/.profile 和~/.bashrc 等等文件,有没有 export 代理相关的环境变量。
    usdf
        2
    usdf  
       Aug 6, 2019
    命令行工具是什么
    jmc891205
        3
    jmc891205  
       Aug 6, 2019
    grep http_proxy ~/.bash*
    brucmao
        4
    brucmao  
    OP
       Aug 6, 2019
    我 sb 了,我在 ~/.zshrc 设置了,但是我用 vim ~/.zshrc 进去几次没找到,忘了翻页了!发 vi 和 vim 默认显示的位置不一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2694 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    ♥ Do have faith in what you're doing.