Update windows instructions for security demo setup (#6527)
* Update windows instructions Signed-off-by: Derek Ho <dxho@amazon.com> * Get rid of "two ways" Signed-off-by: Derek Ho <dxho@amazon.com> * Remove extra copy Signed-off-by: Derek Ho <dxho@amazon.com> * Added the copy button Signed-off-by: Heather Halter <HDHALTER@AMAZON.COM> * Got rid of extra level Signed-off-by: Heather Halter <HDHALTER@AMAZON.COM> --------- Signed-off-by: Derek Ho <dxho@amazon.com> Signed-off-by: Heather Halter <HDHALTER@AMAZON.COM> Co-authored-by: Heather Halter <HDHALTER@AMAZON.COM>
This commit is contained in:
parent
bb662c9557
commit
694e37917a
|
@ -47,18 +47,9 @@ An OpenSearch node in its default configuration (with demo certificates and user
|
|||
|
||||
### Option 1: Test your OpenSearch settings with security enabled
|
||||
|
||||
1. Run the demo batch script.
|
||||
1. Run the demo batch script from Command prompt or Powershell.
|
||||
|
||||
There are two ways of running the batch script:
|
||||
|
||||
1. Run the batch script using the Windows UI:
|
||||
|
||||
1. Navigate to the top directory of your OpenSearch installation and open the `opensearch-{{site.opensearch_version}}` folder.
|
||||
1. Run the batch script by double-clicking the `opensearch-windows-install.bat` file. This opens a command prompt with an OpenSearch instance running.
|
||||
|
||||
1. Run the batch script from Command prompt or Powershell:
|
||||
|
||||
1. Open Command Prompt by entering `cmd`, or Powershell by entering `powershell`, in the search box next to **Start** on the taskbar.
|
||||
1. Open Command Prompt by entering `cmd` or Powershell by entering `powershell` in the search box next to **Start** on the taskbar.
|
||||
1. Change to the top directory of your OpenSearch installation.
|
||||
```bat
|
||||
cd \path\to\opensearch-{{site.opensearch_version}}
|
||||
|
@ -66,15 +57,15 @@ An OpenSearch node in its default configuration (with demo certificates and user
|
|||
{% include copy.html %}
|
||||
|
||||
1. Run the batch script.
|
||||
```bat
|
||||
.\opensearch-windows-install.bat
|
||||
```
|
||||
{% include copy.html %}
|
||||
For OpenSearch 2.12 or greater, set a new custom admin password before installation using the following command:
|
||||
For OpenSearch 2.12 or later, use the following command to specify a custom admin password:
|
||||
```bat
|
||||
> set OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password>
|
||||
```
|
||||
{% include copy.html %}
|
||||
```bat
|
||||
.\opensearch-windows-install.bat
|
||||
```
|
||||
{% include copy.html %}
|
||||
|
||||
1. Open a new command prompt and send requests to the server to verify that OpenSearch is running. Note the use of the `--insecure` flag, which is required because the TLS certificates are self-signed.
|
||||
- Send a request to port 9200:
|
||||
|
|
Loading…
Reference in New Issue