diff --git a/deploy-manage/deploy/self-managed/_snippets/enroll-nodes.md b/deploy-manage/deploy/self-managed/_snippets/enroll-nodes.md index 1d58f6f204..201931ef50 100644 --- a/deploy-manage/deploy/self-managed/_snippets/enroll-nodes.md +++ b/deploy-manage/deploy/self-managed/_snippets/enroll-nodes.md @@ -19,7 +19,7 @@ If you can't access the first node, then modify your network configuration befor 2. In a separate terminal from where {{es}} is running, navigate to the directory where you installed {{es}} and run the `elasticsearch-create-enrollment-token` tool to generate an enrollment token for your new nodes. ```sh subs=true - bin{{slash}}elasticsearch-create-enrollment-token -s node + .{{slash}}bin{{slash}}elasticsearch-create-enrollment-token -s node ``` Copy the enrollment token, which you’ll use to enroll new nodes with your {{es}} cluster. @@ -29,7 +29,7 @@ If you can't access the first node, then modify your network configuration befor 3. From the installation directory of your new node, start {{es}} and pass the enrollment token with the `--enrollment-token` parameter. ```sh subs=true - bin{{slash}}elasticsearch --enrollment-token + .{{slash}}bin{{slash}}elasticsearch --enrollment-token ``` {{es}} automatically generates certificates and keys in the following directory: diff --git a/deploy-manage/deploy/self-managed/install-elasticsearch-with-zip-on-windows.md b/deploy-manage/deploy/self-managed/install-elasticsearch-with-zip-on-windows.md index 68134e2ebf..e1a23534a3 100644 --- a/deploy-manage/deploy/self-managed/install-elasticsearch-with-zip-on-windows.md +++ b/deploy-manage/deploy/self-managed/install-elasticsearch-with-zip-on-windows.md @@ -108,7 +108,7 @@ You can install {{es}} as a service that runs in the background or starts automa 1. Install {{es}} as a service. The name of the service and the value of `ES_JAVA_HOME` will be made available during install: ```sh subs=true - C:\Program Files\elasticsearch-{{stack-version}}\bin>elasticsearch-service.bat install + .\bin\elasticsearch-service.bat install ``` Response: @@ -127,7 +127,7 @@ You can install {{es}} as a service that runs in the background or starts automa 2. Start {{es}} as a service. When {{es}} starts, authentication is enabled by default: ```sh subs=true - C:\Program Files\elasticsearch-{{stack-version}}\bin>bin\elasticsearch-service.bat start + .\bin\elasticsearch-service.bat start ``` ::::{note} @@ -137,16 +137,12 @@ You can install {{es}} as a service that runs in the background or starts automa 3. Generate a password for the `elastic` user with the [`elasticsearch-reset-password`](elasticsearch://reference/elasticsearch/command-line-tools/reset-password.md) tool. The password is output to the command line. ```sh subs=true - C:\Program Files\elasticsearch-{{stack-version}}\bin>\bin\elasticsearch-reset-password -u elastic + .\bin\elasticsearch-reset-password -u elastic ``` #### Manage {{es}} as a service on Windows [windows-service-manage] -Run the `elasticsearch-service.bat` script in the `bin\` folder to install, remove, manage, or configure the service and potentially start and stop the service from the command line. - -```sh subs=true -C:\Program Files\elasticsearch-{{stack-version}}\bin>elasticsearch-service.bat -``` +Use the `elasticsearch-service.bat` script located in the `bin\` folder to install, remove, manage, start, or stop the service from the command line. Starting and stopping are only available if the service is already installed. Usage: ```