gpt4 book ai didi

php - 看似不正确的elasticsearch文件夹

转载 作者:行者123 更新时间:2023-12-02 10:53:32 29 4
gpt4 key购买 nike

我从https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.0.zip下载了elasticsearch。

文件夹似乎不正确,或者我做错了什么。

我打开了文件夹,但是:

  • 虽然我在32位PC上,但我看不到任何X86可执行文件
    文件夹(目录)的名称是elasticsearch-7.0.0-beta1-windows-x86_64。当我打开提取的
    文件夹,这是我看到的:

    Snapshot of downloaded elasticsearch bin folder
  • 另外,当我运行bin\elasticsearch.bat时,我得到一个空的控制台。绝对没有显示。控制台为空。
  • 根据https://www.elastic.co/downloads/elasticsearch,I应该是Run curl http://localhost:9200/ or Invoke-RestMethod http://localhost:9200 with PowerShell,它们都不起作用,当我尝试两者时,我得到以下信息:
    Errors displayed in Powershell

  • 这些是错误:
    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.

    PS C:\Users\o.o amoo> curl http://localhost:9200/^Vcurl http://localhost:9200/curl http://localhost:9200/curl http://loc
    alhost:9200/curl http://localhost:9200/^V
    The term 'curl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli
    ng of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:5
    + curl <<<< http://localhost:9200/▬curl http://localhost:9200/curl http://localhost:9200/curl http://localhost:9200/cu
    rl http://localhost:9200/▬
    + CategoryInfo : ObjectNotFound: (curl:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\Users\o.o amoo> curl
    The term 'curl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli
    ng of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:5
    + curl <<<<
    + CategoryInfo : ObjectNotFound: (curl:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\Users\o.o amoo> Invoke-RestMethod http://localhost:9200
    The term 'Invoke-RestMethod' is not recognized as the name of a cmdlet, function, script file, or operable program. Che
    ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:18
    + Invoke-RestMethod <<<< http://localhost:9200
    + CategoryInfo : ObjectNotFound: (Invoke-RestMethod:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\Users\o.o amoo>
    PS C:\Users\o.o amoo>
    PS C:\Users\o.o amoo>
    PS C:\Users\o.o amoo>

    请帮助,我感到非常沮丧。

    最佳答案

    步骤1 :(最重要)

    Make sure you check whether Java is installed in your system or not (cmd > java -version) & Set JAVA_HOME to the Jdk path in Environment variables.



    第2步:

    Open command prompt with run as administrator :

    cmd > cd paste_folder_path/bin/elasticsearch.bat
    // This will start the elasticsearch server.



    第三步:

    localhost:9200



    如果这不起作用,请尝试使用Elasticsearch 6.6.0版...您正在尝试的Beta版可能仍然存在问题,因此会引起一些问题。

    关于php - 看似不正确的elasticsearch文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54770539/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com