在服务器上安装一些服务的时候,需要访问进口资源,因此设置了一下全局HTTP代理(用完记得关掉。。。)
// 例如代理服务器地址为:10.2.1.240
// 端口号为:8123
vi /etc/profile
// 在最后添加六行
https_proxy=10.2.1.240:8123
http_proxy=10.2.1.240:8123
ftp_proxy=10.2.1.240:8123
export https_proxy
export http_proxy
export ftp_proxy
// 使设置立即生效
source /etc/profile
http://www.cppblog.com/markqian86/archive/2017/11/06/215331.html
Leave a reply