企业内部服务器无法连接网络,命令行设置HTTP代理

问题:

如果出现无法连接问题,则考虑是否为企业内部HTTP代理问题

解决方法:

在/etc/profile文件中加入

http_proxy=172.xx.1.246:8080 # 分别指定http、https、ftp协议使用的代理服务器地址

https_proxy=172.xx.1.246:8080

ftp_proxy=172.xx.1.246:8080

no_proxy=172.xx.3.0. #该网段内不使用代理

export http_proxy https_proxy ftp_proxy no_proxy

并执行

#source /etc/profile

#set

猜你喜欢

转载自mofeichen.iteye.com/blog/2144733
今日推荐