Linux 怎么使用局域网内电脑的网络访问外部

Linux 怎么使用局域网内电脑的网络访问外部_第1张图片

 一次性

export http_proxy="http://192.168.0.188:7890"
export https_proxy="http://192.168.0.188:7890"

一直生效

写入 ~/.bashrc(或 ~/.bash_profile

nano ~/.bashrc

 加入这一行:

export http_proxy="http://192.168.0.188:7890"
export https_proxy="http://192.168.0.188:7890"

保存后,执行一次:

source ~/.bashrc

你可能感兴趣的:(linux,运维,服务器)