Home » Centos/RHEL » Payara Server On Centos7 Step by Step Installation

Payara Server On Centos7 Step by Step Installation

Payara Server is an open-source middleware application server consequent from GlassFish Server Open Source Edition. It was designed in 2014. Payara Server platform provides secure and reliable deployments of JAVA EE softwares (Applications) in any atmosphere: on premise, in the cloud environment or hybrid environment. Learn Installation of Payara Server On Centos7.

Payara Server fully supported Server derivative from GlassFish 5.x Open Source Edition, it’s support best deployment of JavaEE 8 applications. Making Improvements including JBatch, JCache and Hazelcast session clustering, Payara server also provide optimization for operations and production.  This article is dedicate to Payara Server On Centos7 Step by Step Installation

Download Payara server

[root@ipa local]# wget https://s3-eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/5.184/payara-5.184.zip
–2019-02-07 06:17:45– https://s3-eu-west-1.amazonaws.com/payara.fish/Payara+Downloads/5.184/payara-5.184.zip
Resolving s3-eu-west-1.amazonaws.com (s3-eu-west-1.amazonaws.com)…
Connecting to s3-eu-west-1.amazonaws.com (s3-eu-west-1.amazonaws.com)||:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 149081182 (142M) [application/zip]
Saving to: ‘payara-5.184.zip’

100%[============================================================================================>] 149,081,182 351KB/s in 3m 3s

2019-02-07 06:20:49 (797 KB/s) – ‘payara-5.184.zip’ saved [149081182/149081182]

Install OpenJDK.
Payara Server runs with java platform so we have to install java on linux server before Payara.

[root@ipa ~]# yum install epel-release
[root@ipa ~]#yum install java-1.8.0-openjdk

Create a user and a group for Payara Server.

[root@ipa ~]# groupadd –system payara
[root@ipa ~]# useradd –system –shell /bin/bash -g payara payara
[root@ipa ~]#

Append below lines in /etc/security/limits.conf file to increase the maximum number of open files limit for the user Payara.

payara soft nofile 35869
payara hard nofile 65536

Now unzip the downloaded zip file of payara server on your preferred location as we are going to install Payara server at /usr/local/payara.

[root@ipa local]# unzip payara-5.184.zip
[root@ipa local]# chown -R payara:payara payara5

Create domain (you can use your own domain) linuxpcfix.com.

[root@ipa local]# /usr/local/payara5/glassfish/bin
[root@ipa bin]# ./asadmin create-domain –adminport 4848 –savemasterpassword linuxpcfix.com

If the above command get runs without any error that means Payara server successfully installed. So finally start your payara server.

[root@ipa bin]# ./asadmin start-domain linuxpcfix.com
Waiting for linuxpcfix.com to start ……….
Successfully started the domain : linuxpcfix.com
domain Location: /usr/local/payara5/glassfish/domains/linuxpcfix.com
Log File: /usr/local/payara5/glassfish/domains/linuxpcfix.com/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.

To access the payara admin console enter the below url in your favorite browser.

When You try to login to Payara admin console, you will see “Secure Admin must be enabled to access the DAS remotely”, To resolve the issue enable the secure access by executing following command.

[root@ipa bin]# ./asadmin –host ipa.linuxpcfix.com –port 4848 change-admin-password
Enter admin user name [default: admin]>
Enter the admin password>
Enter the new admin password>
Enter the new admin password again>
Command change-admin-password executed successfully.
[root@ipa bin]# ./asadmin –host ipa.linuxpcfix.com –port 4848 enable-secure-admin
Enter admin user name> admin
Enter admin password for user “admin”>
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.
[root@ipa bin]#
[root@ipa bin]# ./asadmin restart-domain linuxpcfix.com
Successfully restarted the domain
Command restart-domain executed successfully.
[root@ipa bin]#

Now your payara admin console is secure and can access using following url, you will see that the above error is gone away.


I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *


Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud