Linux 怎么使用局域网内电脑的网络访问外部
一次性
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