The OMII Server release enables you to do the following:
install multiple OMII servers and their corresponding supporting databases on one machine. For example you can have two users install their own OMII servers and databases in their own user spaces.
use an existing database that you have installed on a remote machine.
install as root or a non-root user.
During installation, other existing RUNNING OMII Server installations on the same machine can be detected. All three of the Tomcat ports are checked for their availability and the PostgreSQL database port is also checked to see if it is already in use:
When installing as a root user, a check that port 5432 is free is carried out before installing any RPMs.
When installing as a non-root user, the user enters the port number they want and the installer will check that the port is available; if it is not available, the installer will issue a warning and ask for a different port.
Alternatively, before you install a second server on a machine, you could use the command:
netstat -tap|less
to list all ports which are actively listening. You can then set the environment variables for all three ports to different values prior to the second installation eg.
export OMII_TOMCAT_PORT=28080
export OMII_TOMCAT_AJP_PORT=28008
export OMII_TOMCAT_SHUTDOWN_PORT=28007