![如何解决“wget:无法解析主机地址”](https://linux22.com/image/985665/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E2%80%9Cwget%EF%BC%9A%E6%97%A0%E6%B3%95%E8%A7%A3%E6%9E%90%E4%B8%BB%E6%9C%BA%E5%9C%B0%E5%9D%80%E2%80%9D.png)
我以 root 身份运行此程序:
# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.1.tar.gz
--2015-11-17 20:31:46-- http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.1.tar.gz
Resolving prdownloads.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address “prdownloads.sourceforge.net”
答案1
请使用以下链接:
wget http://downloads.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.1/nagios-4.0.1.tar.gz
注意:我不知道您是否有特别的理由想要 4.0.1,但最新版本是 4.1.1:
wget http://downloads.sourceforge.net/project/nagios/nagios-4.x/nagios-4.1.1/nagios-4.1.1.tar.gz