Come installare SUN Identity Manager 8 su Mac OS X

Sun Identity Manager on Mac OS X and Tomcat or Application Server

Earlier I blogged about installling OpenDS on Mac OS X.
Installing Sun Identity Manager 8 is just as easy with a minor tweak.

The "lh" script that sets up an environment for subsequent Java commands, is only aware of Unix, Linux and Windows.

A minor edit, in green font below, is required for the lh script to recognize the Macintosh Operating System 'Darwin'

OS=`uname -s`
if [ "$OS" = "Darwin" ]; then
ARCH=linux
ARCH_DIR=linux
elif [ "$OS" = "SunOS" ]; then
SPECIFIC_OS=`arch`
if [ "$SPECIFIC_OS" = "i86pc" ]; then
ARCH=solaris/x86
ARCH_DIR=solaris/x86
else
ARCH=solaris/sparc
ARCH_DIR=solaris/sparc
fi
elif [ "$OS" = "AIX" ]; then
ARCH=aix
ARCH_DIR=aix
elif [ "$OS" = "HP-UX" ]; then
ARCH=hpux
ARCH_DIR=hpux
else
ARCH=winnt
ARCH_DIR=win
fi


Thus, the standard procedure to install is as follows:

unzip IDM_7_1_0.zip (unzip the download)
cd IDM_7_1_0
cd db_scripts (setup the database tables)
mysql -u root (create a staging directory)
mv idm.war idm
cd idm
jar -xvf idm.war (unjar the .war file)
export WSHOME=/Applications/idm (set WSHOME)
cd bin

( edit the "lh" script as per below )

chmod +x lh
./lh setup (run setup
./lh setRepo -tMysql -ujdbc:mysql://localhost/waveset run setrepo
cd ../sample
../bin/lh import init.xml (import init.xml)
cd /Applications/idm
jar -cvf /Applications/idm.war * (create a new .war file)

./asadmin deploy /Applications/idm.war (deploy to the application server)
cp /Applications/idm.war tomcat_directory/webapp and restart tomcat (deploy to tomcat)

Commenti

Post popolari in questo blog

Solaris 10: How to restart network service without reboot

How to send e-mail using PHP and mail() with Linux Debian