Cannot initiate the connection to 8080:80

安装好unbuntu 服务器在安装包的时候报错

Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22 Invalid argument)

这是由于公司服务器网关设置不能链接外网,拿到公司专用http Proxy

vim ~/.bashrc

 在最后添加两行代码 

export http_proxy="proxy.xxx.xxx.com:8080" export ftp_proxy="proxy.xxx.xxx.com:8080"

source .bashrc
echo $http_proxy

检查是否设置完成。若仍在无法连接,一般在proxy地址前面 加上 http:// 即可。

以上。

posted @ 2015-07-16 16:18  JoneStark  阅读(901)  评论(0编辑  收藏  举报