我正在尝试在我的 mac os 10.10.5 上安装 Elasticsearch
我正在关注这个官方页面 https://www.elastic.co/guide/en/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
然后页面说:
unzip 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
关于java - unix/linux 无法解压缩用于 Elasticsearch 的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32671895/