Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Friday, April 23, 2010

Install/Uninstall GlassFish on Linux

Uninstalling Glassfish V2 and installing Glassfish V3

Glassfish can be installed with the file-based installer or the JAR-based installer.
Uninstall instructions from SUN
Installtion instruction from SUN

Installing Glassfish

File-based
  1. Download the file from
  2. chmod +x sges-glassfish-v3-unix.sh
  3. Create the installation directory: mkdir /usr/glassfish
  4. Navigate to where sges-glassfish-v3-unix.sh file exists.
  5. Run ./sges-glassfish-v3-unix.sh
  6. Follow the instructions.
ZIP file installtion
  1. Download the file from
  2. Create the installation directory: mkdir /usr/glassfish
  3. Unzip contents to installation directory: unzip sges-v3-unix.zip


JAR-based

Uninstalling Glassfish

File-based
  1. Navigate to your Enterprise Server installation directory.

  2. Invoke the uninstallation program as follows:

    • To use the uninstallation in GUI mode, type:

      ./uninstall

    • To use the uninstallation in command-line mode, type:

      ./uninstall -console


JAR-based and Zip
  1. Change to the directory containing the glassfish directory.

  2. Run the following command: rm —r glassfish.

Installing Apache Tomcat

  1. Download the latest stable release of tomcat from the tomcat website.
  2. Extract it to the required root directory. In our case it is /usr/tomcat/
    • tar -xzf /apache-tomcat-6.0.20.tar.gz -C /usr/tomcat/
    • NOTE: /usr/tomcat directory has to be created.
  3. Create a symbolic from /usr/tomcat/apache-tomcat-6.0.20 to latest. Commands shown below.
    • cd /usr/tomcat
    • ln -s apache-tomcat-6.0.20 latest
  4. Add CATALINA_HOME = /usr/tomcat/latest to /etc/profiles.
  5. Execute the following command after the changes to /etc/profiles has been made.
    • source /etc/profiles