java - unix/linux 无法解压缩用于 Elasticsearch 的文件

标签 java linux macos unix elasticsearch

我正在尝试在我的 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/

相关文章:

java - Elasticsearch 子聚合 tophits JAVA API 无法正常工作

java - 如何使一个类成为 Java Swing 中的组件?

php - Centos上XDebug安装报错

java - IntelliJ IDEA - 双引号和字母更改为 Unicode 字母

java - Java Servlet 中的 SSL 握手 (HttpsURLConnection)

java - 如何根据引号将字符串分解为参数?

linux - 使用tr命令将文件中的数据加密到存储在/tmp/中的临时文件中

java - java中使用linux命令复制目录操作

macos - 如何将docker-machine创建的VM绑定(bind)到OSX IP地址?

swift - 在 swift 中将任何文本字段字符串值导出到 csv 时,如何限制“字符更改为”?