我从https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.0.zip下载了elasticsearch。
似乎文件夹不正确或我做错了事。
我打开了文件夹,但是:
虽然我在32位PC上,但我看不到任何X86可执行文件
文件夹(目录)的名称为
elasticsearch-7.0.0-beta1-windows-x86_64
。当我打开提取的
文件夹,这就是我看到的:
而且,当我运行bin\elasticsearch.bat
时,我得到一个空控制台。绝对没有显示。控制台为空白。
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>
请帮助,我感到非常沮丧。
答案 0 :(得分:1)
步骤1 :(最重要)
确保检查系统中是否安装了Java (cmd> java -version)并将环境中的JAVA_HOME设置为Jdk路径 变量。
第2步:
以管理员身份运行时打开命令提示符:
cmd> cd paste_folder_path / bin / elasticsearch.bat
//这将开始 elasticsearch服务器。
第3步:
localhost:9200
如果这不起作用,请尝试使用Elasticsearch 6.6.0版...您正在尝试的beta版可能仍然存在问题,因此会导致一些问题。