Using RedHat Package Manager to Install or Upgrade NuoDB
The NuoDB RPM package can be installed on a Red Hat Enterprise Linux or CentOS system using the Red Hat Package Manager (rpm).
You must have root privileges on the host in order to install the NuoDB RPM package.
-
It will create a separate
nuodbuser and group ID. -
All processes will run under the
nuodbuser and group ID. -
NuoDB will be installed in the
/opt/nuodbdirectory. -
Configuration and logging will be placed in system locations such as
/etc/nuodband/var/log/nuodb. -
The NuoDB Admin Process (AP) service will be automatically started when the host is rebooted.
-
The NuoDB AP service will be managed by your system management facility such as
systemctlorservice.
NuoDB provides both a SystemD unit file and a SysV init script to manage the AP service.
For example, to install a NuoDB package file called nuodb-6.0.2.x86_64.rpm located in the ~/Downloads directory, use:
sudo rpm --install ~/Downloads/nuodb-6.0.2.x86_64.rpm
If a NuoDB package is already installed, upgrade the package using:
sudo rpm --upgrade ~/Downloads/nuodb-6.0.2.x86_64.rpm
For information on adding Enterprise Edition functionality, see Obtain and Install a Product License.
During installation, you might get a warning such as one of the following:
-
Unable to use the previous group id used by nuodb
-
Unable to use the previous user id used by nuodb
See Resolving Warnings About Previously Used NuoDB IDs to obtain further instructions.
It is useful to add the /opt/nuodb/bin directory to your $PATH, or to the path of the nuodb account.
Throughout this documentation we will often use the variable $NUODB_HOME to refer to to installation location of NuoDB on the system.
For the NuoDB RPM package this will always be /opt/nuodb, but you may prefer to set this variable to make copying commands more straightforward.
If so you, add lines like these to your ~/.bashrc file:
export NUODB_HOME=/opt/nuodb
export PATH=$NUODB_HOME/bin:$PATH