将 Elasticsearch 5.6.4 安装为 Windows 服务时出错

Error while installing Elasticsearch 5.6.4 as a Windows service

这太荒谬了:

我从官网下载了ElasticSearch 5.6.4 zip文件,解压到一个文件夹,然后运行命令

./elasticsearch-service.bat

在 PowerShell 和标准 Windows 控制台中

输出的是错误信息:

Syntax Error

我没有做任何更改,只是下载并 运行 开箱即用。添加 installservicename 参数不会改变任何东西

我刚刚遇到了类似的问题。虽然报错信息不同。有点像

'x64).exe' is not recognized as an internal or external command

尝试 运行 没有 ./ 前缀的 .bat。