Inst&Conf: SGMJ (Solaris Glassfish MySQL Java) Stack
Pátek V 16, 2008
For now it is just JIT (Just Install software) Virtual Appliance, developers will post-configure it using DOCs
This entry is part of 'OpenSolaris on Amazon EC2' WorkshopGlassFish V2 U1 with MySQL Community Server 5.0 in the News
Get Glassfish MySQL bundle from java EE donwloads
DOCS Installing Application Server 9.1 Update 1 with MySQL Community Server
Note: In this bundle in GlassFish V2 Update Release 1 (UR1), but with ability to update from Network
1. Install of GlassFish and MySQL bundle
chmod +x sjsas-9_1_01-mysql-solaris-i586.bin
./sjsas-9_1_01-mysql-solaris-i586.bin -console
The directory "/opt/glassfish" does not exist.
Do you want to create it now or choose another directory?
1. Create Directory
2. Choose New
Enter the number corresponding to your choice [1] {"<" goes back, "!"
exits} 1
The Sun Java System Application Server requires a Java 2 SDK.
Please provide the path to a Java 2 SDK 5.0 or greater.
[/usr/jdk/instances/jdk1.6.0] {"<" goes back, "!" exits}
Admin User [admin] {"<" goes back, "!" exits}:
Admin User's Password (8 chars minimum):
Re-enter Password:
Do you want to store admin user name and password in .asadminpass file in
user's home directory [yes] {"<" goes back, "!" exits}?
Admin Port [4848] {"<" goes back, "!" exits}:
HTTP Port [8080] {"<" goes back, "!" exits}:
HTTPS Port [8181] {"<" goes back, "!" exits}:
For your convenience, this installation of MySQL will setup a pre-configured
option file to be used for MySQL Server. This option file parameters are
generated based on the size of your machine. Please choose the size of your
system. Please refer Installation Guide for more information.
1. SMALL
2. MEDIUM
3. LARGE
4. HEAVY
5. HUGE
6. EXIT INSTALLATION
Please enter the number corresponding to the option [1] {"<" goes back, "!"
exits}: 2
2. Post-configure steps (Needed done on AMI image)
Note: This post-confgirations are not done for security reasons, so developers can put their passwords and config other security params.
Consult DOCc bellow for steps:
DOCS Installing Application Server 9.1 Update 1 with MySQL Community Server
2.1 Postconfigure MySQL
2.2 Start MySQL server
2.3 Start GlassFish server
2.4 Integrate GlassFish and MySQL into SMF to start automatically
Example for step 2.3:
Start Glassfish domain
/opt/glassfish/bin/asadmin start-domain domain1
See also: Sun Java System Application Server 9.1 Performance Tuning Guide
If you any issues with post-configuration you can contact GlassFish community:











Hi Rudolf
Great AMIs. I dont suppose you ha...