【问题标题】:unix/linux can't unzip a file for elastic searchunix/linux 无法解压缩文件以进行弹性搜索
【发布时间】:2015-12-16 18:37:52
【问题描述】:

我正在尝试在我的 mac os 10.10.5 上安装弹性搜索

我在关注这个官方页面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

然后页面说:

解压 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

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

【问题讨论】:

    标签: java linux macos unix elasticsearch


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2019-09-13
      • 2022-08-12
      • 1970-01-01
      • 2016-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多