Linux 配置代理

在我们账号的home那有一个.bashrc文件,用来设置一些开机运行的bash命令

cd ~
ls -a
vi .bashrc

我们可以在这里添加代理

export http_proxy="http://10.95.1.1:8080"
export https_proxy="http://10.95.1.1:8080"

然后执行下面命令让它生效

source ~/.bashrc

 

服务器开启代理:

systemctl start squid

详细了解下squid

posted @ 2019-03-20 13:04  张啊咩  阅读(3674)  评论(0编辑  收藏  举报