Starting and Stopping a Node
You start or stop a node by starting or stopping the OpenSearch service on the node. Use the following steps to start or stop a node on Windows and on Linux.
Starting and Stopping the OpenSearch Service on Windows
On Microsoft Windows, the OpenSearch service is installed by the DPK setup script.
To start or stop an OpenSearch service:
-
Open a command prompt, and change directory to OS_HOME/bin.
-
To see the usage for the service command:
opensearch-service.bat install|remove|start|stop-
To start the OpenSearch service:
opensearch-service.bat start -
To stop the OpenSearch service:
opensearch-service.bat stop
-
Starting and Stopping the OpenSearch Service on Linux
To start or stop the OpenSearch service:
-
In a terminal window, change directory to OS_HOME/bin.
-
To start the OpenSearch process:
nohup ./OpenSearch & -
To stop the OpenSearch process:
-
Use this command to find the OpenSearch process ID:
ps -ef | grep opensearch -
Use this command to stop the process, substituting the process ID for pid:
kill <pid>
-