繁体   English   中英

unix / linux无法解压缩文件以进行弹性搜索

[英]unix/linux can't unzip a file for elastic search

我正在尝试在Mac OS 10.10.5上安装弹性搜索

我正在关注此官方页面https://www.elastic.co/guide/zh-CN/elasticsearch/guide/current/_installing_elasticsearch.html

页面说

curl -L -O http://download.elasticsearch.org/PATH/TO/VERSION.zip

我这样做是: curl -L -O http://download.elasticsearch.org/elasticsearch-1-7-2.zip

然后页面上说:

解压elasticsearch- $ VERSION.zip

我这样做(在同一目录上)

unzip elasticsearch-1-7-2.zip

结果是:

End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of elasticsearch-1-7-2.zip or
        elasticsearch-1-7-2.zip.zip, and cannot find elasticsearch-1-7-2.zip.ZIP, period.

请问我做错了什么? 如何解决

更新1

我用这个

jar xvf elasticsearch-1-7-2.zip

我没有收到任何错误消息,但没有看到提取的文件。 该命令会将文件提取到另一个位置吗?

您的URL错误-您正在下载并尝试提取的是404页的文本。 尝试这个:

curl -O -L https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.zip

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM