chap-install.xml revision 9797a5587e15fe093b9d962818283cd8e1197ef6
<?xml version="1.0" encoding="UTF-8"?>
<!--
! CCPL HEADER START
!
! This work is licensed under the Creative Commons
! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
! To view a copy of this license, visit
! http://creativecommons.org/licenses/by-nc-nd/3.0/
! or send a letter to Creative Commons, 444 Castro Street,
! Suite 900, Mountain View, California, 94041, USA.
!
! You can also obtain a copy of the license at
! legal/CC-BY-NC-ND.txt.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! If applicable, add the following below this CCPL HEADER, with the fields
! enclosed by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CCPL HEADER END
!
! Copyright 2011 ForgeRock AS
!
-->
<chapter xml:id='chap-install'
xmlns='http://docbook.org/ns/docbook'
version='5.0' xml:lang='en'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd'
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:xinclude='http://www.w3.org/2001/XInclude'>
<title>Installing OpenIDM Services</title>
<para>This chapter covers tasks required to install OpenIDM services, and to
ensure they run properly.</para>
<section>
<title>Before You Run OpenIDM</title>
<para>This chapter covers covers what you need to consider before you run
OpenIDM in your production environment.</para>
<section>
<title>Java Environment</title>
<para>OpenIDM requires requires Oracle Java SE JDK 6, update 24 or
later.</para>
<para>OpenJDK is not supported at this time.</para>
</section>
<section>
<title>Application Container</title>
<para>OpenIDM services run in an application container, by default provided
through OSGi. Jetty provides the default application container, listening
on port 8080 when you start OpenIDM services.</para>
</section>
</section>
<section>
<title>Install &amp; Run OpenIDM Services</title>
<procedure>
<step>
<para>Make sure you have the correct version of Java installed.</para>
<screen width='80'>$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)</screen>
</step>
<step>
<!-- TODO: Update this step when we have a downloads page to stable versions. -->
<para>Download <link
xlink:href='http://builds.forgerock.org/job/OpenIDM%202.x/lastSuccessfulBuild/artifact/openidm-zip/target/openidm-2.0.0-SNAPSHOT.zip'
>openidm-2.0.0-SNAPSHOT.zip</link>.</para>
</step>
<step>
<para>Unpack the contents of the .zip file into the install location.</para>
<screen width='80'>$ cd /path/to
$ unzip ~/Downloads/openidm-zip-2.0.0.zip
Archive: /Users/mark/Downloads/openidm-zip-2.0.0.zip
creating: openidm/
creating: openidm/bundle/
inflating: openidm/bundle/openidm-audit-2.0.0-SNAPSHOT.jar
inflating: openidm/bundle/openidm-repo-2.0.0-SNAPSHOT.jar
...
inflating: openidm/src/site/index.htm
$ </screen>
</step>
<step performance="optional">
<para>If you want OpenIDM services on a port different from 8080, edit
the <literal>org.osgi.service.http.port</literal> property in
<filename>openidm/conf/config.properties</filename>.</para></step>
<step>
<para>Start OpenIDM services.</para>
<screen width='80'>$ cd openidm/
$ /start.sh
Do you want to start in debug mode: [y]n
Listening for transport dt_socket at address: 5005
...
-&gt;</screen>
<para>You can enter commands at the resulting <literal>-&gt;</literal> prompt
such as <literal>help</literal> for usage, or <literal>ps</literal> to view
the bundles installed.</para>
</step>
<step>
<para>Start the administration console.</para>
<itemizedlist>
<para>Defaults are as follows.</para>
<listitem>
<para>Console URL: <link
xlink:href='http://localhost:8080/system/console'
>http://localhost:8080/system/console</link>.</para>
</listitem>
<listitem>
<para>Username: <literal>admin</literal></para>
</listitem>
<listitem>
<para>Password: <literal>admin</literal></para>
</listitem>
</itemizedlist>
</step>
<step>
<para>Access REST interface and list all users.</para>
<para>URL: <link
xlink:href="http://localhost:8080/openidm/managed/user/?_query-id=query-all-ids"
>http://localhost:8080/openidm/managed/user/?_query-id=query-all-ids</link></para>
</step>
</procedure>
<procedure>
<title>To Start OpenIDM Services</title>
<step>
<para>Change to the directory where OpenIDM software is installed.</para>
<screen width='80'>$ cd /path/to/openidm/</screen>
</step>
<step>
<para>Run the script to start OpenIDM services.</para>
<screen width='80'>$ /start.sh</screen>
<para>On Windows, the script to use is <filename>start.bat</filename>.</para>
</step>
</procedure>
<procedure>
<title>To Stop OpenIDM Services</title>
<step>
<para>Access the administration console.</para>
<para>The default URL is <link
xlink:href='http://localhost:8080/system/console'
>http://localhost:8080/system/console</link>.</para>
</step>
<step>
<para>Under the Shell tab, enter <literal>shutdown</literal> at the
<literal>-&gt;</literal> prompt.</para>
</step>
</procedure>
</section>
</chapter>