Glass fish ESB Installation in Linux
Step by step Installation in Linux
Hardware Configuration: Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
Linux Version: Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
How to install JDK 6 (jdk-6u24-linux-i586-rpm.bin)
Download jdk-6u24-linux-i586-rpm.bin from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Copy jdk-6u24-linux-i586-rpm.bin to /opt
[root@bankonlnx01 opt]# ls
Jdk-6u24-linux-i586-rpm.bin
[root@bankonlnx01 opt]# chmod +x jdk-6u24-linux-i586-rpm.bin
[root@bankonlnx01 opt]# ./jdk-6u24-linux-i586-rpm.bin
This will install the jdk 1.6 to /usr/java/jdk1.6.0_24
Install GlassFish ESB Components Using the GlassFish ESB Installer
We will use glassfishesb-v2.2-full-installer-linux.sh compiled one
Before You Begin
When installing GlassFish ESB on UNIX systems, such as Linux machines, you need to set the DISPLAY variable to install in GUI mode. How you do this depends on how you connect to your system, as described below.
If you receive the error message “No X11 DISPLAY variable was set, but this program performed an operation which requires it” and you use the SSH command to connect to your system from another Windows machine, you need to set the DISPLAY variable.
Follow this step
You need to install xming
What is Xming ?
Xming is a standalone open source X Server for Windows. Programs that use a graphical user interface like Kate require an X server on your home computer. Xming can be found on the CSE mirror at http://mirror.cse.unsw.edu.au/pub/xming/ You should download the setup program and optionally the fonts package.
Installing PuTTY and XMing
Download putty from
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Run the setup programs for PuTTY and Xming. We suggest that you choose the default options for the installation, and choose the options to create icons for PuTTY and Xming on the desktop.
Xming must be running before you run PuTTY. When it is running, you will see an X icon in the system tray (the bottom right hand side of your Windows screen). If you forget, you can always run it after running PuTTY, even if you are logged on to the server.
Configuring PuTTY and XMing
When you run PuTTY for the first time, you will see a window like the one below
STEP 1 - In the box below Host Name (or IP Address) enter login.cse.unsw.edu.au.
STEP 2 – Make sure SSH is selected.
STEP 3 – Enter login.cse.unsw.edu.au in the box below Saved Sessions. STEP 4 – Click the [-] to expand SSH from the window on the left (if necessary) and click X11. You should see
this screen. Ensure that the checkbox for Enable X11 forwarding is selected.
After you have clicked the check box, scroll the left hand window back to the top and click on the Session heading. You should see the same screen as in Step 1
STEP 5 Click the Save button. The host name you entered should now appear below Default Settings. In the future, you will be able to connect by simply double-clicking this host name.
STEP 6 Click the Open button.
STEP 7 If you see a window like this: click the Yes button.
STEP 8 When you see: login as: enter your CSE username.
STEP 9 When you see: username@servername.cse.unsw.edu.au’s password: enter your CSE password.
YOU ARE NOW REMOTELY LOGGED IN TO YOUR CSE ACCOUNT
For Linux or Solaris, change the execution mode with the command chmod a+x installer_file.sh, then start the installation with the command ./installer_file.sh.
Now try to install by executing this command
[root@test opt]# chmod + x glassfishesb-v2.2-full-installer-linux.sh
[root@test opt]# ./glassfishesb-v2.2-full-installer-linux.sh
Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...
Step1. The Glassfish ESB Installer wizard appears.
· Tip –
You can click the Customize button to choose to only install the GlassFish ESB runtime (domain) or the design-time (NetBeans tools). Use the Next and Previous buttons to navigate forward and backward in the installation.
Step 2. Click Next on the Introduction page to begin the installation.
The License Agreement window appears.
On the License Agreement page, read the license agreement, Select I Accept the Terms of the License Agreement, and then click Next.
Step 3. The NetBeans IDE Installation window appears.
Do the following:
a. Verify or modify the location for the NetBeans IDE.
b. Verify or modify the location of the associated Sun JDK.
c. Click Next.
Step 4. The Glassfish Installation window appears
- · Note –
The Glassfish admin password, which is adminadmin by default, is specified here; but not the master password. The default master password is changeit. If you need to change the master password, run the following command:
asadmin change-master-password new-password
Substitute the actual password for new-password.
· Do the following:
a. Verify or modify the location for GlassFish.
b. Verify or modify the location of the associated Sun JDK
c. If you have no port conflict, accept the default server properties; otherwise modify the port numbers as needed.
d. Click Next.
Step 5. When the Summary page appears, verify each component of the installation and then click Install. If you need to make changes, click Previous to return to a previous screen.
Step 6. Skip registration now and register later.
To do this, deselect the open registration page option before clicking Finish.
When you register, the following benefits become available to you:
· Notification of new versions, patches, and updates
· Special offers on Sun developer products, services, and training
· Ability to track and manage your registered products on the Sun Inventory site
Click Finish.
GlassFish ESB is configured for your system.
How to install MySQl-Server (MySQL-server-standard-4.1.22-0.rhel4.i386.rpm)
First need to check the OS version, depending on that we need to install the version of MySQL-server.
Download MySQL-server-standard-4.1.22-0.rhel4.i386.rpm from
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/mysql-server
To check the OS version
[root@test ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Now we need to install MySQL-server & MySQL-client for Red Hat Enterprise Linux ES release 4
[root@test ~]# rpm -ivh MySQL-server-standard-4.1.22-0.rhel4.i386.rpm
warning: MySQL-server-standard-4.1.22-0.rhel4.i386.rpm: V3 DSA signature: NOKEY,
key ID 5072e1f5
Preparing... ########################################### [100%]
[root@test ~]# rpm -ivh MySQL-client-standard-4.1.22-0.rhel4.i386.rpm
warning: MySQL-client-standard-4.1.22-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
[root@test ~]#mysqladmin -u root password 'mysql’; (set the mysql password )
[root@test ~]#mysql – u root –p
It will ask for the password
Give the password mysql
mysql>use mysql;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY "mysql" WITH GRANT OPTION;
Note : After rebooting we need to start the service of MySQL
[root@test ~]# service mysql start
Shutting down MySQL.. [ OK ]
Starting MySQL [ OK ]
How to install Apache-Tomcat (apache-tomcat-6.0.32.tar.gz )
Download apache-tomcat-6.0.32.tar.gz from
http://tomcat.apache.org/download-60.cgi
[root@test ~]# tar –xvf apache-tomcat-6.0.32.tar.gz
[root@test ~]# cd apache-tomcat-6.0.32
The installation path is /opt/apache-tomcat-6.0.32
[root@test ~]# cd bin
[root@test ~]# ./startup.sh (This will start up the service for apache-tomcat)
Note: To increase the heap size in tomcat goes to the tomcat directory
[root@test ~]# cd /opt/ apache-tomcat-6.0.32/bin
[root@test ~]# vi setenv.sh
JAVA_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=1024m" (Add this line )
Checklist for the software in the AIX
1. For Java: jdk-6u24-linux-i586-rpm.bin
2. For connecting to server: Putty beta - 0.6, Xming-6-9-0-31
3. For Glassfish: glassfishesb-v2.2-full-installer-linux.sh
4. For Mysql server: MySQL-server-standard-4.1.22-0.rhel4.i386.rpm
5. For Apache Tomcat: apache-tomcat-6.0.32.tar.gz
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home