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)
This commit is contained in:
Russ Cam 2019-08-21 18:47:50 +10:00
parent c6709f0979
commit 1d9b2d57ce
1 changed files with 7 additions and 7 deletions

View File

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