{"id":1081,"date":"2023-06-06T06:48:28","date_gmt":"2023-06-06T06:48:28","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=1081"},"modified":"2024-11-04T04:35:36","modified_gmt":"2024-11-04T04:35:36","slug":"install-apache-tomcat-ubuntu","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/","title":{"rendered":"How to Install Apache Tomcat 8 on Ubuntu"},"content":{"rendered":"<p>Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you&#8217;re using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated servers in the UK are optimized to manage organic <a href=\"https:\/\/www.dedicatedcore.com\/dedicated-server-uk\/\" target=\"_blank\" rel=\"noopener\">traffic from London<\/a> efficiently for your website visitors.<\/p>\n<p>A lightweight, accessible, and open-source application server. For Java-based websites, it is called Apache Tomcat. Developers use it to create Java WebSocket and Java Expression Language. As well as Java Servlet and JavaServer Pages technologies. To successfully <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-apache-almalinux\/\" target=\"_blank\" rel=\"noopener\">set up a reliable web server<\/a> you&#8217;ll need to install Apache on AlmaLinux, ensuring your server is ready for action.<\/p>\n<p><iframe loading=\"lazy\" title=\"How to Install Apache Tomcat on Ubuntu | Configure Apache Tomcat in Linux | Tomcat Installation\" width=\"719\" height=\"404\" src=\"https:\/\/www.youtube.com\/embed\/GOFIEnT8E7E?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><strong>Requirements<\/strong><\/p>\n<ul>\n<li>A distribution built on Ubuntu (like Ubuntu 18.04)<\/li>\n<li>An account that has sudo access<\/li>\n<li>A Ctrl\u2013Alt\u2013T terminal window<\/li>\n<li>By default, the apt package manager is included.<\/li>\n<\/ul>\n<h2>How to Install Tomcat on Ubuntu 9<\/h2>\n<p>To install the latest version of Apache Tomcat on Ubuntu, follow the instructions below.<\/p>\n<h3>Step 1: First, Make Sure Java is Installed.<\/h3>\n<p>Make sure you have the necessary Java installation for Ubuntu (OpenJDK) before downloading and installing Tomcat.<\/p>\n<p>To check the Java version, open the terminal (Ctrl+Alt+T) and type the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">java -version<\/pre>\n<p>It will display the Java version that is currently installed on your machine. OpenJDK 11.0.3 is the most recent release as of right now.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1083\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command.png\" alt=\"output shows the java version\" width=\"800\" height=\"191\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command-300x72.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command-150x36.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command-768x183.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-java-version-command-700x167.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 2: Install OpenJDK in the Below Step.<\/h3>\n<p>To install the latest release if you don&#8217;t have OpenJDK or your version is older than Java 8, type the following:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt install default-jdk<\/pre>\n<h3>Step 3: Establish a Tomcat Group and User<\/h3>\n<p>Don&#8217;t run Tomcat as the root user for security concerns. To launch the Apache Tomcat service from the \/opt\/tomcat directory, create a new group and system user.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo groupadd tomcat<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo useradd -s \/bin\/false -g tomcat -d \/opt\/tomcat tomcat<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1085\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group.png\" alt=\"command add sudo user and group\" width=\"800\" height=\"172\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group-300x65.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group-768x165.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group-100x22.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-tomcat-user-group-700x151.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 4: Get Tomcat 9 Downloaded Here.<\/h3>\n<p>Download Apache Tomcat following the steps below:<\/p>\n<p>1. Go to the official Apache Tomcat Download page and download the most recent version of the Tomcat binary.<\/p>\n<p>2. Locate the tar.gz link and the Binary Distributions &gt; Core list on it. Make a copy of the file&#8217;s link.<\/p>\n<p>3. Return to the console and use the following command to switch to the \/tmp directory:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cd \/tmp<\/pre>\n<p>4. To download the package, use the curl command and the tar.gz link you copied in step 2 above.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">curl -O https:\/\/dlcdn.apache.org\/tomcat\/tomcat-9\/v9.0.56\/bin\/apache-tomcat-9.0.56.tar.gz<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1086\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output.png\" alt=\"using curl command with tar.gz link\" width=\"800\" height=\"230\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output-300x86.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output-150x43.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output-768x221.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output-100x29.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/curl-tomcat-download-terminal-output-700x201.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Step 5: Open the tar.gz file.<\/h3>\n<p>1. Use the following command to establish a new \/opt\/tomcat\/ directory to extract the tar.gz Tomcat file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo mkdir \/opt\/tomcat<\/pre>\n<p>2. Next, use the following command to extract the file into the new directory:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo tar xzvf apache-tomcat-9*tar.gz -C \/opt\/tomcat --strip-components=1<\/pre>\n<h3>Step 6: Adjust User Permission for Tomcat<\/h3>\n<p>Although it lacks executable rights, the newly established Tomcat user must have access to the installation directory. Setting up execute privileges for the directory is necessary.<\/p>\n<p>1. Proceed to the directory containing the Tomcat installation:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cd \/opt\/tomcat<\/pre>\n<p>2. Use the following command to give the Tomcat group and user ownership of the installation directory:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo chown -RH tomcat: \/opt\/tomcat<\/pre>\n<p>3. Finally, modify the permissions of the script in \/opt\/tomcat\/bin\/with to allow execution:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo sh -c 'chmod +x \/opt\/tomcat\/bin\/*.sh'<\/pre>\n<h3>Step 7: Make a System Unit File Here.<\/h3>\n<p>You must construct a systemd service file since you will be using Tomcat as a service.<\/p>\n<p>1. You must locate the JAVA_HOME location before you can configure the file. The Java installation package is located precisely here.<\/p>\n<p>Asking the computer to provide you with details about the Java packages it has installed can allow you to accomplish this. Type this in the terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo update-java-alternatives -l<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1087\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file.png\" alt=\"sudo update java command \" width=\"800\" height=\"171\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file-300x64.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file-768x164.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/create-system-unit-file-700x150.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>There are two versions of Java accessible, as the output demonstrates. As a result, it also displays two trails showing where they are. Copy the location of the version you want to use. You can then proceed to create the service file.<\/p>\n<p>2. Make a new file named tomcat.service and open it in the directory \/etc\/system\/system:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo nano \/etc\/systemd\/system\/tomcat.service<\/pre>\n<p>3. After the file has opened, copy and paste the following text, replacing the value for JAVA_HOME with the data you discovered in step 1.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[Unit]\r\nDescription=Apache Tomcat Web Application Container\r\nAfter=network.target\r\n[Service]\r\nType=forking\r\nUser=tomcat\r\nGroup=tomcat\r\nEnvironment=\"JAVA_HOME=\/usr\/lib\/jvm\/java-1.11.0-openjdk-amd64\"\r\nEnvironment=\"JAVA_OPTS=-Djava.security.egd=file:\/\/\/dev\/urandom -Djava.awt.headless=true\"\r\nEnvironment=\"CATALINA_BASE=\/opt\/tomcat\"\r\nEnvironment=\"CATALINA_HOME=\/opt\/tomcat\"\r\nEnvironment=\"CATALINA_PID=\/opt\/tomcat\/temp\/tomcat.pid\"\r\nEnvironment=\"CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC\"\r\nExecStart=\/opt\/tomcat\/bin\/startup.sh\r\nExecStop=\/opt\/tomcat\/bin\/shutdown.sh\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1088\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents.png\" alt=\"changing java home value\" width=\"800\" height=\"552\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents-300x207.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents-150x104.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents-768x530.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents-100x69.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-service-file-contents-652x450.png 652w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>4. Save the file and close it (Ctrl+X, y[es], Enter).<\/p>\n<p>5. Use the following command to refresh the system daemon for the modifications to take effect:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo systemctl daemon-reload<\/pre>\n<p>6. At this point, you can launch the Tomcat service:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo systemctl start tomcat<\/pre>\n<p>7. Use the following command to confirm the Apache Tomcat service is active:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo systemctl status tomcat<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1089\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command.png\" alt=\"command shows if service is active\" width=\"800\" height=\"431\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command-300x162.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command-150x81.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command-768x414.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command-100x54.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sudo-status-tomcat-command-700x377.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>You wish to be informed that the service is up and operating.<\/p>\n<h3>Step 8: Modify Firewall<\/h3>\n<p>You won&#8217;t be able to access the Tomcat interface if your server is being protected by a firewall, which is something you should do. Tomcat uses port 8080, which is open to networks outside of your own.<\/p>\n<p>1. Use the command: to enable traffic through Port 8080.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo ufw allow 8080\/tcp<\/pre>\n<p>2. The Apache Tomcat splash screen ought to be visible if the port is open. Enter the following Command in the In the browser window, enter the following:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">http:\/\/server_ip:8080<\/pre>\n<p>or<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">http:\/\/localhost:8080<\/pre>\n<p>The web page should load in your browser as seen in the illustration below:<\/p>\n<h3>Step 9: Configure the Web Management Interface<\/h3>\n<p>You must create a user who has access to the online management interface after making sure the service is functioning properly.<\/p>\n<p>Open the user&#8217;s file and make the necessary changes.<\/p>\n<p>1. Use the command: to open the user file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo nano \/opt\/tomcat\/conf\/tomcat-users.xml<\/pre>\n<p>The file should have the appearance shown in the illustration below:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1090\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file.png\" alt=\"open users file with command\" width=\"800\" height=\"471\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file-300x177.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file-150x88.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file-768x452.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file-100x59.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-open-users-file-700x412.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>2. Remove everything from the file and substitute:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;tomcat-users&gt;\r\n&lt;role rolename=\"manager-gui\"\/&gt;\r\n&lt;role rolename=\"manager-script\"\/&gt;\r\n&lt;role rolename=\"manager-jmx\"\/&gt;\r\n&lt;role rolename=\"manager-status\"\/&gt;\r\n&lt;role rolename=\"admin-gui\"\/&gt;\r\n&lt;role rolename=\"admin-script\"\/&gt;\r\n&lt;user username=\"admin\" password=\"Your_Password\" roles=\"manager-gui, manager-script, manager-jmx, manager-status, admin-gui, admin-script\"\/&gt;\r\n&lt;\/tomcat-users&gt;<\/pre>\n<p>Make sure to substitute your preferred strong password for the Your_Password value.<\/p>\n<p>3. Save the file and close it.<\/p>\n<h3>Step 10: Configure Remote Access<\/h3>\n<p>The last step is to set up remote access. This is necessary. Tomcat can only be accessed by local computers by default.<\/p>\n<p>1. Open the manager file first:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo nano \/opt\/tomcat\/webapps\/manager\/META-INF\/context.xml<\/pre>\n<p>2. Choose whether to allow access from a general IP address or b. a specific IP address.<\/p>\n<p>a. Include the following lines in the file to make it open to the public:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;Context antiResourceLocking=\"false\" privileged=\"true\"&gt;\r\n&lt;!--\r\n&lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"\r\nallow=\"127\\.\\d+\\.\\d+.d+|::1|0000:1\" \/&gt;\r\n--&gt;\r\n&lt;\/Context&gt;<\/pre>\n<p>b. To permit access from a particular IP address, include the IP address in the previous command as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;Context antiResourceLocking=\"false\" privileged=\"true\"&gt;\r\n&lt;!--\r\n&lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"\r\nallow=\"127\\.\\d+\\.\\d+\\.\\d+|::1|0000:1|THE.IP.ADDRESS.\" \/&gt;\r\n--&gt;\r\n&lt;\/Context&gt;<\/pre>\n<p>3. Carry out step 3 again for the host-manager file.<\/p>\n<p>To begin, run the following command to open the file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo nano \/opt\/tomcat\/latest\/webapps\/host-manager\/META-INF\/context.xml<\/pre>\n<p>4. Then, you may choose to allow access either from a general IP address (as in the previous step) or from a specific IP address.<\/p>\n<h4>Final Thought on Install Apache Tomcat 9 on Ubuntu 18.04<\/h4>\n<p>A big step towards starting a <a href=\"https:\/\/www.dedicatedcore.com\/vps-hosting\/australia\/\" target=\"_blank\" rel=\"noopener\">successful growing website<\/a> with Australia&#8217;s vps server hosting which bundles various features. The necessary steps to install Apache Tomcat 9 on Ubuntu 18.04 have been covered in this guide. You are now prepared to deploy your Java web applications. Utilize Tomcat&#8217;s powerful features for web development. Server management after properly installing and configuring it.<\/p>\n<p>Tomcat is a flexible tool that may simplify the deployment of web applications. Making it a crucial component of your development toolset. So investigate the options that Tomcat 9 on your Ubuntu 18.04 server provides. Also with the steps explained above you can download Tomcat 9.<\/p>\n<p>Now that Tomcat is installed and operational on your Apache server. You can start deploying Java web applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1109,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you&#039;re using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"DC Team\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DedicatedCore Blog - Great platform to start your startup journey\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS\" \/>\n\t\t<meta property=\"og:description\" content=\"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you&#039;re using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-06-06T06:48:28+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-11-04T04:35:36+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you&#039;re using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#blogposting\",\"name\":\"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS\",\"headline\":\"How to Install Apache Tomcat 8 on Ubuntu\",\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/tomcat-install-on-ubuntu.png\",\"width\":750,\"height\":380,\"caption\":\"install tomcat on ubuntu\"},\"datePublished\":\"2023-06-06T06:48:28+00:00\",\"dateModified\":\"2024-11-04T04:35:36+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#webpage\"},\"articleSection\":\"Uncategorized\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#listItem\",\"name\":\"How to Install Apache Tomcat 8 on Ubuntu\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#listItem\",\"position\":3,\"name\":\"How to Install Apache Tomcat 8 on Ubuntu\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\",\"name\":\"DedicatedCore\",\"description\":\"Great platform to start your startup journey\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"telephone\":\"+919112444404\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/\",\"name\":\"DC Team\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"DC Team\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#webpage\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/\",\"name\":\"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS\",\"description\":\"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you're using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/tomcat-install-on-ubuntu.png\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#mainImage\",\"width\":750,\"height\":380,\"caption\":\"install tomcat on ubuntu\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/install-apache-tomcat-ubuntu\\\/#mainImage\"},\"datePublished\":\"2023-06-06T06:48:28+00:00\",\"dateModified\":\"2024-11-04T04:35:36+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"name\":\"DedicatedCore Blog\",\"description\":\"Great platform to start your startup journey\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","description":"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you're using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated","canonical_url":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#blogposting","name":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","headline":"How to Install Apache Tomcat 8 on Ubuntu","author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-install-on-ubuntu.png","width":750,"height":380,"caption":"install tomcat on ubuntu"},"datePublished":"2023-06-06T06:48:28+00:00","dateModified":"2024-11-04T04:35:36+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#webpage"},"isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#webpage"},"articleSection":"Uncategorized"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.dedicatedcore.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#listItem","name":"How to Install Apache Tomcat 8 on Ubuntu"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#listItem","position":3,"name":"How to Install Apache Tomcat 8 on Ubuntu","previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@type":"Organization","@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization","name":"DedicatedCore","description":"Great platform to start your startup journey","url":"https:\/\/www.dedicatedcore.com\/blog\/","telephone":"+919112444404"},{"@type":"Person","@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author","url":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/","name":"DC Team","image":{"@type":"ImageObject","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g","width":96,"height":96,"caption":"DC Team"}},{"@type":"WebPage","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#webpage","url":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/","name":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","description":"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you're using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#breadcrumblist"},"author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"creator":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tomcat-install-on-ubuntu.png","@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#mainImage","width":750,"height":380,"caption":"install tomcat on ubuntu"},"primaryImageOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/#mainImage"},"datePublished":"2023-06-06T06:48:28+00:00","dateModified":"2024-11-04T04:35:36+00:00"},{"@type":"WebSite","@id":"https:\/\/www.dedicatedcore.com\/blog\/#website","url":"https:\/\/www.dedicatedcore.com\/blog\/","name":"DedicatedCore Blog","description":"Great platform to start your startup journey","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DedicatedCore Blog - Great platform to start your startup journey","og:type":"article","og:title":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","og:description":"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you're using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated","og:url":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/","article:published_time":"2023-06-06T06:48:28+00:00","article:modified_time":"2024-11-04T04:35:36+00:00","twitter:card":"summary_large_image","twitter:title":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","twitter:description":"Java-based web applications can be deployed and managed using Apache Tomcat. A potent web server and servlet container. This article will walk you through installing Tomcat 9 if you're using Ubuntu 18.04. You can get Tomcat 9 up and running and designed to host your Java web applications by using the below inputs. The dedicated"},"aioseo_meta_data":{"post_id":"1081","title":"Install Apache Tomcat 8 on Ubuntu 22.04: Follow 10-STEPS","description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-10-27 05:02:02","updated":"2026-08-13 17:32:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/\" title=\"Uncategorized\">Uncategorized<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Install Apache Tomcat 8 on Ubuntu\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.dedicatedcore.com\/blog"},{"label":"Uncategorized","link":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/"},{"label":"How to Install Apache Tomcat 8 on Ubuntu","link":"https:\/\/www.dedicatedcore.com\/blog\/install-apache-tomcat-ubuntu\/"}],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1081"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":13,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1084,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/1109"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}