Installing NexJ Server remotely using ssh

You can install NexJ Server as a single instance or as a server cluster remotely using ssh.

Before you begin installing NexJ Server, ensure that Java JDK is installed on your machine and that the Java JDK installation directory is set as the system environment variable JAVA_HOME.

You must also acquire the correct JDBC driver for your database. Contact your NexJ representative or see the Release Notes document for your version of NexJ CRM for more information.

To install NexJ Server as a standalone instance or as a server cluster remotely using ssh:
  1. In NexJ Studio, on the Deployment layer, in the Environment tab, open the environment file for the current deployment.
  2. In the Overview tab, ensure that Type is set to Generic.
  3. In the Deployment Location field, specify the ssh folder directories for all the server nodes.
    For example, to install two NexJ Server nodes, specify ssh://hostname/projectdir1/sams,ssh://hostname/projectdir2/sams or ssh://{hostname/projectdir1,hostname/projectdir2}/sams.
  4. If you are installing a NexJ Server cluster, in the Clustering/Session subtab, select the Distributed (Enable Clustering) check box.
  5. Save the updated environment file.
  6. Click Window > Preferences.
    The Preferences dialog opens.
  7. Click NexJ Studio > Remote Deployment > SSH.
  8. In the Known hosts file field, enter the path to the known hosts file.
    The known hosts file allows NexJ Studio to authenticate the server.
  9. In the Personal key field, do one of the following:
    • If basic authentication is enabled in the environment file, select the Use password from the .server file (basic authentication) check box.
    • If basic authentication is not enabled in the environment file, in the Identity file field, enter the path to the private key for the client.
  10. Click OK.
    The Preferences dialog closes.
  11. Click the Deploy Model button .
    The NexJ Server instance or cluster is installed in the directories that you specified.
  12. Using a tool such as sftp or scp, copy the appropriate JDBC driver, such as jtds-1.2.2-7.jar or ojdbc6.jar, to the SERVER_HOME\deploy directory for each deploy location that you specified earlier in the Deployment Location field.
The NexJ Server instance or cluster is installed remotely on the specified servers.