ubuntu简单设置代理的办法

时间:2025-04-10 08:01:41

直接输入命令

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

以上代理网址更改为自己的。
或者
修改家目录下的.bashrc文件

sudo vi ~/.bashrc

在最后追加几句命令

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

然后执行

source .bashrc

测试一下

wget 

能下载下来 index文件证明OK。