默认情况下,Mac OS X上没有wget
。
$ wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
-bash: wget: command not found
在Mac OS X上,等同于Linux的wget
是curl -O
$ curl -O http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
49 9112k 49 4481k 0 0 654k 0 0:00:13 0:00:06 0:00:07 793k
PS大写字母O,而不是零。
注意
如果您真的很喜欢Mac OS X上的原始wget
,请尝试使用brew
安装brew install wget