{"id":29379,"date":"2018-12-28T13:26:18","date_gmt":"2018-12-28T19:26:18","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29379"},"modified":"2022-06-03T03:34:24","modified_gmt":"2022-06-03T08:34:24","slug":"how-to-install-tomcat-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/","title":{"rendered":"How to Install Tomcat on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-30891 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg\" alt=\"how to install tomcat on ubuntu 18.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this guide, we will show you how to <a href=\"https:\/\/www.rosehosting.com\/tomcat-hosting.html\">install Tomcat<\/a> on an\u00a0<a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 18.04 VPS<\/a>. Tomcat is an open source web server and servlet container developed by the Apache Software Foundation (ASF) that executes Java servlets and renders Web pages that include Java server page coding.<br \/>\n<!--more--><br \/>\n<img decoding=\"async\" class=\"alignright size-full wp-image-30892\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/installing-tomcat-on-ubuntu-18.04.jpg\" alt=\"installing tomcat on ubuntu 18.04\" width=\"200\" height=\"200\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/installing-tomcat-on-ubuntu-18.04.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/installing-tomcat-on-ubuntu-18.04-150x150.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>In order to run Tomcat on your VPS, the following requirements have to be met:<\/p>\n<ul>\n<li>Java 8 or higher<\/li>\n<li>SSH root access to your server<\/li>\n<li>A VPS with at least 1 GB of RAM<\/li>\n<\/ul>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a1832c507003\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a1832c507003\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#Update-OS-packages\" >Update OS packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#Install-JAVA\" >Install JAVA<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#Install-Tomcat\" >Install Tomcat<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#Create-a-reverse-proxy-in-Apache\" >Create a reverse proxy in Apache<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Update-OS-packages\"><\/span>Update OS packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we can start with the Tomcat installation, we have to make sure that all Ubuntu OS packages installed on the server are up to date. We can do this by executing the following commands:<\/p>\n<pre>sudo apt-get update\nsudo apt-get upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-JAVA\"><\/span>Install JAVA<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In order to install and run Tomcat on the server, we need to have Java installed. We can check if Java is already installed using this command:<\/p>\n<pre>which java<\/pre>\n<p>If there is no output, it means that Java is not installed on the server yet. We can install Oracle JDK or OpenJDK. We need to have Java version 8 or higher installed on your system to run Tomcat 9. We can install it using the following command:<\/p>\n<pre>sudo apt-get install default-jdk<\/pre>\n<p>In order to check the Java version, run the following command on your server:<\/p>\n<pre>java -version<\/pre>\n<p>We should receive the following output:<\/p>\n<pre>openjdk version \"10.0.2\" 2018-07-17\nOpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)\nOpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-Tomcat\"><\/span>Install Tomcat<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Download the latest stable version of Tomcat from the Apache Tomcat official website at http:\/\/tomcat.apache.org\/download-90.cgi and extract it in a directory on your server:<\/p>\n<pre>cd \/opt\nwget -O tomcat9.tar.gz http:\/\/mirror.olnevhost.net\/pub\/apache\/tomcat\/tomcat-9\/v9.0.14\/bin\/apache-tomcat-9.0.14.tar.gz\ntar -xvzf tomcat9.tar.gz\nmv apache-tomcat-9.0.14 tomcat9<\/pre>\n<p>It is not a good idea to run Tomcat as root\u00a0user, so for security reason,\u00a0we will create a new system user:<\/p>\n<pre>useradd -r tomcat9 -d \/opt\/tomcat9 --shell \/bin\/false<\/pre>\n<p>Once the tomcat9 system user has been created, change the ownership of the \/opt\/tomcat9 directory to tomcat user:<\/p>\n<pre>chown tomcat9:tomcat9 -R \/opt\/tomcat9\/<\/pre>\n<p>Create a new systemd file for Tomcat:<\/p>\n<pre>vi \/etc\/systemd\/system\/tomcat9.service<\/pre>\n<p>Add the following content:<\/p>\n<pre>[Unit]\nDescription=Apache Tomcat\nAfter=network.target\n\n[Service]\nType=forking\n\nUser=tomcat9\nGroup=tomcat9\n\nEnvironment=JAVA_HOME=\/usr\/lib\/jvm\/java-11-openjdk-amd64\nEnvironment=CATALINA_PID=\/opt\/tomcat9\/tomcat9.pid\nEnvironment=CATALINA_HOME=\/opt\/tomcat9\nEnvironment=CATALINA_BASE=\/opt\/tomcat9\nEnvironment=\"CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC\"\n\nExecStart=\/opt\/tomcat9\/bin\/startup.sh\nExecStop=\/opt\/tomcat9\/bin\/shutdown.sh\n\nExecReload=\/bin\/kill $MAINPID\nRemainAfterExit=yes\n\n[Install]\nWantedBy=multi-user.target<\/pre>\n<p>Save the tomcat9.service file. Run the following command to reload the systemd manager configuration:<\/p>\n<pre>systemctl daemon-reload<\/pre>\n<p>Now we can start the Apache Tomcat 9 service:<\/p>\n<pre>systemctl start tomcat9<\/pre>\n<p>In order to enable the Tomcat service to start on server boot, run:<\/p>\n<pre>systemctl enable tomcat9<\/pre>\n<p>We can check the status of the Tomcat 9 service and confirm that it is properly installed by executing the following command:<\/p>\n<pre>systemctl status tomcat9<\/pre>\n<p>The output of this command should be similar to this:<\/p>\n<pre>\u25cf tomcat9.service - Apache Tomcat\n   Loaded: loaded (\/etc\/systemd\/system\/tomcat9.service; enabled; vendor preset: enabled)\n   Active: active (exited) since Thu 2018-12-27 04:34:47 CST; 3s ago\n  Process: 5473 ExecStart=\/opt\/tomcat9\/bin\/startup.sh (code=exited, status=0\/SUCCESS)\n Main PID: 5481 (code=exited, status=0\/SUCCESS)\n    Tasks: 45 (limit: 2320)\n   CGroup: \/system.slice\/tomcat9.service\n           \u2514\u25005482 \/usr\/lib\/jvm\/java-11-openjdk-amd64\/bin\/java -Djava.util.logging.config.file=\/opt\/tomcat9\/conf\/logging.properties -Djava.util.logging.manager=org.apache.jul\n\nDec 27 04:34:47 for-blog-post.rosehostingtest.com systemd[1]: Starting Apache Tomcat...\nDec 27 04:34:47 for-blog-post.rosehostingtest.com startup.sh[5473]: Tomcat started.\nDec 27 04:34:47 for-blog-post.rosehostingtest.com systemd[1]: Started Apache Tomcat.<\/pre>\n<p>Apache Tomcat is listening on port 8080, so open a web browser and navigate to http:\/\/IP_address:8080 and you should see the home page of Apache Tomcat.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-30894 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/install-tomcat-on-ubuntu-18.04.png\" alt=\"install tomcat on ubuntu 18.04\" width=\"300\" height=\"217\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/install-tomcat-on-ubuntu-18.04.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/install-tomcat-on-ubuntu-18.04-150x109.png 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create-a-reverse-proxy-in-Apache\"><\/span>Create a reverse proxy in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can also configure Apache2 web server as a reverse proxy for Tomcat 9 web server, so Apache will accept all requests over port 80 in front of Tomcat 9 which is running on port 8080.<\/p>\n<p>We need to enable two Apache modules:\u00a0proxy\u00a0and\u00a0proxy_http. We can use the a2enmod\u00a0command to enable them:<\/p>\n<pre>sudo a2enmod proxy\nsudo a2enmod proxy_http<\/pre>\n<p>Then, we have to restart Apache for the changes to take effect:<\/p>\n<pre>systemctl restart apache2<\/pre>\n<p>Create\/modify the virtual host configuration about your domain and add\/modify the proxy directives (ProxyRequests, ProxyPass and ProxyPassReverse) as shown in our example:<\/p>\n<p>vi \/etc\/apache2\/sites-available\/your-domain.com.conf<\/p>\n<pre>&lt;VirtualHost *:80&gt;\n  ServerName your-domain.com\n  ServerAlias www.your-domain.com\n  ProxyRequests off \n  ProxyPass \/ http:\/\/127.0.0.1:8080\/ \n  ProxyPassReverse \/ http:\/\/127.0.0.1:8080\/ \n&lt;\/VirtualHost&gt;<\/pre>\n<p>Enable the &#8216;your-domain.com.conf&#8217; Apache configuration file if it was not enabled previously, and restart Apache for the changes to take effect:<\/p>\n<pre>sudo a2ensite your-domain.com.conf\nsystemctl restart apache2<\/pre>\n<p>Now we can access the Tomcat webapp without using port 8080 in a web browser, i.e. we can access it using: http:\/\/your-domain.com<\/p>\n<p>That is it. We successfully installed Tomcat on Ubuntu 18.04.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to install Tomcat on Ubuntu 18.04, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/tomcat-hosting.html\">Managed Tomcat<\/a><a href=\"https:\/\/www.rosehosting.com\/tomcat-hosting.html\"> Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to set up and configure Apache Tomcat on Ubuntu 18.04 for you. They are available 24\u00d77 and will take care of your request immediately. We also published a guide on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-20-04\/\">How to Install Tomcat on Ubuntu 20.04<\/a>.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on <strong>how to install Tomcat on Ubuntu 18.04<\/strong>, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will show you how to install Tomcat on an\u00a0Ubuntu 18.04 VPS. Tomcat is an open source &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Tomcat on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#more-29379\" aria-label=\"Read more about How to Install Tomcat on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":30891,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1707],"tags":[90,59],"class_list":["post-29379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-servers","tag-tomcat","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6.1 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Tomcat on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Tomcat on Ubuntu 18.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-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 Tomcat on Ubuntu 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Tomcat on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-28T19:26:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Tomcat on Ubuntu 18.04\",\"datePublished\":\"2018-12-28T19:26:18+00:00\",\"dateModified\":\"2022-06-03T08:34:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/\"},\"wordCount\":655,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/how-to-install-tomcat-on-ubuntu-18.04.jpg\",\"keywords\":[\"tomcat\",\"ubuntu\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Tomcat on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/how-to-install-tomcat-on-ubuntu-18.04.jpg\",\"datePublished\":\"2018-12-28T19:26:18+00:00\",\"dateModified\":\"2022-06-03T08:34:24+00:00\",\"description\":\"How to Install Tomcat on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/how-to-install-tomcat-on-ubuntu-18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/how-to-install-tomcat-on-ubuntu-18.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install tomcat on ubuntu 18.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-tomcat-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Tomcat on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Tomcat on Ubuntu 18.04 | RoseHosting","description":"How to Install Tomcat on Ubuntu 18.04 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Tomcat on Ubuntu 18.04","og_description":"How to Install Tomcat on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-12-28T19:26:18+00:00","article_modified_time":"2022-06-03T08:34:24+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Tomcat on Ubuntu 18.04","datePublished":"2018-12-28T19:26:18+00:00","dateModified":"2022-06-03T08:34:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/"},"wordCount":655,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg","keywords":["tomcat","ubuntu"],"articleSection":["Tutorials","Ubuntu","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/","name":"How to Install Tomcat on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg","datePublished":"2018-12-28T19:26:18+00:00","dateModified":"2022-06-03T08:34:24+00:00","description":"How to Install Tomcat on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/12\/how-to-install-tomcat-on-ubuntu-18.04.jpg","width":742,"height":372,"caption":"how to install tomcat on ubuntu 18.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-tomcat-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Tomcat on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=29379"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29379\/revisions"}],"predecessor-version":[{"id":36496,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29379\/revisions\/36496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/30891"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}