小编lal*_*rde的帖子

使用 wget 连接 Internet 时出现错误消息:连接到 localhost (localhost)|::1|:8080... 失败:连接被拒绝

运行时:

wget https://gitlab.com/marsat/CTparental/uploads/35fd33508a49915869fa43820a7d2c36/ctparental_debian9_lighttpd_4.44.05-1.0_all.deb
Run Code Online (Sandbox Code Playgroud)

结果如下:

converted 'https://gitlab.com/marsat/CTparental/uploads/35fd33508a49915869fa43820a7d2c36/ctparental_debian9_lighttpd_4.44.05-1.0_all.deb' (ANSI_X3.4-1968) -> 'https://gitlab.com/marsat/CTparental/uploads/35fd33508a49915869fa43820a7d2c36/ctparental_debian9_lighttpd_4.44.05-1.0_all.deb' (UTF-8)
--2020-01-05 12:12:22--  https://gitlab.com/marsat/CTparental/uploads/35fd33508a49915869fa43820a7d2c36/ctparental_debian9_lighttpd_4.44.05-1.0_all.deb
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.
Run Code Online (Sandbox Code Playgroud)

这里有几个关于服务器使用的问题,但我没有找到一个供客户端使用的。想要的文件存在于 gitlab.com 上,我可以通过浏览器下载它,没有任何问题。

我没有阻止任何事情的 iptables 规则:

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  
Run Code Online (Sandbox Code Playgroud)

这是我的网络配置:

ifconfig 
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet adr:192.168.0.xxx  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: …
Run Code Online (Sandbox Code Playgroud)

internet localhost connection

0
推荐指数
1
解决办法
4590
查看次数

标签 统计

connection ×1

internet ×1

localhost ×1