<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Payara Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/payara/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 19 Aug 2019 19:47:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Payara Server on Debian 10</title>
		<link>https://www.osradar.com/install-payara-server-debian-10/</link>
					<comments>https://www.osradar.com/install-payara-server-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 22 Aug 2019 23:00:27 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java EE]]></category>
		<category><![CDATA[Payara]]></category>
		<category><![CDATA[payara server]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13151</guid>

					<description><![CDATA[<p>It is no secret to anyone that Java is a very popular programming language. In fact, it still is despite Python or Rust. However, it is also true that to complement the professional development of Java requires other tools to effectively deploy these applications. In this sense, Payara Server emerges as the most viable solution [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-payara-server-debian-10/">Install Payara Server on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>It is no secret to anyone that Java is a very popular programming language. In fact, it still is despite Python or Rust. However, it is also true that to complement the professional development of Java requires other tools to effectively deploy these applications. In this sense, Payara Server emerges as the most viable solution for Java EE applications. Therefore, in this post, you will learn how to install Payara Server on Debian 10.</p>
<h2>Payara Server and Java EE</h2>
<p>To serve Java EE applications with war format nothing better than Payara Server. Payara Server is an open-source Java EE application server built in Java. Its main advantage over its competitors is that it is strongly supported by the community. In addition, it allows running in almost any environment either in the cloud or hybrid. This gives us an idea of the potential of the application.</p>
<p>Its main features are:</p>
<ul>
<li>Fully Supported Server derived from GlassFish 5.x Open Source Edition.</li>
<li>Drop-in Replacement for GlassFish Open Source Edition.</li>
<li>Microprofile 1.3 API support.</li>
<li>Supports deployment of JavaEE 8 applications.</li>
<li>Production Enhancements including JCache, JBatch, and Hazelcast session clustering.</li>
<li>Payara Micro for cloud and microservice deployments.</li>
</ul>
<p>So, let us start.</p>
<h2>1.- Install Java 11 on Debian 10</h2>
<p>Payara Server is built with Java which in theory makes it work with any version of it. However, the development branch 5 of the Payara Server works better if we install Java 11. So this is the first step:</p>
<p>Open a terminal session of your server or computer and run the following:</p>
<pre>:~$ sudo apt install openjdk-11-jre openjdk-11-jdk</pre>
<p>Then, check the installed version:</p>
<pre>:~$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-post-Debian-5)
OpenJDK 64-Bit Server VM (build 11.0.3+7-post-Debian-5, mixed mode, sharing)</pre>
<p>So, we can continue.</p>
<h2>2.- Download and install Payara Server on Debian 10</h2>
<p>Now it is necessary to download Payara Server from the <a href="https://www.payara.fish/software/downloads/" rel="noopener">project website</a>.</p>
<p>Then, it is necessary that you place it on your computer through an FTP server.</p>
<p>Read, <a href="https://www.osradar.com/how-to-set-up-an-ftp-server-on-debian-10-buster/" rel="noopener">How to set up an FTP server on Debian 10?</a></p>
<p>And move it to <code>/opt/</code></p>
<pre>:~$ sudo mv payara-5.192.zip /opt/</pre>
<p>Then unzip it.</p>
<pre>:~$ sudo unzip payara-5.192.zip</pre>
<p>Next, navigate into the folder and go to <code>bin</code>.</p>
<pre>:~$ cd payara5/bin/</pre>
<p>Now, we can start the server using the following command:</p>
<pre>:~$ sudo ./asadmin start-domain</pre>
<figure id="attachment_13154" aria-describedby="caption-attachment-13154" style="width: 509px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13154" src="https://www.osradar.com/wp-content/uploads/2019/08/1-14.jpeg" alt="1.- Starting Payara Server on Debian 10" width="509" height="155" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-14.jpeg 509w, https://www.osradar.com/wp-content/uploads/2019/08/1-14-300x91.jpeg 300w" sizes="(max-width: 509px) 100vw, 509px" /><figcaption id="caption-attachment-13154" class="wp-caption-text">1.- Starting Payara Server on Debian 10</figcaption></figure>
<p>Now, you can open your web browser and go to <code>http://your-server:4848</code> and you will see the following:</p>
<figure id="attachment_13152" aria-describedby="caption-attachment-13152" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13152" src="https://www.osradar.com/wp-content/uploads/2019/08/2-5.png" alt="2.- Starting Payara server" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/2-5-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13152" class="wp-caption-text">2.- Starting Payara server</figcaption></figure>
<p>After a few seconds, you will see this screen.</p>
<figure id="attachment_13153" aria-describedby="caption-attachment-13153" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13153" src="https://www.osradar.com/wp-content/uploads/2019/08/3-3.png" alt="3.- Payara server on Debian 10" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-3.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13153" class="wp-caption-text">3.- Payara server on Debian 10</figcaption></figure>
<p>Using this administration panel, you will be able to access all the server configurations. Also keep in mind, if you use a Firewall you need to open port 4848.</p>
<h2>3.- Change the default port of Payara Server</h2>
<p>To increase server security or for configuration reasons, it is possible to change the default port of Payara Server.</p>
<p>First, stop running the server:</p>
<pre>:~$ sudo ./asadmin stop-domain</pre>
<p>Now you have to edit a configuration file to change the port. To do this, open the domain.xml file located in <code>payara5/glassfish/domains/domain1/config/</code> directory.</p>
<pre>:~$ cd ../glassfish/domains/domain1/config/
:~$ sudo nano domain.xml</pre>
<p>In the file, in the <code>network-listener</code> section, you will see the port field and you will be able to change it to your liking.</p>
<figure id="attachment_13155" aria-describedby="caption-attachment-13155" style="width: 1287px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13155" src="https://www.osradar.com/wp-content/uploads/2019/08/4-11.jpeg" alt="4.- Changing the default port" width="1287" height="225" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-11.jpeg 1287w, https://www.osradar.com/wp-content/uploads/2019/08/4-11-300x52.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-11-768x134.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-11-1024x179.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-11-696x122.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-11-1068x187.jpeg 1068w" sizes="(max-width: 1287px) 100vw, 1287px" /><figcaption id="caption-attachment-13155" class="wp-caption-text">4.- Changing the default port</figcaption></figure>
<p>Now, start the server again.</p>
<pre>:~$ cd /opt/payara5/bin/
:~$ ./asadmin start-domain</pre>
<p>And that is it.</p>
<h2>2.- Deploy an application with Payara Server on Debian 10</h2>
<p>Deploying an application on Payara server is quite simple. To do this, just type the following command:</p>
<pre>:~$ ./asadmin deploy [WAR_file_path]</pre>
<p>And if you want to stop the deployment, this other command is enough:</p>
<pre>:~$ ./asadmin undeploy [WAR_file_path]</pre>
<p>And that&#8217;s enough. Now you can continue using Payara Server.</p>
<h2>Conclusion</h2>
<p>Java EE is one of the preferred options for more experienced developers to create professional applications. In this way, the Payara Server becomes a robust option to serve these applications. In addition, it is multiplatform and gutter with the backing of being created in Java. Well, in this post you have learned how to install it in Debian 10.</p>
<p>Please share this post and join <a href="https://t.me/osradar">our Telegram channel.</a> So, enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-payara-server-debian-10/">Install Payara Server on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-payara-server-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Payara Server on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-payara-server-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-payara-server-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 21 Sep 2018 11:37:26 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Devops]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Payara]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5899</guid>

					<description><![CDATA[<p>Java is a very popular programming language, widely used on servers and for software deployment. However, to perform this deployment and application service, it is necessary to have a server. That&#8217;s why today I&#8217;ll talk to you about how to install Payara Server. Payara Server is the open source platform of choice for the development [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-payara-server-on-ubuntu-18-04/">How to install Payara Server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Java</strong> is a very <a href="https://www.techrepublic.com/article/why-java-and-javascript-are-still-way-more-popular-than-any-other-language-in-business/" rel="noopener">popular programming language</a>, widely used on servers and for software deployment. However, to perform this deployment and application service, it is necessary to have a server. That&#8217;s why today I&#8217;ll talk to you about how to <strong>install Payara Server</strong>.</p>
<p><a href="https://www.payara.fish/" rel="noopener">Payara Server</a> is the open source platform of choice for the development of Java EE production applications. In addition, it contains many improvements and better community support. Many companies worldwide use it for the deployment of their Java applications.</p>
<p>Installing the Payara Server will bring many advantages to our projects. For this reason, here are some of what it provides.</p>
<ul>
<li>Fully Supported Server derived from GlassFish 5.x Open Source Edition.</li>
<li>Drop in Replacement for GlassFish Open Source Edition.</li>
<li>Microprofile 1.3 API support.</li>
<li>Supports deployment of JavaEE 8 applications.</li>
<li>Production Enhancements including JCache, JBatch, and Hazelcast session clustering.</li>
<li>Payara Micro for cloud and microservice deployments.</li>
</ul>
<p>It is possible to install Payara Server in different operating systems such as Windows Server, Ubuntu, Debian, CentOS, RHEL, OpenSUSE, SUSE 11.4 and others.</p>
<p>In this tutorial, I will show you how to install it on Ubuntu 18.04 and Linux Mint 19.</p>
<h2>1. Installing JDK for Payara Server</h2>
<p>Payara Server requires JDK for its operation. In the case of version 5, the recommended is the JDK 8, so the first step is to check if it is installed. Type on the terminal:</p>
<pre class="">:~$ java --version</pre>
<figure id="attachment_5900" aria-describedby="caption-attachment-5900" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5900" src="https://www.osradar.com/wp-content/uploads/2018/09/1-13.png" alt="1.- Showing java version installed" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/1-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/1-13-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5900" class="wp-caption-text">1.- Showing java version installed</figcaption></figure>
<p>In this case, note that I have JDK10 installed. In this case, I must install the 8.</p>
<pre class="">:~$ sudo apt install openjdk-8-jdk</pre>
<figure id="attachment_5901" aria-describedby="caption-attachment-5901" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5901" src="https://www.osradar.com/wp-content/uploads/2018/09/2-12.png" alt="2.- Installing OpenJDK 8" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-12-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5901" class="wp-caption-text">2.- Installing OpenJDK 8</figcaption></figure>
<p>Now you must tell the system which version of Java it will use by default.</p>
<pre class="">:~$ sudo update-alternatives --config java</pre>
<p>After executing the command, enter the number corresponding to the installed Java version. And finally, run:</p>
<pre class="">:~$ java -version</pre>
<figure id="attachment_5903" aria-describedby="caption-attachment-5903" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5903" src="https://www.osradar.com/wp-content/uploads/2018/09/2-1-1.png" alt="2-1 Setting default java" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-1-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-1-1-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5903" class="wp-caption-text">2-1 Setting default java</figcaption></figure>
<p>For now, we&#8217;re done with the JDK.</p>
<h2>2. Install Payara Server</h2>
<p>In a first place, you must download Payara Server from its <a href="https://www.payara.fish/downloads" rel="noopener">website</a>.</p>
<figure id="attachment_5902" aria-describedby="caption-attachment-5902" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5902" src="https://www.osradar.com/wp-content/uploads/2018/09/3-12.png" alt="3.- Downloading Payara Server" width="1354" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-12.png 1354w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-12-854x420.png 854w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-5902" class="wp-caption-text">3.- Downloading Payara Server</figcaption></figure>
<p>Then unzip it to the folder of your choice.</p>
<pre class="">:~$ unzip payara-5.183.zip</pre>
<figure id="attachment_5904" aria-describedby="caption-attachment-5904" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5904" src="https://www.osradar.com/wp-content/uploads/2018/09/4-16.png" alt="4.- Unziping the downloaded file" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/4-16.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/4-16-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5904" class="wp-caption-text">4.- Unziping the downloaded file</figcaption></figure>
<p>Next, enter the folder. And in the path <code>payara5/bin</code>, run:</p>
<pre class="">:~$ cd payara5/bin/
:~$ ./asadmin start-domain</pre>
<figure id="attachment_5905" aria-describedby="caption-attachment-5905" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5905" src="https://www.osradar.com/wp-content/uploads/2018/09/5-13.png" alt="5.- Starting Payara Server" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/5-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/5-13-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5905" class="wp-caption-text">5.- Starting Payara Server</figcaption></figure>
<p>This command will start the server running domain1, which is the default domain included in Payara Server. In case you want to start another domain, this must be explicitly specified as an argument of the command.</p>
<p>Now, go to localhost:4848 on your web browser.</p>
<figure id="attachment_5906" aria-describedby="caption-attachment-5906" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5906" src="https://www.osradar.com/wp-content/uploads/2018/09/6-12.png" alt="6.- Principal screen for Payara Server" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2018/09/6-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/6-12-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5906" class="wp-caption-text">6.- Principal screen for Payara Server</figcaption></figure>
<h2>3. Changing the default port</h2>
<p>It is always a good idea to change the default port to avoid conflicts with others.</p>
<p>In a first place, stop the domain:</p>
<pre class="">:~$ ./asadmin stop-domain</pre>
<p><em>Note: remember to execute the command being located in the <code>payara/bin</code> folder.</em></p>
<p>Then, edit the <code>domain.xml</code> file. Located in the <code>payara5/glassfish/domains/domain1/config/</code> directory.</p>
<pre class="">:~$ cd payara5/glassfish/domains/domain1/config/
:~$ nano domain.xml</pre>
<p>Next, locate the <code>network-listener</code> section, specifically in <code>admin-listener</code> and modify the port you want.</p>
<figure id="attachment_5907" aria-describedby="caption-attachment-5907" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5907" src="https://www.osradar.com/wp-content/uploads/2018/09/8-10.png" alt="8.- Editing the default port" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/8-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/8-10-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5907" class="wp-caption-text">8.- Editing the default port</figcaption></figure>
<p>Now place yourself in the bin folder and run again:</p>
<pre class="">:~$ ./asadmin start-domain</pre>
<figure id="attachment_5909" aria-describedby="caption-attachment-5909" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5909" src="https://www.osradar.com/wp-content/uploads/2018/09/10-10.png" alt="10.- Starting the domain again" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/10-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/10-10-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5909" class="wp-caption-text">9.- Starting the domain again</figcaption></figure>
<h2>4. Deploy an application on Payara Server</h2>
<p>There are two ways to deploy an application with Payara Server. Using the terminal the command is:</p>
<pre class="">:~$ ./asadmin deploy /home/angelo/example.war</pre>
<figure id="attachment_5908" aria-describedby="caption-attachment-5908" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5908" src="https://www.osradar.com/wp-content/uploads/2018/09/9-11.png" alt="9.- Deploying an application" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/9-11.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/9-11-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5908" class="wp-caption-text">10.- Deploying an application</figcaption></figure>
<p>In case you want undeploy the application, run:</p>
<pre class="">:~$ ./asadmin undeploy /home/angelo/example.war</pre>
<figure id="attachment_5910" aria-describedby="caption-attachment-5910" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5910" src="https://www.osradar.com/wp-content/uploads/2018/09/11-8.png" alt="12.- Undeploying a application" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/11-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/11-8-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5910" class="wp-caption-text">12.- Undeploying an application</figcaption></figure>
<p>And that&#8217;s all there is to it. Remember that Payara Server is very flexible so there are many options and its management although simple is very powerful.</p>
<p>Tell us about your experience with Payara Server. Have you used it?</p>
<p>Please spread this article to your social networks.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-payara-server-on-ubuntu-18-04/">How to install Payara Server on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-payara-server-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
