Linux 网络代理

    10

为Linux Debian系统添加上网🛩️http代理

✈️profile

  • 添加环境变量

export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
source /etc/profile #重新载入环境变量
  • 取消代理

unset http_proxy
unset https_proxy

🚁.bashrc

vim /root/.bashrc

export http_proxy=http://127.0.0.1:7890
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy

重新载入环境变量

source /root/.bashrc
  • 如果要取消,注视掉export之后,再重载环境变量即可

#export http_proxy=http://127.0.0.1:7890
#export https_proxy=$http_proxy
#export HTTP_PROXY=$http_proxy
#export HTTPS_PROXY=$http_proxy

重新载入环境变量

source /root/.bashrc

消息盒子

# 暂无消息 #

只显示最新10条未读和已读信息