{"id":1446,"date":"2023-09-27T05:55:40","date_gmt":"2023-09-27T05:55:40","guid":{"rendered":"https:\/\/formatswap.com\/blog\/?p=1446"},"modified":"2023-09-27T05:55:41","modified_gmt":"2023-09-27T05:55:41","slug":"how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/","title":{"rendered":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"576\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg\" alt=\"apache tomcat ubuntu splash image\" class=\"wp-image-1504\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-300x169.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-768x432.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1536x864.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><a href=\"https:\/\/tomcat.apache.org\/\">Apache Tomcat<\/a> 10 is a powerful tool for deploying Java-based web applications, and if you&#8217;re running Ubuntu 22.04 you can easily harness its capabilities. In this easy to follow tutorial we&#8217;ll walk you through the straightforward process of installing and configuring it on your Ubuntu 22.04 system.<\/p>\n\n\n\n<p>Whether you&#8217;re a seasoned developer or new to web development, this guide simplifies the installation and setup. By the end of the tutorial you&#8217;ll have Apache Tomcat 10 up and running on your Ubuntu 22.04 machine. This will have you ready to host your Java web applications.<\/p>\n\n\n\n<p>Let&#8217;s get started with this quick guide to Apache Tomcat 10 on Ubuntu 22.04. Tomcat 10 will open up a new world of possibilities for your web development projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Update and Upgrade Ubuntu 22.04<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"311\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade-1024x311.jpg\" alt=\"update ubuntu 22.04\" class=\"wp-image-1449\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade-1024x311.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade-300x91.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade-768x233.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade-1536x466.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/1-update-and-upgrade.jpg 1545w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first step to installing Apache Tomcat is to update and upgrade your system. Use the following apt command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Download and Install Java Development Kit<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"549\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/2-install-openjdk-1024x549.jpg\" alt=\"download java jdk\" class=\"wp-image-1450\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/2-install-openjdk-1024x549.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/2-install-openjdk-300x161.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/2-install-openjdk-768x412.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/2-install-openjdk.jpg 1517w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next we need to install the Java Development Kit (JDK) package. Install the latest version will the apt command below.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo apt install openjdk-11-jdk <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verify Java Version<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"302\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/3-verify-java-installation-1024x302.jpg\" alt=\"verify java version\" class=\"wp-image-1451\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/3-verify-java-installation-1024x302.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/3-verify-java-installation-300x88.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/3-verify-java-installation-768x227.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/3-verify-java-installation.jpg 1519w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After installing the Java JDK we will want to verify the version, and that it was installed correctly. Use the java command shown below.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>java -version<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create a User for Tomcat<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"214\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/4-create-user-for-tomcat-1024x214.jpg\" alt=\"create linux user for tomcat\" class=\"wp-image-1452\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/4-create-user-for-tomcat-1024x214.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/4-create-user-for-tomcat-300x63.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/4-create-user-for-tomcat-768x161.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/4-create-user-for-tomcat.jpg 1521w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The next step will be to create a Linux user account to manage our Apache Tomcat installation. Use the useradd command to create the user.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo useradd -r -m -U -d \/opt\/tomcat -s \/bin\/false tomcat <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Download Apache Tomcat 10<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"436\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/5-download-tomcat-1024x436.jpg\" alt=\"download apache tomcat 10\" class=\"wp-image-1453\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/5-download-tomcat-1024x436.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/5-download-tomcat-300x128.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/5-download-tomcat-768x327.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/5-download-tomcat.jpg 1521w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once we have finished creating our user we will download Tomcat. Use wget to download the latest version with the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>wget https:\/\/dlcdn.apache.org\/tomcat\/tomcat-10\/v10.1.13\/bin\/apache-tomcat-10.1.13.tar.gz<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Extract Apache Tomcat<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"217\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/6-extract-tomcat-1024x217.jpg\" alt=\"extract apache tomcat\" class=\"wp-image-1454\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/6-extract-tomcat-1024x217.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/6-extract-tomcat-300x64.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/6-extract-tomcat-768x163.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/6-extract-tomcat.jpg 1519w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now that we have downloaded Tomcat we need to extract it. Use the tar command below to extract the archive into the \/opt\/tomcat folder.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo tar xzf apache-tomcat-*.tar.gz -C \/opt\/tomcat<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Executable Files and Permissions<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"285\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/7-set-permissions-1024x285.jpg\" alt=\"set permissions and make files executable\" class=\"wp-image-1455\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/7-set-permissions-1024x285.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/7-set-permissions-300x84.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/7-set-permissions-768x214.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/7-set-permissions.jpg 1519w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The next thing we will do is set the permissions of the \/opt\/tomcat folder.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo chown -R tomcat: \/opt\/tomcat<\/code><\/pre>\n\n\n\n<p>After you set the permissions you will need to make all of the .sh files in the \/opt\/tomcat folder executable. Use the following sh command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo sh -c 'chmod +x \/opt\/tomcat\/apache-tomcat-10.1.13\/bin\/*.sh'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create Tomcat Users<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"551\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/8-edit-user-config-file-1024x551.jpg\" alt=\"create a user for tomcat\" class=\"wp-image-1456\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/8-edit-user-config-file-1024x551.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/8-edit-user-config-file-300x161.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/8-edit-user-config-file-768x413.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/8-edit-user-config-file.jpg 1517w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next we will create the Tomcat user accounts using the tomcat-users.x file. First create the file with the nano command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo nano \/opt\/tomcat\/apache-tomcat-10.1.13\/conf\/tomcat-users.xml <\/code><\/pre>\n\n\n\n<p>Then add the following text replacing _SECRET_PASSWORD_ with the passwords you wish to use. Save the file when finished.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>&lt;!-- user manager can access only the manager section --&gt;\n&lt;role rolename=\"manager-gui\" \/&gt;\n&lt;user username=\"manager\" password=\"_SECRET_PASSWORD_\" roles=\"manager-gui\" \/&gt;\n \n&lt;!-- user admin can access manager and admin section both --&gt;\n&lt;role rolename=\"admin-gui\" \/&gt;\n&lt;user username=\"admin\" password=\"_SECRET_PASSWORD_\" roles=\"manager-gui,admin-gui\" \/&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Allow External Connections to Tomcat<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"464\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config-1024x464.jpg\" alt=\"allow external connections in manager context.xml file\" class=\"wp-image-1457\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config-1024x464.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config-300x136.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config-768x348.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config-1536x695.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/9-allow-remote-access-in-config.jpg 1575w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After you had created the users you will want to make Apache Tomcat accessible externally. The first thing is to open the context.xml file with nano.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo nano \/opt\/tomcat\/apache-tomcat-10.1.13\/webapps\/manager\/META-INF\/context.xml<\/code><\/pre>\n\n\n\n<p>Once the file is open comment out the following section shown in the red box of the above screenshot.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>&lt;!-- &lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"\n         allow=\"127\\.\\d+\\.\\d+\\.\\d+|::1|0:0:0:0:0:0:0:1\" \/&gt; --&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Additionally Edit the Host Manager Context.xml File<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"654\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config-1024x654.jpg\" alt=\"allow external connections in host manager context.xml file\" class=\"wp-image-1458\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config-1024x654.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config-300x192.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config-768x490.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config-1536x981.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/10-allow-remote-in-contextxml-config.jpg 1594w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Additionally we have to comment out a section of the host manager context.xml file. This is also needed to allow external access. Open the file with nano.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo nano \/opt\/tomcat\/apache-tomcat-10.1.13\/webapps\/host-manager\/META-INF\/context.xml<\/code><\/pre>\n\n\n\n<p>Then comment out the following line. After saving the file your Tomcat should be accessible from outside your network.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>&lt;!--&lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"\n         allow=\"127\\.\\d+\\.\\d+\\.\\d+|::1|0:0:0:0:0:0:0:1\" \/&gt; --&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create Systemd Service File<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"608\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file-1024x608.jpg\" alt=\"create a systemd service file\" class=\"wp-image-1459\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file-1024x608.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file-300x178.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file-768x456.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file-1536x912.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/11-create-tomcat-systemd-service-file.jpg 1594w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next we will created a systemd service file to manage Apache Tomcat. First create the file with the nano text editor.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo nano \/etc\/systemd\/system\/tomcat.service <\/code><\/pre>\n\n\n\n<p>Then add the following text. Save the file after adding it.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>&#91;Unit]\nDescription=Apache Tomcat 10 Web Application Server\nAfter=network.target\n \n&#91;Service]\nType=forking\n \nUser=tomcat\nGroup=tomcat\n \nEnvironment=\"JAVA_HOME=\/usr\/lib\/jvm\/java-11-openjdk-amd64\"\nEnvironment=\"CATALINA_HOME=\/opt\/tomcat\"\nEnvironment=\"CATALINA_BASE=\/opt\/tomcat\"\nEnvironment=\"CATALINA_PID=\/opt\/tomcat\/temp\/tomcat.pid\"\nEnvironment=\"CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC\"\n \nExecStart=\/opt\/tomcat\/bin\/startup.sh\nExecStop=\/opt\/tomcat\/bin\/shutdown.sh\n \n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Reload Systemctl Daemon<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"263\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat-1024x263.jpg\" alt=\"reload systemctl daemon\" class=\"wp-image-1460\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat-1024x263.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat-300x77.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat-768x197.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat-1536x394.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/12-reload-daemon-and-start-tomcat.jpg 1585w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After creating the service file we will reload the daemon.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo systemctl daemon-reload<\/code><\/pre>\n\n\n\n<p>As well as start the Apache Tomcat application.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo systemctl start tomcat<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Check Tomcat Status<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"283\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-1024x283.jpg\" alt=\"check status of tomcat\" class=\"wp-image-1461\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-1024x283.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-300x83.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-768x212.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-1536x424.jpg 1536w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/13-verify-tomcat-status-2048x566.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Next we will check the current status of Tomcat to make sure it started correctly.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo systemctl status tomcat.service<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Enable Tomcat to Start at Boot<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"169\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/14-enable-tomcat-1024x169.jpg\" alt=\"enable tomcat at boot\" class=\"wp-image-1462\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/14-enable-tomcat-1024x169.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/14-enable-tomcat-300x50.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/14-enable-tomcat-768x127.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/14-enable-tomcat.jpg 1457w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After that set Apache Tomcat to start at system boot with the systemctl enable command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo systemctl enable tomcat<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configure UFW Firewall<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"945\" height=\"103\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/15-allow-firewall-ufw.jpg\" alt=\"allow tomcat port through firewall\" class=\"wp-image-1463\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/15-allow-firewall-ufw.jpg 945w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/15-allow-firewall-ufw-300x33.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/15-allow-firewall-ufw-768x84.jpg 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p>Now we can allow Tomcat through the ufw firewall. Use the following command to allow it.<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-cyan-blue-color has-black-background-color has-text-color has-background\"><code>sudo ufw allow 8080<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Test Tomcat Configuration<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"889\" loading=\"lazy\" src=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/verify-tomcat-installation-worked-1024x889.jpg\" alt=\"test apache tomcat\" class=\"wp-image-1464\" srcset=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/verify-tomcat-installation-worked-1024x889.jpg 1024w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/verify-tomcat-installation-worked-300x260.jpg 300w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/verify-tomcat-installation-worked-768x667.jpg 768w, https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/verify-tomcat-installation-worked.jpg 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The final step of installing Apache Tomcat is to navigate to the application. Open a web browser and go to <strong>http:\/\/UBUNTU_IP_ADDRESS:8080\/<\/strong> replacing the IP with the IP of your box. If everything is successful you should see a page similar to the above. You have now successfully installed Apache Tomcat 10 on Ubuntu 22.04.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Questions?<\/h2>\n\n\n\n<p>If you have any questions or comments feel free to leave them below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Resources<\/h2>\n\n\n\n<p>View our <strong><a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-setup-nginx-as-a-reverse-proxy-on-ubuntu-22-04-lts\/\">How to Setup Nginx as a Reverse Proxy on Ubuntu 22.04 LTS<\/a><\/strong><a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-setup-nginx-as-a-reverse-proxy-on-ubuntu-22-04-lts\/\">.<\/a><\/p>\n\n\n\n<p>Learn <strong><a href=\"https:\/\/formatswap.com\/blog\/os-installs\/how-to-install-ubuntu-server-22-04-step-by-step\/\">How to Install Ubuntu Server 22.04 [Step by Step]<\/a>.<\/strong><\/p>\n\n\n\n<p>Check out our <a href=\"https:\/\/formatswap.com\/blog\/windows-tutorials\/how-to-easily-create-a-bootable-linux-installation-usb-drive-using-rufus\/\"><strong>How to Easily Create a Bootable Linux USB Drive using Rufus<\/strong><\/a> article.<\/p>\n\n\n\n<p>View our <strong><a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-setup-an-sftp-server-on-ubuntu-22-04-using-openssh\/\"><\/a><a href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-setup-an-sftp-server-on-ubuntu-22-04-using-openssh\/\">How to Setup an SFTP Server on Ubuntu 22.04 using OpenSSH<\/a><\/strong> tutorial.<\/p>\n\n\n\n<p>Learn more cool things in Linux with our <a href=\"https:\/\/formatswap.com\/blog\/category\/linux-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Linux Tutorials<\/strong>.<\/a><\/p>\n\n\n\n<p>View all of our available online tools and converters at <a href=\"https:\/\/formatswap.com\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Formatswap.com<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Tomcat 10 is a powerful tool for deploying Java-based web applications, and if you&#8217;re running Ubuntu 22.04 you can easily harness its capabilities. In this easy to follow tutorial we&#8217;ll walk you through the straightforward process of installing and configuring it on your Ubuntu 22.04 system. Whether you&#8217;re a seasoned developer or new to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[4],"tags":[8,14,31],"class_list":["post-1446","post","type-post","status-publish","format-standard","hentry","category-linux-tutorials","tag-linux","tag-tutorial","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials<\/title>\n<meta name=\"description\" content=\"Learn how to effortlessly install &amp; configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn how to effortlessly install &amp; configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Format Swap - Tech Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-27T05:55:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-27T05:55:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\"},\"headline\":\"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04\",\"datePublished\":\"2023-09-27T05:55:40+00:00\",\"dateModified\":\"2023-09-27T05:55:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/\"},\"wordCount\":744,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/install-apache-tomcat-10-ubuntu-1024x576.jpg\",\"keywords\":[\"linux\",\"tutorial\",\"ubuntu\"],\"articleSection\":[\"Linux Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/\",\"name\":\"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/install-apache-tomcat-10-ubuntu-1024x576.jpg\",\"datePublished\":\"2023-09-27T05:55:40+00:00\",\"dateModified\":\"2023-09-27T05:55:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\"},\"description\":\"Learn how to effortlessly install & configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/install-apache-tomcat-10-ubuntu.jpg\",\"contentUrl\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/install-apache-tomcat-10-ubuntu.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/linux-tutorials\\\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/\",\"name\":\"Format Swap - Tech Tutorials\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d01ee8e1e4f3718cfcc57eeb8ad6188\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/formatswap.com\\\/blog\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCsIPLkRPTbbTaT8YX0Dh2-A\"],\"url\":\"https:\\\/\\\/formatswap.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials","description":"Learn how to effortlessly install & configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials","og_description":"Learn how to effortlessly install & configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.","og_url":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/","og_site_name":"Format Swap - Tech Tutorials","article_published_time":"2023-09-27T05:55:40+00:00","article_modified_time":"2023-09-27T05:55:41+00:00","og_image":[{"url":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/"},"author":{"name":"admin","@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188"},"headline":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04","datePublished":"2023-09-27T05:55:40+00:00","dateModified":"2023-09-27T05:55:41+00:00","mainEntityOfPage":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/"},"wordCount":744,"commentCount":0,"image":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg","keywords":["linux","tutorial","ubuntu"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/","url":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/","name":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04 - Format Swap - Tech Tutorials","isPartOf":{"@id":"https:\/\/formatswap.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu-1024x576.jpg","datePublished":"2023-09-27T05:55:40+00:00","dateModified":"2023-09-27T05:55:41+00:00","author":{"@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188"},"description":"Learn how to effortlessly install & configure Apache Tomcat 10 on Ubuntu 22.04 for Java web apps with this concise guide.","breadcrumb":{"@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu.jpg","contentUrl":"https:\/\/formatswap.com\/blog\/wp-content\/uploads\/2023\/09\/install-apache-tomcat-10-ubuntu.jpg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/formatswap.com\/blog\/linux-tutorials\/how-to-install-and-configure-apache-tomcat-10-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/formatswap.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure Apache Tomcat 10 on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/formatswap.com\/blog\/#website","url":"https:\/\/formatswap.com\/blog\/","name":"Format Swap - Tech Tutorials","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/formatswap.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/formatswap.com\/blog\/#\/schema\/person\/3d01ee8e1e4f3718cfcc57eeb8ad6188","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55cb3548d8c931eac3f2facbca246c6bde86082f48ca304906d7da2214191b72?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/formatswap.com\/blog","https:\/\/www.youtube.com\/channel\/UCsIPLkRPTbbTaT8YX0Dh2-A"],"url":"https:\/\/formatswap.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/1446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/comments?post=1446"}],"version-history":[{"count":5,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/1446\/revisions"}],"predecessor-version":[{"id":1516,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/posts\/1446\/revisions\/1516"}],"wp:attachment":[{"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/media?parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/categories?post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/formatswap.com\/blog\/wp-json\/wp\/v2\/tags?post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}