簡體   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