5.6.1 Prerequisites
Use the instructions in this section to run OpenSearch as a service on a Linux host, and to start automatically upon rebooting. Ensure that you fulfill these requirements:
-
The OpenSearch process should not be running.
If OpenSearch is running, ensure that it is not being used, and then stop the process.
See Starting and Stopping an OpenSearch Service.
-
The script to install the service must be run by the root user.
-
OpenSearch is installed on the Linux server where you run this procedure.
-
The OpenSearch and JDK installation directories are located under the DPK base directory; that is:
-
The DPK base directory is referred to in this documentation as BASE_DIR, such as /home/opensearch.
-
The OpenSearch installation directory, OSK_HOME, is found in BASE_DIR/pt/opensearch-3.2.0.
-
The Java installation directory, JAVA_HOME, is found in BASE_DIR/pt/os_jdk21.0.yy, where yy is the JDK version.
-
-
OpenSearch must be run by the user who owns OSK_HOME.
This is due to the fact that the script does not input the user name.
-
You have downloaded and extracted the required OSK DPK for Linux, in a directory referred to as OSK_INSTALL.