当前位置: 技术问答>linux和unix
由wget引出的问题:no route to host
来源: 互联网 发布时间:2015-11-16
本文导语: 通过以下步骤: ifconfig cat /etc/sysconfig/network-scripts/ifcfg-eth0 cat /etc/sysconfig/network-scripts/ifcfg-eth1 cat /etc/resolv.conf cat /etc/hosts.allow cat /etc/hosts.deny 我都没有发现问题,但wget -P /somepath http://someurl的时候,总是: connect...
通过以下步骤:
ifconfig
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network-scripts/ifcfg-eth1
cat /etc/resolv.conf
cat /etc/hosts.allow
cat /etc/hosts.deny
我都没有发现问题,但wget -P /somepath http://someurl的时候,总是:
connecting to someip... failed: no route to host
该怎么解决呢?
ifconfig
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network-scripts/ifcfg-eth1
cat /etc/resolv.conf
cat /etc/hosts.allow
cat /etc/hosts.deny
我都没有发现问题,但wget -P /somepath http://someurl的时候,总是:
connecting to someip... failed: no route to host
该怎么解决呢?
|
检查ifconfig和route的输出,看看是不是没有路由。