ソースを参照

Use the elasticsearch.bat file in zip distribution (#45596)

This commit updates the documentation to

- use the batch file included with the zip distribution; the exe file is included in the MSI only.
- introduce a space between the -E arguments and their values. Without a space (or quoted, but adding a space is cleaner), the argument will fail with PowerShell

(cherry picked from commit 5c8dbcedb0edf3a48ca1ec52aad9ea41fa941f8a)
Russ Cam 6 年 前
コミット
1f62138cfd
1 ファイル変更7 行追加7 行削除
  1. 7 7
      docs/reference/getting-started.asciidoc

+ 7 - 7
docs/reference/getting-started.asciidoc

@@ -87,7 +87,7 @@ tar -xvf elasticsearch-{version}-darwin-x86_64.tar.gz
 +
 Windows PowerShell:
 +
-["source","sh",subs="attributes,callouts"]
+["source","powershell",subs="attributes,callouts"]
 --------------------------------------------------
 Expand-Archive elasticsearch-{version}-windows-x86_64.zip
 --------------------------------------------------
@@ -104,10 +104,10 @@ cd elasticsearch-{version}/bin
 +
 Windows:
 +
-["source","sh",subs="attributes,callouts"]
+["source","powershell",subs="attributes,callouts"]
 --------------------------------------------------
-cd %PROGRAMFILES%\Elastic\Elasticsearch\bin
-.\elasticsearch.exe
+cd elasticsearch-{version}\bin
+.\elasticsearch.bat
 --------------------------------------------------
 +
 You now have a single-node {es} cluster up and running!
@@ -126,10 +126,10 @@ Linux and macOS:
 +
 Windows:
 +
-["source","sh",subs="attributes,callouts"]
+["source","powershell",subs="attributes,callouts"]
 --------------------------------------------------
-.\elasticsearch.exe -Epath.data=data2 -Epath.logs=log2
-.\elasticsearch.exe -Epath.data=data3 -Epath.logs=log3
+.\elasticsearch.bat -E path.data=data2 -E path.logs=log2
+.\elasticsearch.bat -E path.data=data3 -E path.logs=log3
 --------------------------------------------------
 +
 The additional nodes are assigned unique IDs. Because you're running all three