Loading...

How to Install GlassFish on CentOS 8

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing GlassFish on CentOS 8

GlassFish is an open-source application server used for Java EE (Enterprise Edition) applications. It provides a runtime environment for deploying, managing, and scaling Java applications.

Here are the steps to install GlassFish on CentOS 8:

  1. First, update your system packages by running the following command in the terminal:
  2. sudo dnf update

  3. Next, install Java Development Kit (JDK) by using the following command:
  4. sudo dnf install java-11-openjdk-devel

  5. Once JDK is installed, download the GlassFish server from the official website. You can use the following command to download the latest version:
  6. wget https://download.eclipse.org/glassfish/glassfish-6.2.0.zip
    Make sure to replace the URL with the appropriate version if needed.
  7. After downloading, extract the zip file using the following command:
  8. unzip glassfish-6.2.0.zip

  9. Now, move the extracted folder to a convenient location, such as /opt:
  10. sudo mv glassfish6 /opt/
  11. Set the JAVA_HOME environment variable by opening the bash profile file in a text editor:
  12. sudo nano ~/.bash_profile
    Add the following line at the end of the file, replacing the path with the correct location of your JDK installation:
    export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
    Save the file and exit the text editor.
  13. To make the changes take effect, reload the bash profile:
  14. source ~/.bash_profile
  15. Finally, start the GlassFish server using the following command:
  16. /opt/glassfish6/bin/startDomain --verbose
    You should see the server console output indicating that the server has started successfully.
  17. To access the GlassFish administration console, open a web browser and enter the following URL:
  18. http://localhost:4848

Now you have successfully installed and started GlassFish on CentOS 8. You can deploy your Java applications and manage them using the GlassFish administration console.

Refer A Friend
Get $25

installing GlassFish on CentOS 8
GlassFish installation on CentOS 8
CentOS 8 GlassFish installation guide
GlassFish installation steps on CentOS 8
GlassFish on CentOS 8
CentOS 8 GlassFish tutorial
GlassFish on CentOS 8 tutorial
how to install GlassFish on CentOS 8
CentOS 8 GlassFish setup guide
GlassFish installation tutorial CentOS 8

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.