From 1d9b2d57ce1e6e77951e412dee97ac6ee8f3aff2 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Wed, 21 Aug 2019 18:47:50 +1000 Subject: [PATCH] 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) --- docs/reference/getting-started.asciidoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/reference/getting-started.asciidoc b/docs/reference/getting-started.asciidoc index 435adfdd00e..00642195b89 100755 --- a/docs/reference/getting-started.asciidoc +++ b/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