<?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>Tomcat Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 20 Apr 2021 14:52:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Apache Tomcat on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-apache-tomcat-ubuntu-debian/</link>
					<comments>https://www.osradar.com/install-apache-tomcat-ubuntu-debian/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 29 Oct 2020 02:39:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12786</guid>

					<description><![CDATA[<p>Even though Python is the most popular programming language actually, there is still confidence in Java. So you probably needed to make applications with this veteran language. Especially in the web environment that there are so many good languages and tools, Java still resists. So, to deploy web applications made in Java is Tomcat. With [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-ubuntu-debian/">How to install Apache Tomcat on Ubuntu 20.04 / 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>Even though Python is the most popular programming language actually, there is still confidence in Java. So you probably needed to make applications with this veteran language. Especially in the web environment that there are so many good languages and tools, Java still resists. So, to deploy web applications made in Java is Tomcat. With the main objective that you learn how to install Apache Tomcat on Ubuntu 20.04 / Debian 10 is that this post has been written. Let us get started.</p>
<h2>Apache Tomcat</h2>
<p><a href="https://www.osradar.com/tag/java/" rel="noopener">Java</a> and its multipurpose language and that make it so good and useful to learn. Well, after coding your web application, it gets to the point where you have to deploy it. To do this, it requires a server that can interpret that Java code. Remember that we are talking about web applications. And to deploy and serve it, nothing like <a href="https://tomcat.apache.org/" rel="noopener">Apache Tomcat</a>.</p>
<p>Estricatemente speaking Tomcat is not a server but transforms the caught JPS into servlets that can serve the application in question.</p>
<p>On the other hand, Apache Tomcat is open source and can be installed on any system running Java.</p>
<h2>Install Apache Tomcat on Ubuntu 20.04 / Debian 10</h2>
<h3>1) Install and configure Java on Ubuntu 20.04 / Debian 10</h3>
<p>Apache Tomcat is an application made with Java. Therefore, the first step is to install Java on <a href="https://www.osradar.com/tag/buster/" rel="noopener">Debian 10</a>.</p>
<p>Open a terminal session and run the following:</p>
<pre>:~$ sudo apt install default-jre default-jdk</pre>
<p>Then, check the java version.</p>
<pre>:~$ java --version
openjdk 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>As you can see, Java version 11 has been installed. It is one of the most recent and with very good support.</p>
<p>Now, you have to modify the<code> /etc/environment</code> file and add the Java path.</p>
<pre>:~$ sudo nano /etc/environment</pre>
<p>And add the following:</p>
<pre class="">JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"</pre>
<p>Save the changes and close the file.</p>
<p>The next step is to edit the .bashrc file and add the following:</p>
<pre>:~$ sudo nano .bashrc</pre>
<pre class="">export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"
export PATH=$JAVA_HOME/bin:$PATH</pre>
<figure id="attachment_12801" aria-describedby="caption-attachment-12801" style="width: 560px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12801" src="https://www.osradar.com/wp-content/uploads/2019/07/1-5.jpeg" alt="1.- Editing the bash profile" width="560" height="272" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-5.jpeg 560w, https://www.osradar.com/wp-content/uploads/2019/07/1-5-300x146.jpeg 300w" sizes="(max-width: 560px) 100vw, 560px" /><figcaption id="caption-attachment-12801" class="wp-caption-text">1.- Editing the bash profile</figcaption></figure>
<p>Again, save the changes and close the file.</p>
<p>Next, refresh the bash.</p>
<pre>:~$ source .bashrc</pre>
<p>Now, type this command to test the Java path.</p>
<pre>:~$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/bin/java</pre>
<p>So, if you got the Java path from your computer, everything is correct.</p>
<h3>2) Install Apache Tomcat on Ubunut 20.04 / Debian 10</h3>
<p>For security reasons, it is convenient to create a new user for Tomcat. Also, add it to a group called tomcat.</p>
<pre>:~$ sudo -i
:~# groupadd tomcat
:~# useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat</pre>
<figure id="attachment_12802" aria-describedby="caption-attachment-12802" style="width: 562px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12802" src="https://www.osradar.com/wp-content/uploads/2019/07/2-4.jpeg" alt="2.- Creating a new user for apache" width="562" height="198" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-4.jpeg 562w, https://www.osradar.com/wp-content/uploads/2019/07/2-4-300x106.jpeg 300w" sizes="(max-width: 562px) 100vw, 562px" /><figcaption id="caption-attachment-12802" class="wp-caption-text">2.- Creating a new user for apache</figcaption></figure>
<p>Now we can install Apache Tomcat. To do this, go to the<code> /opt</code>/ folder and download with <code>wget</code>.</p>
<pre>:~# cd /opt/
:~# wget -c https://downloads.apache.org/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz<br />--2020-10-28 19:23:24-- https://downloads.apache.org/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz<br />Resolving downloads.apache.org (downloads.apache.org)... 88.99.95.219, 2a01:4f8:10a:201a::2<br />Connecting to downloads.apache.org (downloads.apache.org)|88.99.95.219|:443... connected.<br />HTTP request sent, awaiting response... 200 OK<br />Length: 11282879 (11M) [application/x-gzip]<br />Saving to: ‘apache-tomcat-9.0.39.tar.gz’<br />apache-tomcat-9.0.39.tar.gz 100%[=====================================================================================&gt;] 10.76M 157KB/s in 1m 49s<br />2020-10-28 19:25:15 (101 KB/s) - ‘apache-tomcat-9.0.39.tar.gz’ saved [11282879/11282879]</pre>
<p>Then, decompress it and rename the folder.</p>
<pre>:~# tar -xzvf apache-tomcat-9.0.39.tar.gz
:~# mv apache-tomcat-9.0.39 tomcat</pre>
<p>After that, you need to change the owner of the folder and assign the required permissions so that it can run smoothly. Remember that now, we are using the root user.</p>
<pre class="">:~# chown -R tomcat:tomcat /opt/tomcat/
:~# chmod +x /opt/tomcat/bin/*</pre>
<p>Now, on the .bashrc file add the CATALINA_HOME path.</p>
<pre>:~# nano ~/.bashrc
export CATALINA_HOME=/opt/tomcat</pre>
<p>Save the changes and close the file.</p>
<p>Then, refresh bash.</p>
<pre>:~# source ~/.bashrc</pre>
<p>After that, we can run Apache Tomcat. To do it, just type this command:</p>
<pre>:~# /opt/tomcat/bin/startup.sh</pre>
<figure id="attachment_12804" aria-describedby="caption-attachment-12804" style="width: 641px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12804" src="https://www.osradar.com/wp-content/uploads/2019/07/4-1.jpeg" alt="4.- Tomcat is running" width="641" height="194" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4-1.jpeg 641w, https://www.osradar.com/wp-content/uploads/2019/07/4-1-300x91.jpeg 300w" sizes="(max-width: 641px) 100vw, 641px" /><figcaption id="caption-attachment-12804" class="wp-caption-text">4.- Tomcat is running</figcaption></figure>
<p>Next, open your web browser ad go <code>http://your-server:8080</code>. And you will see this.</p>
<figure id="attachment_24865" aria-describedby="caption-attachment-24865" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-24865 size-full" src="https://www.osradar.com/wp-content/uploads/2019/07/tomcat.png" alt="5.- Apache Tomcat on Ubuntu 20.04 / Debian 10" width="1354" height="669" srcset="https://www.osradar.com/wp-content/uploads/2019/07/tomcat.png 1354w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/tomcat-1068x528.png 1068w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-24865" class="wp-caption-text">5.- Apache Tomcat on Ubuntu 20.04 / Debian 10</figcaption></figure>
<p>If you want to set a password to improve security of the manager web app. So, open the <code>tomcat-users.xml</code></p>
<pre>:~# nano /opt/tomcat/conf/tomcat-users.xml</pre>
<p>In the <code>tomcat-user</code> section, you have to add the username and password.</p>
<pre class="">&lt;role rolename="manager-gui"/&gt;
&lt;user username="XXXXXX" password="XXXXXXX" roles="manager-gui,admin-gui"/&gt;</pre>
<figure id="attachment_12807" aria-describedby="caption-attachment-12807" style="width: 761px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12807" src="https://www.osradar.com/wp-content/uploads/2019/07/6-1.jpeg" alt="6.- Change the username and password" width="761" height="373" srcset="https://www.osradar.com/wp-content/uploads/2019/07/6-1.jpeg 761w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-300x147.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-324x160.jpeg 324w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-533x261.jpeg 533w, https://www.osradar.com/wp-content/uploads/2019/07/6-1-696x341.jpeg 696w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption id="caption-attachment-12807" class="wp-caption-text">6.- Change the username and password</figcaption></figure>
<p>Of course, replace the password for yours.</p>
<p>Then, restart Tomcat.</p>
<pre class="">:~# ./shutdown.sh
:~# ./startup.sh</pre>
<p>And go to the web browser again. Next, refresh the page. And that is it.</p>
<h2>Conclusion</h2>
<p>Apache Tomcat is the best solution to deploy and serve web applications made with Java. So if you program in Java, you should learn how to manipulate Tomcat. As you have learned in this post, it is not very complex to learn how to install it in  Ubuntu 20.04 / Debian 10.</p>
<p>Please share this post with your friends and join <a href="http://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-ubuntu-debian/">How to install Apache Tomcat on Ubuntu 20.04 / 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-apache-tomcat-ubuntu-debian/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Tomcat on Windows 10/Server.</title>
		<link>https://www.osradar.com/how-to-install-apache-tomcat-on-windows-server-2019/</link>
					<comments>https://www.osradar.com/how-to-install-apache-tomcat-on-windows-server-2019/#comments</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Wed, 06 Nov 2019 23:08:42 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[Windows server 2019]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15392</guid>

					<description><![CDATA[<p>Hi. How are you? Let&#8217;s see how to install Apache Tomcat on Windows 10/ Server. It works as a servlet container developed under the Jakarta project at the Apache Software Foundation. In addition, it is written in Java, for that reason it works in any operating system that has the Java virtual machine. It can [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-tomcat-on-windows-server-2019/">How to install Apache Tomcat on Windows 10/Server.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi. How are you? Let&#8217;s see how to install Apache Tomcat on Windows 10/ Server. It works as a servlet container developed under the Jakarta project at the Apache Software Foundation. In addition, it is written in Java, for that reason it works in any operating system that has the Java virtual machine. It can also be used with XAMPP. Besides, Tomcat can function as a Web server on its own with support for servlets and JSP. Despite being surpassed in popularity by NGINX and Apache Web Server, it is still an interesting option to try. That&#8217;s why I show you how to install Apache Tomcat on Windows 10/Server.</p>



<h2>Prerequisites. Install Java Development Kit JDK.</h2>



<p>As we have mentioned, Tomcat is a software developed in Java. For that reason, it is mandatory to download and install JDK in order to run it. With that in mind please go to the <a rel="noreferrer noopener" aria-label="download (opens in a new tab)" href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank">download</a> page. You need to have an Oracle account, but don&#8217;t worry it&#8217;s a fast and free process.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom3-1024x728.jpg" alt="Download the installer corresponding to the computer architecture." class="wp-image-15397" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom3.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/tom3-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom3-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/tom3-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/tom3-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/tom3-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Download the installer corresponding to the computer architecture.</figcaption></figure>



<p>Once you have downloaded the installer, please double click on it to start the process.</p>



<figure class="wp-block-image"><img loading="lazy" width="500" height="381" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom.jpg" alt="Installing JDK" class="wp-image-15399" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom.jpg 500w, https://www.osradar.com/wp-content/uploads/2019/11/tom-300x229.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom-80x60.jpg 80w" sizes="(max-width: 500px) 100vw, 500px" /><figcaption>Installing JDK</figcaption></figure>



<h2>Adding environment variables.</h2>



<p>To ensure the proper functioning of the server, it is necessary to add Java to the Windows environment variables. If you don&#8217;t know how to do this, please check out our article on <a rel="noreferrer noopener" aria-label="Wget (opens in a new tab)" href="https://www.osradar.com/how-to-install-wget-in-windows-10/" target="_blank">Wget</a> in Windows 10. First, create a variable with the name JAVA_HOME and use the address where JDK was installed: <strong>C:\Program Files\Java\jdk1.8.0_231</strong></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="768" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom4-1024x768.jpg" alt="Creating the environment variable for JAVA_HOME" class="wp-image-15401" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom4.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-300x225.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-768x576.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-80x60.jpg 80w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-265x198.jpg 265w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-696x522.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/tom4-560x420.jpg 560w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the environment variable for JAVA_HOME</figcaption></figure>



<p>Then create another environment variable with the name JAVA_JRE. In this case, use the following address: <strong>C:\Program Files\Java\jre1.8.0_231</strong></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="768" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom5-1024x768.jpg" alt="Creating the environment variable for JAVA_HOME" class="wp-image-15403" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom5.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-300x225.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-768x576.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-80x60.jpg 80w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-265x198.jpg 265w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-696x522.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/tom5-560x420.jpg 560w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> <em>Creating the environment variable for JAVA_</em>JRE</figcaption></figure>



<h2>Installing Apache Tomcat</h2>



<p>Once JDK is installed and configured, it is time to install Tomcat. With that intention go to the program page and <a rel="noreferrer noopener" aria-label="download (opens in a new tab)" href="https://tomcat.apache.org/download-90.cgi" target="_blank">download</a> the latest Windows Service installer. At the time of publication of this article, the version is 9.0.27.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom2-1024x728.jpg" alt="Download the Apache Tomcat installer" class="wp-image-15405" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/tom2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/tom2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/tom2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/tom2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Download the Apache Tomcat installer</figcaption></figure>



<p>After downloading the installer, proceed to run it. Press Next to continue.</p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom6.jpg" alt="Apache Tomcat installer initial screen" class="wp-image-15407" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom6.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom6-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Apache Tomcat installer initial screen</figcaption></figure>



<p>Then choose the components to install. You can select the ones you want, but I recommend that you do a full installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom7.jpg" alt="Choose the components to install." class="wp-image-15409" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom7.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom7-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Choose the components to install.</figcaption></figure>



<p>In the next window, you will see the configuration options. You can leave almost everything by default. Just keep in mind that the ports must be free. In addition, add a username and password. </p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom8.jpg" alt="Apache Tomcat Configuration" class="wp-image-15411" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom8.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom8-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Apache Tomcat Configuration</figcaption></figure>



<p>Now select the path where JDK is installed.</p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom9.jpg" alt="Select the JDK installation path" class="wp-image-15413" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom9.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom9-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Select the JDK installation path</figcaption></figure>



<p>Now set the installation path for Apache Tomcat.</p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom10.jpg" alt="Select the Tomcat installation route" class="wp-image-15415" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom10.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom10-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Select the Tomcat installation route</figcaption></figure>



<p>Once all the configurations have been completed, the installation process will begin.</p>



<figure class="wp-block-image"><img loading="lazy" width="499" height="388" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom11.jpg" alt="Installing Tomcat" class="wp-image-15417" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom11.jpg 499w, https://www.osradar.com/wp-content/uploads/2019/11/tom11-300x233.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption>Installing Tomcat</figcaption></figure>



<p>Finally, the wizard will have finished its work, and we will have Tomcat installed in the system.</p>



<figure class="wp-block-image"><img loading="lazy" width="495" height="383" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom13.png" alt="Tomcat installation finally completed." class="wp-image-15421" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom13.png 495w, https://www.osradar.com/wp-content/uploads/2019/11/tom13-300x232.png 300w" sizes="(max-width: 495px) 100vw, 495px" /><figcaption>Tomcat installation finally completed.</figcaption></figure>



<p>Now, to test that the server is properly installed and running, please open a web browser. Then go to this address: <strong>http://localhost:8080/ </strong>If you&#8217;ve done everything right, the page should look like this:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/tom12-2-1024x728.jpg" alt="Tomcat running in Chrome." class="wp-image-15424" srcset="https://www.osradar.com/wp-content/uploads/2019/11/tom12-2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/tom12-2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/tom12-2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/tom12-2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/tom12-2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/tom12-2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Tomcat running in Chrome.</figcaption></figure>



<h2>Conclusion.</h2>



<p>Ultimately we have seen how to install Tomcat on Windows 10/Server. The procedure with the installer is very intuitive and easy to use. In addition, the wizard installs Tomcat as a Windows service. So no additional configuration is required. You only need to have installed and preconfigured Java Development Kit. This is all for now, see you soon.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-tomcat-on-windows-server-2019/">How to install Apache Tomcat on Windows 10/Server.</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-apache-tomcat-on-windows-server-2019/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Xampp on Windows 10</title>
		<link>https://www.osradar.com/how-to-install-xampp-on-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-xampp-on-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[Roger Polanco]]></dc:creator>
		<pubDate>Wed, 07 Aug 2019 00:23:56 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[mercury]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">http://www.googez.com/?p=521</guid>

					<description><![CDATA[<p>Hi! If are you a web developer o simply want to try to program, surely needs some software in order to do your job. Specifically, a webserver like Apache, a &#160;programming language like PHP and a database like MySQL. These programs mentioned have great popularity at the present time, even though there are other tools [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-xampp-on-windows-10/">How to install Xampp on Windows 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>Hi! If are you a web developer o simply want to try to program, surely needs some software in order to do your job. Specifically, a webserver like <a rel="noreferrer noopener" aria-label="Apache (opens in a new tab)" href="https://www.apache.org" target="_blank">Apache</a>, a  &nbsp;programming language like <a rel="noreferrer noopener" aria-label="PHP (opens in a new tab)" href="https://www.php.net" target="_blank">PHP</a> and a database like <a rel="noreferrer noopener" aria-label="MySQL (opens in a new tab)" href="https://www.mysql.com" target="_blank">MySQL</a>.  These programs mentioned have great popularity at the present time, even though there are other tools to use, <a rel="noreferrer noopener" aria-label="MariaDB  (opens in a new tab)" href="https://mariadb.org" target="_blank">MariaDB </a>for example. Under those circumstances, we can install it one per one (please check our tutorial about install <a rel="noreferrer noopener" aria-label="Apache on Windows 10 (opens in a new tab)" href="http://www.osradar.com/installing-apache-on-windows-server-2019/" target="_blank">Apache on Windows 10</a>). Or there is also the opportunity to use software packages that include all the mentioned programs.  In this opportunity, we will talk about <a rel="noreferrer noopener" aria-label="XAMPP (opens in a new tab)" href="https://www.apachefriends.org/index.html" target="_blank">XAMPP</a>. It is an independent free code platform server. It allows us to easily install Apache on our own computer, regardless of our operating system. XAMPP is an open-source package and free. It is a development tool that allows us to test the work on our own computer without having to access the internet. So, let´s see how to install Xampp on Windows 10.</p>



<h2>Installing XAMMP on Windows 10</h2>



<p>To start, we must go to XAMMP site in order to download the last <a href="https://www.apachefriends.org/download.html" target="_blank" rel="noreferrer noopener" aria-label="package  (opens in a new tab)">package </a>( 7.3.7 / PHP 7.3.7). </p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp-1024x728.jpg" alt="" class="wp-image-526"/><figcaption>Downloading the last version of XAMPP</figcaption></figure>



<p>Next, we have to run the executable file. If the <em>User Account Control (UAC)</em> has been activated, then a warning sign will appear. In this case, all we have to do is not to install the program into C:\Program File, or simply deactivate <a href="https://www.faqforge.com/windows/how-to-disable-the-user-account-control-uac-in-windows-10/" target="_blank" rel="noreferrer noopener" aria-label="UAC (opens in a new tab)">UAC</a>.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp1.jpg" alt="A warning box indicates an issue with User Account Control (UAC)." class="wp-image-527"/><figcaption>A warning box indicates an issue with User Account Control (UAC).</figcaption></figure>



<p>Obviously, all of the conscious users have an antivirus program running in his PCs, but maybe it can slow down or interfere with the software´s installation. We recommend deactivating antivirus until setup finishes its work.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp2.jpg" alt="Antivirus can slow down or interfere with the installation of the software." class="wp-image-528"/><figcaption>Antivirus can slow down or interfere with the installation of the software. </figcaption></figure>



<p>Now we are ready to start the installation</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp3.jpg" alt="Setup is ready to install" class="wp-image-529"/><figcaption>Setup is ready to install</figcaption></figure>



<p>In the next window, we have to select all the components to install, it is very recommendable to choose it all. Please select <em>Next</em> to continue.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp4.jpg" alt="Selecting the components to install" class="wp-image-530"/><figcaption>Selecting the components to install</figcaption></figure>



<p>Select the destination folder to install. Regarding UAC issue, is highly recommend to install on C unit.  Please select <em>Next</em> to continue. </p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp5.jpg" alt="Selecting the folder destination to install XAMPP" class="wp-image-531"/><figcaption>Selecting the folder destination to install XAMPP</figcaption></figure>



<p>The following screen provides information about the application installers for XAMPP created by Bitnami. Please select <em>Next</em> to continue.  </p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp6.jpg" alt="Information about other installer powered by Bitnami" class="wp-image-533"/><figcaption>Information about other installer powered by Bitnami</figcaption></figure>



<p>Once prerequisites have been satisfied, setup finally will begin to unpack and install XAMPP.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp7.jpg" alt="Installing XAMPP on Windows 10" class="wp-image-534"/><figcaption>Installing XAMPP on system</figcaption></figure>



<p>During the installation, a Windows firewall notice will be displayed to authorize Apache to communicate on private or public networks. Mark <em>private network </em>and click <em>Next</em> to continue. </p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp8.jpg" alt="Setting communication through  windows firewall" class="wp-image-535"/><figcaption>Setting communication through  windows firewall</figcaption></figure>



<p>Finally, the setup has completed the installation and we can start de Control Panel</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp9.jpg" alt="The setup has finished installing XAMPP on the PC" class="wp-image-537"/><figcaption>The setup has finished installing XAMPP on the PC</figcaption></figure>



<h2>XAMPP first running</h2>



<p>Choose the software´s language.</p>



<p></p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp10.jpg" alt="Choose the software´s language." class="wp-image-538"/><figcaption> Choose the software´s language. </figcaption></figure>



<p>The XAMPP icon will appear in the lower right corner of the screen. We double click on it to open the Control Panel. </p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp14-1024x768.jpg" alt="" class="wp-image-539"/></figure>



<p>By default, only the tomcat module will start, and the rest will remain stopped. In the panel, we need to press start to activate it and authorize the connection through the firewall.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp14-1-1024x768.jpg" alt="" class="wp-image-540"/><figcaption>XAMPP Control Panel with only Tomcat module running</figcaption></figure>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp11.jpg" alt="Allow connection through windows firewall" class="wp-image-541"/><figcaption>Allow connection through windows firewall</figcaption></figure>



<h2>Testing XAMPP on Windows Server</h2>



<p>Once we have the Apache server running, we can test the XAMPP dashboard, typing <em>localhost</em> in the browser bar.</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp15-1024x730.jpg" alt="XAMPP Dashboard" class="wp-image-542"/><figcaption>XAMPP Dashboard</figcaption></figure>



<p>Finally, XAMPP has been successfully installed in the system. From now on if we want to start it, we just have to access the installation path, C: \ xampp and click on<em> xampp-control.</em> For convenience, we can create a shortcut to the desktop, and start it from there</p>



<figure class="wp-block-image"><img src="http://www.osradar.com/wp-content/uploads/2019/08/xampp16-1024x732.jpg" alt="Starting XAMPP by running panel" class="wp-image-543"/><figcaption>Starting XAMPP by running panel</figcaption></figure>



<p>Well, this has been everything for today, as we can see the installation process is very simple. So, you know how to install Xampp on Windows server. Enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-xampp-on-windows-10/">How to install Xampp on Windows 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/how-to-install-xampp-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Tomcat on CentOS 7?</title>
		<link>https://www.osradar.com/install-apache-tomcat-centos-7/</link>
					<comments>https://www.osradar.com/install-apache-tomcat-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 04:00:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaEE]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Servlets]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6348</guid>

					<description><![CDATA[<p>To install Apache Tomcat on Linux requires certain steps that are not very complex. However, we&#8217;ve talked about it before recently. Today, I will show you how to install it, this time, on CentOS 7. In short, Apache Tomcat executes Java servlets and renders Web pages that include Java Server Page coding. It constitutes a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-centos-7/">How to install Apache Tomcat on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To install Apache Tomcat on Linux requires certain steps that are not very complex. However, <a href="https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/" rel="noopener">we&#8217;ve talked</a> about it before recently. Today, I will show you how to install it, this time, on CentOS 7.</p>
<p>In short, <a href="http://tomcat.apache.org/" rel="noopener">Apache Tomcat</a> executes Java servlets and renders Web pages that include Java Server Page coding. It constitutes a base element for the development with Java. It is very popular and it is open source.</p>
<p>This time I will install using CentOS 7, which is a Red Hat-based Linux distribution for use on Servers.</p>
<h2>What you need</h2>
<p>The process is very simple and you should not take long to do it, but it is good that you know that there are some small requirements to successfully complete this tutorial.</p>
<ul>
<li>A server with CentOS 7 installed and allowing access via ssh.</li>
<li>A basic knowledge about the use of commands in the terminal.</li>
<li>A user who allows commands to be run as root. Or root access.</li>
</ul>
<p>I think this will be enough for you to do everything without problems.</p>
<p>Let&#8217;s get to work.</p>
<h2>1. Upgrade the system</h2>
<p>In order to have the latest security patches, it is necessary to update the system completely. Also with this, you will have a more secure server and in many cases faster. Run as root user:</p>
<pre class="">:~# yum update</pre>
<p><figure id="attachment_6349" aria-describedby="caption-attachment-6349" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6349" src="https://www.osradar.com/wp-content/uploads/2018/10/1-8.png" alt="1.- Upgrading CentOS" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6349" class="wp-caption-text">1.- Upgrading CentOS</figcaption></figure></p>
<p>That&#8217;s enough.</p>
<h2>2.- Install Java</h2>
<p>To install Apache Tomcat you first need to install Java because it is a dependency. To do this, type the following:</p>
<pre class="">:~# yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64</pre>
<p><figure id="attachment_6350" aria-describedby="caption-attachment-6350" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6350" src="https://www.osradar.com/wp-content/uploads/2018/10/2-8.png" alt="2.- Installing Java from the CLI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6350" class="wp-caption-text">2.- Installing Java from the CLI</figcaption></figure></p>
<p>Next, check the installed Java version.</p>
<pre class="">:~# java -version</pre>
<p><figure id="attachment_6351" aria-describedby="caption-attachment-6351" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6351" src="https://www.osradar.com/wp-content/uploads/2018/10/3-9.png" alt="3.- Showing what java version is installed" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6351" class="wp-caption-text">3.- Showing what java version is installed</figcaption></figure></p>
<p>As you can see, Java was correctly installed. This was done because Apache Tomcat 9 requires at least Java 8.</p>
<h2>3. Install Apache Tomcat 9</h2>
<p>Go to the official Apache Tomcat site and download the latest stable version.</p>
<p><figure id="attachment_6352" aria-describedby="caption-attachment-6352" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6352" src="https://www.osradar.com/wp-content/uploads/2018/10/4-5.png" alt="4.- Apache Tomcat website" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/10/4-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6352" class="wp-caption-text">4.- Apache Tomcat website</figcaption></figure></p>
<p>Of course, you are working on a server, the best is to get the link directly and run:</p>
<pre class="">:~# cd /opt/
:~# wget http://ftp.wayne.edu/apache/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.12.zip</pre>
<p><figure id="attachment_6353" aria-describedby="caption-attachment-6353" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6353" src="https://www.osradar.com/wp-content/uploads/2018/10/5-6.png" alt="5.- Downloading Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/5-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6353" class="wp-caption-text">5.- Downloading Apache Tomcat</figcaption></figure></p>
<p>Now proceed to decompress it.</p>
<pre class="">:~# unzip apache-tomcat-9.0.12.zip</pre>
<p><figure id="attachment_6354" aria-describedby="caption-attachment-6354" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6354" src="https://www.osradar.com/wp-content/uploads/2018/10/6-5.png" alt="6.- Unzipping the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/6-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6354" class="wp-caption-text">6.- Unzipping the file</figcaption></figure></p>
<p>Then, rename the decompressed file to a simpler one.</p>
<pre class="">:~# mv apache-tomcat-9.0.12 tomcat</pre>
<p>Next, you have to set the CATALINA_HOME environment variable.</p>
<pre class="">:~# echo "export CATALINA_HOME='/opt/tomcat/'" &gt;&gt; ~/.bashrc
:~# source ~/.bashrc</pre>
<p><figure id="attachment_6356" aria-describedby="caption-attachment-6356" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6356" src="https://www.osradar.com/wp-content/uploads/2018/10/7-5.png" alt="Setting the CATALINA_HOME variable" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/7-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6356" class="wp-caption-text">Setting the CATALINA_HOME variable</figcaption></figure></p>
<p>If you are going to install Apache Tomcat on a public server, then it is preferable to create a new system user to run it.</p>
<pre class="">:~# useradd -r tomcat --shell /bin/false</pre>
<p>Then, it changes the ownership of the folder to that of the new user. I named it to tomcat.</p>
<pre class="">:~# chown -R tomcat:tomcat /opt/tomcat/</pre>
<p><figure id="attachment_6357" aria-describedby="caption-attachment-6357" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6357" src="https://www.osradar.com/wp-content/uploads/2018/10/8-5.png" alt="8.- Changing the owner of tomcat folder" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/8-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6357" class="wp-caption-text">8.- Changing the owner of the tomcat folder</figcaption></figure></p>
<h2>4. Making Apache Tomcat as a service</h2>
<p>To properly handle Apache Tomcat, it is a good idea to create a file that is made by a system service. This way you can start it, restart it or stop it in a simpler way. Run:</p>
<pre class="">:~# nano /etc/systemd/system/tomcat.service</pre>
<p>And put the following:</p>
<pre class="">[Unit]
Description=Apache Tomcat 9
After=syslog.target network.target

[Service]
User=tomcat
Group=tomcat
Type=forking
Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
Restart=on-failure

[Install]
WantedBy=multi-user.target
</pre>
<p><figure id="attachment_6358" aria-describedby="caption-attachment-6358" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6358" src="https://www.osradar.com/wp-content/uploads/2018/10/9-5.png" alt="9.- Making apache tomcat as a service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/9-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6358" class="wp-caption-text">9.- Making apache tomcat as a service</figcaption></figure></p>
<p>Save and close the file. Now run:</p>
<pre class="">:~# systemctl daemon-reload</pre>
<h2>5. Create an Apache Tomcat user account</h2>
<p>To access Tomcat Manager, you have to create a new user. The process is simple, you have to edit the file <code>/opt/tomcat/conf/tomcat-users.xml.</code></p>
<pre class="">:~# nano /opt/tomcat/conf/tomcat-users.xml</pre>
<p>And add the following:</p>
<pre class="">&lt;role rolename="admin-gui"/&gt;
&lt;user username="admin" password="PASSWORD" roles="manager-gui,admin-gui"/&gt;
&lt;/tomcat-users&gt;</pre>
<p><figure id="attachment_6359" aria-describedby="caption-attachment-6359" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6359" src="https://www.osradar.com/wp-content/uploads/2018/10/10-4.png" alt="10.- Creating a new user for Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/10-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6359" class="wp-caption-text">10.- Creating a new user for Apache Tomcat</figcaption></figure></p>
<p>Remember to change &#8220;PASSWORD&#8221; for your real password.</p>
<h2>6. Starting the service and accessing through a web browser</h2>
<p>Now you can start the Apache Tomcat service. Then check its status and finally access it from the web browser.</p>
<p>Now, you can start Apache Tomcat either using systemctl or from its own script.</p>
<pre class="">:~# sh /opt/tomcat/bin/startup.sh</pre>
<p><figure id="attachment_6360" aria-describedby="caption-attachment-6360" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6360" src="https://www.osradar.com/wp-content/uploads/2018/10/11-4.png" alt="11.- Starting Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/11-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6360" class="wp-caption-text">11.- Starting Apache Tomcat</figcaption></figure></p>
<p>Now go to <code>http://IP_SERVER/manage/html</code> and log in with your username and your password.</p>
<p><figure id="attachment_6361" aria-describedby="caption-attachment-6361" style="width: 1356px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6361" src="https://www.osradar.com/wp-content/uploads/2018/10/12-3.png" alt="Apache Tomcat manager page" width="1356" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/10/12-3.png 1356w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-1024x479.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-1068x499.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-898x420.png 898w" sizes="(max-width: 1356px) 100vw, 1356px" /><figcaption id="caption-attachment-6361" class="wp-caption-text">Apache Tomcat manager page</figcaption></figure></p>
<h2>Conclusion</h2>
<p>Apache Tomcat is a vital tool for Java development and its installation is really simple on Linux and CentOS 7.</p>
<p>Let us know about you, Java programs? what is your experience with Tomcat? Did you find the tutorial easy?</p>
<p>Please spread this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-centos-7/">How to install Apache Tomcat on CentOS 7?</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-apache-tomcat-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Tomcat on Debian 9 Stretch?</title>
		<link>https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/</link>
					<comments>https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 22 Sep 2018 15:36:45 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5932</guid>

					<description><![CDATA[<p>Apache Tomcat is an open source implementation of servlet containers. The Apache Foundation is currently in charge of its development and maintenance. Install Tomcat is a must if you are a Java Developer. At the same time, Tomcat also implements JavaServer Pages, Java Expression Language, and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/">How to install Tomcat on Debian 9 Stretch?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Apache <a href="http://www.tomcat.apache.org/" rel="noopener">Tomcat</a> is an open source implementation of <em>servlet</em> containers. The Apache Foundation is currently in charge of its development and maintenance. Install Tomcat is a must if you are a Java Developer.</p>
<p>At the same time, Tomcat also implements JavaServer Pages, Java Expression Language, and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java Expression Language, and Java WebSocket specifications are developed under the Java Community Process. The Apache Tomcat software is developed in an open and participatory environment and released under the Apache License version 2.</p>
<p>Recently was published version 9.0.12, it is a revision and maintenance version. For this reason, the most notable changes are:</p>
<ul>
<li>Fix multiple issues associated with using the asynchronous Servlet API in combination with HTTP/2.</li>
<li>Add recursion to rewrite substitution parsing.</li>
<li>Expand the information in the documentation web application regarding the use of CATALINA_HOME and CATALINA_BASE. Patch provided by Marek Czernek.</li>
</ul>
<p>Today I will show you how to install Tomcat in Ubuntu 18.04.</p>
<h2>1.- Install and Configure Java</h2>
<p>In the first place, you must install Java. For this, you need a user with administrator privileges. Open a terminal and run:</p>
<pre class="">:~$ sudo apt install openjdk-8-jdk</pre>
<p><figure id="attachment_5933" aria-describedby="caption-attachment-5933" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5933" src="https://www.osradar.com/wp-content/uploads/2018/09/1-14.png" alt="1.- Installing OpenJDK 8" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/1-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/1-14-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5933" class="wp-caption-text">1.- Installing OpenJDK 8</figcaption></figure></p>
<p>After installing it, it is necessary to configure the system to run a Java version by default.</p>
<pre class="">:~$ sudo update-alternatives --config java</pre>
<p><figure id="attachment_5934" aria-describedby="caption-attachment-5934" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5934" src="https://www.osradar.com/wp-content/uploads/2018/09/2-13.png" alt="2.- Configuring Java" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-13-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5934" class="wp-caption-text">2.- Configuring Java</figcaption></figure></p>
<p>You should pay attention to the directory where Java is installed. In this case <code>/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java</code> for OpenJDK 8.</p>
<p>Now you must configure the Java environment. With this in mind, edit the file <code>/etc/environment</code></p>
<pre class="">:~$ sudo nano /etc/environment</pre>
<p>And add the following:</p>
<pre class="">JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"</pre>
<p><figure id="attachment_5935" aria-describedby="caption-attachment-5935" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5935" src="https://www.osradar.com/wp-content/uploads/2018/09/3-13.png" alt="3.- Editing enviroment file" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-13-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5935" class="wp-caption-text">3.- Editing environment file</figcaption></figure></p>
<p>Remember to edit correctly the location of Java, on the contrary, will not work the new configuration.</p>
<p>Next you have to edit the <code>~/.bashrc</code> file.</p>
<pre class="">:~$ nano ~/.bashrc</pre>
<p>At the end of the file add the following:</p>
<pre class="">export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"
export PATH=$JAVA_HOME/bin:$PATH</pre>
<p><figure id="attachment_5936" aria-describedby="caption-attachment-5936" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5936" src="https://www.osradar.com/wp-content/uploads/2018/09/4-17.png" alt="4.- Editing bashrc file" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/4-17.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/4-17-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5936" class="wp-caption-text">4.- Editing bashrc file</figcaption></figure></p>
<p>Again, don&#8217;t forget to edit the Java location for yours.</p>
<p>When finished, recharge the bash.</p>
<pre class="">:~$ source ~/.bashrc</pre>
<p>Finally, it shows the JAVA_HOME directory to check that everything went well.</p>
<p><figure id="attachment_5937" aria-describedby="caption-attachment-5937" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5937" src="https://www.osradar.com/wp-content/uploads/2018/09/5-14.png" alt="5.- Showing Java_Home path" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/5-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/5-14-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5937" class="wp-caption-text">5.- Showing Java_Home path</figcaption></figure></p>
<h2>2. It&#8217;s time: install Tomcat</h2>
<p>To install Tomcat in a good way, it is a good idea to do it with a separate group and user. For that reason, run as root:</p>
<pre class="">:~$ sudo -i
:~# groupadd tomcat
:~# useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat</pre>
<p><figure id="attachment_5938" aria-describedby="caption-attachment-5938" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5938" src="https://www.osradar.com/wp-content/uploads/2018/09/6-13.png" alt="6.- Creating a new group for tomcat" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/6-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/6-13-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5938" class="wp-caption-text">6.- Creating a new group for tomcat.</figcaption></figure></p>
<p>Now, download Tomcat binaries in the <code>/opt/</code> directory:</p>
<pre class="">:~$ cd /opt/
:~$ wget http://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.12.tar.gz</pre>
<p><figure id="attachment_5939" aria-describedby="caption-attachment-5939" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5939" src="https://www.osradar.com/wp-content/uploads/2018/09/7-12.png" alt="7.- Downloading Tomcat from its website" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/7-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/7-12-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5939" class="wp-caption-text">7.- Downloading Tomcat from its website</figcaption></figure></p>
<p>Then decompress the file. Then rename the downloaded folder for convenience.</p>
<pre class="">:~#  tar -xzvf apache-tomcat-9.0.12.tar.gz
:~#  mv apache-tomcat-9.0.12 tomcat</pre>
<p><figure id="attachment_5940" aria-describedby="caption-attachment-5940" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5940" src="https://www.osradar.com/wp-content/uploads/2018/09/8-11.png" alt="8.- Renaming the folder of tomcat" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/8-11.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/8-11-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5940" class="wp-caption-text">8.- Renaming the folder of tomcat</figcaption></figure></p>
<p>Remember that you are working as a root user, for this reason, the folders will not have permissions for the rest of the users and this will cause problems. Change the owner of the folder and give it appropriate permissions to all binaries files:</p>
<pre class="">:~# chown -R $tomcat:$tomcat /opt/tomcat/
:~# chmod +x /opt/tomcat/bin/*</pre>
<p><figure id="attachment_5941" aria-describedby="caption-attachment-5941" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5941" src="https://www.osradar.com/wp-content/uploads/2018/09/9-12.png" alt="9.- Changing the owner of the folder and giving execution permissions to the binaries" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/9-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/9-12-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5941" class="wp-caption-text">9.- Changing the owner of the folder and giving execution permissions to the binaries</figcaption></figure></p>
<p>Then you must configure the Catalina tomcat servlet container environment by editing the <code>~/.bashrc</code> file.</p>
<pre class="">:~# nano ~/.bashrc</pre>
<p>And add the following:</p>
<pre class="">export CATALINA_HOME=/opt/tomcat</pre>
<p>However, for all these changes to work, you must reload the bash:</p>
<pre class="">:~# source ~/.bashrc</pre>
<p>The moment of truth has come. Run Tomcat.</p>
<pre class="">:~# /opt/tomcat/bin/startup.sh</pre>
<p><figure id="attachment_5944" aria-describedby="caption-attachment-5944" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-5944 size-full" src="https://www.osradar.com/wp-content/uploads/2018/09/11-1-1.png" alt="11.- Starting Tomcat" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2018/09/11-1-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/11-1-1-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5944" class="wp-caption-text">11.- Starting Tomcat</figcaption></figure></p>
<p>Now you can go to your web browser and access from the server&#8217;s IP address and port 8080.</p>
<p><figure id="attachment_5943" aria-describedby="caption-attachment-5943" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5943" src="https://www.osradar.com/wp-content/uploads/2018/09/12-7.png" alt="12.- Installation success of Tomcat" width="1366" height="633" srcset="https://www.osradar.com/wp-content/uploads/2018/09/12-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-768x356.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-1024x475.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-696x323.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-1068x495.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/12-7-906x420.png 906w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5943" class="wp-caption-text">12.- Installation success of Tomcat</figcaption></figure></p>
<h2>3.Set a password for the user</h2>
<p>You already have Tomcat installed, but to access the web manager you must configure the user&#8217;s password. To do this, you must modify the file <code>tomcat-users.xml</code>.</p>
<pre class="">:~# nano /opt/tomcat/conf/tomcat-users.xml</pre>
<p>And in the section <code>tomcat-users</code> adds the following:</p>
<pre class="">&lt;role rolename="manager-gui"/&gt;
&lt;user username="XXXXXX" password="XXXXXXX" roles="manager-gui,admin-gui"/&gt;</pre>
<p><figure id="attachment_5945" aria-describedby="caption-attachment-5945" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5945" src="https://www.osradar.com/wp-content/uploads/2018/09/13-5.png" alt="13.- Making a user for Tomcat" width="1368" height="709" srcset="https://www.osradar.com/wp-content/uploads/2018/09/13-5.png 1368w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-768x398.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/13-5-810x420.png 810w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-5945" class="wp-caption-text">13.- Making a user for Tomcat</figcaption></figure></p>
<p>Of course, change your username and password for yours.</p>
<p>Now, shutdown the server and start it again:</p>
<pre class="">:~# ./shutdown.sh
:~# ./startup.sh</pre>
<p>And go to http://IP_SERVER:8080/manager/html, where you will be asked for a username and password.</p>
<p><figure id="attachment_5946" aria-describedby="caption-attachment-5946" style="width: 1356px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5946" src="https://www.osradar.com/wp-content/uploads/2018/09/14-2.png" alt="14.- Tomcat manager application asking for username and password" width="1356" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/09/14-2.png 1356w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-1024x479.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-1068x499.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/14-2-898x420.png 898w" sizes="(max-width: 1356px) 100vw, 1356px" /><figcaption id="caption-attachment-5946" class="wp-caption-text">14.- Tomcat manager application asking for username and password</figcaption></figure></p>
<p>And finally, you&#8217;ll access the Tomcat server management application.</p>
<p>As you can see, the installation is complete and you can start using the Tomcat for your needs.</p>
<p>The installation is really simple but you should have a little knowledge about the use of the terminal.</p>
<p>Tell us, what do you think about Tomcat? Have you used it?</p>
<p>Please share this article for your social networks.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/">How to install Tomcat on Debian 9 Stretch?</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-tomcat-on-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
