Configure Java
If your default Java environment is not appropriate, set OPENDJ_JAVA_HOME
to the path to the correct Java environment, or set OPENDJ_JAVA_BIN
to the absolute path of the java command. The latter environment variable is useful for example if you have both 32-bit and 64-bit versions of the Java environment installed, and want to make sure you use the 64-bit version.
What? Why have two variables? Anyway,
When you try to run the setup,
svradm@tinh0v01app:/opt/opendj.0$ ./setup --cli
Please set OPENDS_JAVA_HOME to the root of a Java 6 update 10 (or higher) installation or edit the java.properties file and then run the dsjavaproperties script to specify the Java version to be used.
What is dsjavaproperties? According to the inline comments in java.properties goes and updates all the different scripts with the new settings made in java.properties.
However, the funny thing is you need to set OPENDS_JAVA_HOME to even run dsjavaproperties.
Made the following changes to config/java.properties,
start-ds.java-args=-server -Xms256m overwrite-env-java-home=true overwrite-env-java-args=true default.java-home=/opt/opendj-java-runtime
-server - Per Oracle OpenDS manual, selects server application runtime optimizations. The directory server will take longer to start and “warm up” but will be more aggressively optimized to produce higher throughput.
I don't want the java path in the serveradmin's environment variable, so I'll only temporarily setup a java path to run dsjavaproperties,
There is a bug that was resolved in the main start-ds, but as of 2.4.5 still exists with dsjavaproperties, the environment variable should be, OPENDJ_JAVA_HOME but dsjavaproperties still uses OPENDS_JAVA_HOME. Need to open up a new ticket.
So set the environment variable and then run the command,
export OPENDS_JAVA_HOME=/opt/opendj-java-runtime svradm@tinh0v01app:/opt/opendj.0/bin$ ./dsjavaproperties The operation was successful. The server commands will use the java arguments and java home specified in the properties file located in /opt/opendj.0/config/java.properties
Log off and log back on to wipe out the temporary environment variable.
Command Line Setup
Run the command line setup,
./setup --cli
The initial root user for the DN, the default is cn=Directory Manager, a well known account.
If you use the default, make sure to use a complex password. We'll use the standard T&R password on "Directory Manager".
References
Not bad but not good manual setup - http://opendj.forgerock.org/doc/install-guide/OpenDJ-Install-Guide.html
https://bugster.forgerock.org/jira/browse/OPENDJ-330