Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy-manage/deploy/self-managed/_snippets/enroll-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <enrollment-token>
.{{slash}}bin{{slash}}elasticsearch --enrollment-token <enrollment-token>
```

{{es}} automatically generates certificates and keys in the following directory:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}
Expand All @@ -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:
```
Expand Down
Loading