2016-12-16 141 views
1

当我尝试通过代理与wget在centos上连接时,出现以下错误消息6.8。centos6.8 wget错误:需要代理验证

错误

wget http://www.yahoo.co.jp 
--2016-12-16 14:47:04 http://www.yahoo.co.jp 
Connecting to 172.30.10.124:8080... connected. 
Proxy request sent, awaiting response... 407 Proxy Authentication Required 
2016-12-16 14:47:04 ERROR 407: Proxy Authentication Required 

CHECKED

我确认这个命令运行。

export http_proxy='http://guest:[email protected]:8080' 
wget http://www.yahoo.co.jp 

〜/ .wgetrc

这是〜/ .wgetrc

http_proxy = 172.30.10.124:8080 
https_proxy = 172.30.10.124:8080 
ftp_proxy = 172.30.10.124:8080 
proxy_user = "guest" 
proxy_passwd = "gstPass" 
(I do not edit /etc/wgetrc) 

wget的版本

内容这是wget

版本

我也读了wget proxy authentication error但没有变化。

我应该在哪里检查?错误在哪里?

回答

1

我可以解决这个问题。我改变了proxy_userproxy_passwd的值。

http_proxy = 172.30.10.124:8080 
https_proxy = 172.30.10.124:8080 
ftp_proxy = 172.30.10.124:8080 
proxy_user = "guest" 
proxy_passwd = "gstPass" 

http_proxy = 172.30.10.124:8080 
https_proxy = 172.30.10.124:8080 
ftp_proxy = 172.30.10.124:8080 
proxy_user = guest 
proxy_passwd = gstPass 

我不用'“为proxy_userproxy_passwd