{"id":771,"date":"2014-02-26T14:33:59","date_gmt":"2014-02-26T20:33:59","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=771"},"modified":"2025-07-22T04:19:13","modified_gmt":"2025-07-22T09:19:13","slug":"install-glassfish-on-a-centos-6-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/","title":{"rendered":"Install GlassFish on CentOS 6"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<h5 class=\"wp-block-heading\" id=\"h-status-this-os-is-no-longer-supported\">Status: This OS is no longer supported<\/h5>\n\n\n\n<p><em>This article, &#8220;Install GlassFish on CentOS 6,&#8221; covers a version of CentOS that reached end of life (EOL). It is no longer supported. As such, this guide is no longer maintained. If you are currently operating a server running CentOS 6, we highly recommend contacting <a href=\"https:\/\/www.rosehosting.com\/support\/\">RoseHosting&#8217;s fully managed support<\/a>. They can upgrade or migrate you to a supported version of AlmaLinux.<\/em><\/p>\n\n\n\n<!--more-->\n\n\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/GlassFish_logo.gif\"><img decoding=\"async\" class=\"alignleft size-full wp-image-4454\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/GlassFish_logo.gif\" alt=\"GlassFish\" width=\"107\" height=\"65\" \/><\/a>GlassFish is a free, open-source application server for the Java EE platform. With this application, developers can develop and deploy portable, scalable enterprise Java applications on their <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS<\/a>.<\/p>\n<p>GlassFish requires a working JDK installation. Skip the first step if you already have it.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f5c35979c32\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f5c35979c32\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#Install-JDK\" >Install JDK<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#Install-the-GlassFish-Server\" >Install the GlassFish Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#Install-GlassFish-on-CentOS-6\" >Install GlassFish on CentOS 6<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Install-JDK\"><\/span><strong>Install JDK<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a directory where you want to install JDK:<\/p>\n<pre class=\"brush: shell; gutter: true\"># mkdir \/usr\/java<\/pre>\n<p>Change to the directory:<\/p>\n<pre class=\"brush: shell; gutter: true\"># cd \/usr\/java<\/pre>\n<p>Download the latest stable JDK release, currently JDK 7 Update 5, from http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html. Be sure to select the appropriate version for your OS (32 or 64-bit version)<\/p>\n<p>Unpack the downloaded JDK file into the newly created directory:<\/p>\n<pre class=\"brush: shell; gutter: true\"># tar -xzf jdk-7u5-linux-i586.tar.gz<\/pre>\n<p>Set the PATH for the JDK installation by editing your &#8216;~\/.bash_profile&#8217; file and adding the following lines:<\/p>\n<pre class=\"brush: shell; gutter: true\">export JAVA_HOME=\/usr\/java\/jdk1.7.0_05\nexport PATH=$JAVA_HOME\/bin:$PATH<\/pre>\n<p>After setting the PATH variable, execute:<\/p>\n<pre class=\"brush: shell; gutter: true\"># .bash_profile<\/pre>\n<p>Alternatively, you can exit and reopen the command prompt.<\/p>\n<p>Check if the PATH is set correctly:<\/p>\n<pre class=\"brush: shell; gutter: true\"># echo $JAVA_HOME<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-the-GlassFish-Server\"><\/span><strong>Install the GlassFish Server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Change to the directory where you want to install the GlassFish application:<\/p>\n<pre class=\"brush: shell; gutter: true\"># cd \/opt<\/pre>\n<p>Download the latest GlassFish zip installation file:<\/p>\n<pre class=\"brush: shell; gutter: true\"># wget http:\/\/download.java.net\/glassfish\/3.1.2\/release\/glassfish-3.1.2.zip<\/pre>\n<p>Unpack the downloaded zip file:<\/p>\n<pre class=\"brush: shell; gutter: true\"># unzip glassfish-3.1.2.zip<\/pre>\n<p>Usually, the zip file is extracted to a directory called &#8216;\/glassfish3&#8217;<\/p>\n<p>Since it is not recommended to run the Glassfish process as root, we need to add a group and user for the GlassFish application:<\/p>\n<pre class=\"brush: shell; gutter: true\"># groupadd glassfish\n# useradd -s \/bin\/bash -g glassfish glassfish\n# chown -R glassfish: \/opt\/glassfish3\/<\/pre>\n<p>Change the password for the &#8216;glassfish&#8217; user:<\/p>\n<pre class=\"brush: shell; gutter: true\"># passwd glassfish\nChanging password for user glassfish.\nNew password:<\/pre>\n<p>Create a start\/stop\/restart script:<\/p>\n<pre class=\"brush: shell; gutter: true\"># nano \/etc\/init.d\/glassfish<\/pre>\n<pre class=\"brush: shell; gutter: true\">#!\/usr\/bin\/env bash\n# description: Glassfish start\/stop\/restart\n# processname: glassfish\n# chkconfig: 2445 20 80\nJAVA_HOME=\/usr\/java\/jdk1.7.0_05\nexport JAVA_HOME\nPATH=$JAVA_HOME\/bin:$PATH\nexport PATH\nGLASSFISH_HOME=\/opt\/glassfish3\/glassfish\/\nGLASSFISH_USER=glassfish\n\ncase $1 in\nstart)\n    su $GLASSFISH_USER -c \"$GLASSFISH_HOME\/bin\/asadmin start-domain domain1\"\n;;\nstop)\n    su $GLASSFISH_USER -c \"$GLASSFISH_HOME\/bin\/asadmin stop-domain domain1\"\n;;\nrestart)\n    su $GLASSFISH_USER -c \"$GLASSFISH_HOME\/bin\/asadmin stop-domain domain1\"\n    su $GLASSFISH_USER -c \"$GLASSFISH_HOME\/bin\/asadmin start-domain domain1\"\n;;\nesac\nexit 0<\/pre>\n<p>Save the script and make it executable:<\/p>\n<pre class=\"brush: shell; gutter: true\"># chmod +x \/etc\/init.d\/glassfish<\/pre>\n<p>If you want to start up your GlassFish application on boot, execute the following commands:<\/p>\n<pre class=\"brush: shell; gutter: true\"># chkconfig --add glassfish  \n# chkconfig glassfish on<\/pre>\n<p>To start\/stop\/restart Glassfish, use the command:<\/p>\n<pre class=\"brush: shell; gutter: true\"># \/etc\/init.d\/glassfish start\/stop\/restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-GlassFish-on-CentOS-6\"><\/span>Install GlassFish on CentOS 6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Once the installation is completed, you can open the default GlassFish home page at <em>http:\/\/domain.com:8080<\/em> or the GlassFish admin console at <em>http:\/\/domain.com:484<\/em>8<\/p>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24\u00d77 and will take care of your request immediately. For more updates, you can also refer to this post <a href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-4-1-on-a-centos-7-vps\/\">Install GlassFish 4.1 on Centos 7<\/a>.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Status: This OS is no longer supported This article, &#8220;Install GlassFish on CentOS 6,&#8221; covers a version of CentOS that &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install GlassFish on CentOS 6\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#more-771\" aria-label=\"Read more about Install GlassFish on CentOS 6\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":1135,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13,1707],"tags":[34,165,19,1152,18],"class_list":["post-771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","category-web-servers","tag-centos","tag-glassfish","tag-linux-vps-hosting","tag-rosehosting","tag-vps","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install GlassFish on CentOS 6 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install GlassFish on CentOS 6, an unsupported version. Explore steps and alternatives for application deployment.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install GlassFish on CentOS 6\" \/>\n<meta property=\"og:description\" content=\"Install GlassFish on CentOS 6 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-26T20:33:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-22T09:19:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"107\" \/>\n\t<meta property=\"og:image:height\" content=\"65\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install GlassFish on CentOS 6\",\"datePublished\":\"2014-02-26T20:33:59+00:00\",\"dateModified\":\"2025-07-22T09:19:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/\"},\"wordCount\":440,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/GlassFish_logo.gif\",\"keywords\":[\"centos\",\"glassfish\",\"linux vps hosting\",\"rosehosting\",\"vps\"],\"articleSection\":[\"CentOS\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/\",\"name\":\"Install GlassFish on CentOS 6 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/GlassFish_logo.gif\",\"datePublished\":\"2014-02-26T20:33:59+00:00\",\"dateModified\":\"2025-07-22T09:19:13+00:00\",\"description\":\"Learn how to install GlassFish on CentOS 6, an unsupported version. Explore steps and alternatives for application deployment.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/GlassFish_logo.gif\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/GlassFish_logo.gif\",\"width\":\"107\",\"height\":\"65\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-glassfish-on-a-centos-6-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install GlassFish on CentOS 6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install GlassFish on CentOS 6 | RoseHosting","description":"Learn how to install GlassFish on CentOS 6, an unsupported version. Explore steps and alternatives for application deployment.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/","og_locale":"en_US","og_type":"article","og_title":"Install GlassFish on CentOS 6","og_description":"Install GlassFish on CentOS 6 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2014-02-26T20:33:59+00:00","article_modified_time":"2025-07-22T09:19:13+00:00","og_image":[{"width":107,"height":65,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif","type":"image\/gif"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install GlassFish on CentOS 6","datePublished":"2014-02-26T20:33:59+00:00","dateModified":"2025-07-22T09:19:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/"},"wordCount":440,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif","keywords":["centos","glassfish","linux vps hosting","rosehosting","vps"],"articleSection":["CentOS","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/","name":"Install GlassFish on CentOS 6 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif","datePublished":"2014-02-26T20:33:59+00:00","dateModified":"2025-07-22T09:19:13+00:00","description":"Learn how to install GlassFish on CentOS 6, an unsupported version. Explore steps and alternatives for application deployment.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/10\/GlassFish_logo.gif","width":"107","height":"65"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-glassfish-on-a-centos-6-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install GlassFish on CentOS 6"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":50870,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/771\/revisions\/50870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/1135"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}