赞
踩
$ sudo vim /etc/profile
增加如下两行
export http_proxy=http://ip:port
export https_proxy=http://ip:port
$ sudo vim /etc/wgetrc
export http_proxy=http://ip:port
export https_proxy=http://ip:port
$ sudo vim /etc/apt/apt.conf
如果这个文件不存在就创建一个
Acquire::http::Proxy “http://proxyusr:password@proxy_id:port”;
或
Acquire::http::Proxy “http://proxy_id:port”;
Acquire::ftp::proxy "ftp://192.168.0.1:88/";
Acquire::https::proxy "https://192.168.0.1:88/";
sudo vim /etc/yum.conf
中加入下面
proxy=http://ip:port
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。