{"id":41395,"date":"2022-06-22T12:30:26","date_gmt":"2022-06-22T17:30:26","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=41395"},"modified":"2022-10-05T01:56:17","modified_gmt":"2022-10-05T06:56:17","slug":"how-to-install-and-secure-tomcat-10-on-almalinux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/","title":{"rendered":"How to Install and Secure Tomcat 10 on AlmaLinux"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-41580 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg\" alt=\"how to install and secure tomcat 10 on almalinux\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to install Tomcat 10 and secure it with an SSL certificate on AlmaLinux OS.<\/p>\n<p>Tomcat is an open-source application written in Java program language used for rendering Java web pages and executing Java servlets. Tomcat is also known as Apache Tomcat and it can be installed on many Linux distributions such as Debian, Ubuntu, CentOS, and of course AlmaLinux. In this tutorial, we are going to install Tomcat 10 and set up a reverse proxy with Apache configuration so we can secure the domain with an SSL certificate.<\/p>\n<p>Installing Tomcat 10 on AlmaLinux with Apache as a reverse proxy can take up to 15 minutes. Let&#8217;s get started!<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 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-69e9b53e05acb\" 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-69e9b53e05acb\"  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-and-secure-tomcat-10-on-almalinux\/#Prerequisites\" >Prerequisites<\/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-and-secure-tomcat-10-on-almalinux\/#Step-1-Update-the-System\" >Step 1. Update the System<\/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-and-secure-tomcat-10-on-almalinux\/#Step-2-Install-Apache2-Web-Server\" >Step 2. Install Apache2 Web Server<\/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-and-secure-tomcat-10-on-almalinux\/#Step-3-Install-Java\" >Step 3. Install Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#Step-4-Install-Tomcat-10\" >Step 4. Install Tomcat 10<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#Step-5-Create-Apache-as-a-reverse-proxy-for-Tomcat\" >Step 5. Create Apache as a reverse proxy for Tomcat<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#Step-6-Install-SSL-certificate\" >Step 6. Install SSL certificate<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A server with AlmaLinux as OS<\/li>\n<li>A valid domain pointed to the server IP address<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>After a fresh installation of AlmaLinux, we need to update the packages to the latest versions available:<\/p>\n<pre>sudo dnf update -y &amp;&amp; sudo dnf upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Apache2-Web-Server\"><\/span>Step 2. Install Apache2 Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the Apache2 execute the following command:<\/p>\n<pre>sudo dnf install httpd -y<\/pre>\n<p>To start and enable the apache service, execute the commands below:<\/p>\n<pre>sudo systemctl start httpd &amp;&amp; sudo systemctl enable httpd<\/pre>\n<p>Check the status of the Apache service:<\/p>\n<pre>sudo systemctl status httpd<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>[root@vps ~]# sudo systemctl status httpd\r\n\u25cf httpd.service - The Apache HTTP Server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; vendor preset: disabled)\r\n   Active: active (running) since Mon 2022-05-09 12:43:47 CDT; 7s ago\r\n     Docs: man:httpd.service(8)\r\n Main PID: 7287 (httpd)\r\n   Status: \"Started, listening on: port 80\"\r\n    Tasks: 213 (limit: 23715)\r\n   Memory: 36.5M\r\n   CGroup: \/system.slice\/httpd.service\r\n           \u251c\u25007287 \/usr\/sbin\/httpd -DFOREGROUND\r\n           \u251c\u25007353 \/usr\/sbin\/httpd -DFOREGROUND\r\n           \u251c\u25007354 \/usr\/sbin\/httpd -DFOREGROUND\r\n           \u251c\u25007355 \/usr\/sbin\/httpd -DFOREGROUND\r\n           \u2514\u25007356 \/usr\/sbin\/httpd -DFOREGROUND\r\n\r\nMay 09 12:43:46 host.test.vps systemd[1]: Starting The Apache HTTP Server...\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Java\"><\/span>Step 3. Install Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the latest Java 17 version along with other dependencies execute the following commands:<\/p>\n<pre>dnf install epel-release\r\n\r\ninstall java-17-openjdk-devel\r\n<\/pre>\n<p>After successfull installation check the installed version.<\/p>\n<pre>java -version<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>[root@vps ~]# java -version\r\nopenjdk version \"17.0.3\" 2022-04-19 LTS\r\nOpenJDK Runtime Environment 21.9 (build 17.0.3+6-LTS)\r\nOpenJDK 64-Bit Server VM 21.9 (build 17.0.3+6-LTS, mixed mode, sharing)\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-Tomcat-10\"><\/span>Step 4. Install Tomcat 10<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we need to create a directory for tomcat installation, a tomcat user, and a group.<\/p>\n<pre>mkdir \/opt\/tomcat\r\n\r\ngroupadd tomcat\r\n\r\nuseradd -s \/bin\/nologin -g tomcat -d \/opt\/tomcat tomcat\r\n<\/pre>\n<p>Download Tomcat 10 and extract it in the <b>\/opt\/tomcat<\/b> directory on your server.<\/p>\n<pre>cd \/opt\r\n\r\nwget https:\/\/downloads.apache.org\/tomcat\/tomcat-10\/v10.0.20\/bin\/apache-tomcat-10.0.20.tar.gz -O tomcat-10.0.20.tar.gz\r\n\r\ntar xzvf tomcat-10.0.20.tar.gz -C \/opt\/tomcat --strip-components=1\r\n<\/pre>\n<p>Once, downloaded and extracted, set the right permissions.<\/p>\n<pre>chown tomcat:tomcat -R \/opt\/tomcat\/\r\n\r\nchmod +x \/opt\/tomcat\/bin\/*.sh\r\n<\/pre>\n<p>Next, is to create a Systemd Service File for Tomcat.<\/p>\n<pre>touch \/etc\/systemd\/system\/tomcat.service<\/pre>\n<p>Open the file, and paste the following lines of code.<\/p>\n<pre>[Unit]\r\nDescription=Apache Tomcat\r\nAfter=network.target\r\n\r\n[Service]\r\nType=forking\r\n\r\nUser=tomcat\r\nGroup=tomcat\r\n\r\nEnvironment=\"JAVA_HOME=\/usr\/lib\/jvm\/jre\"\r\nEnvironment=\"JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:\/dev\/.\/urandom\"\r\n\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\n\r\nExecStart=\/opt\/tomcat\/bin\/startup.sh\r\nExecStop=\/opt\/tomcat\/bin\/shutdown.sh\r\n\r\nExecReload=\/bin\/kill $MAINPID\r\nRemainAfterExit=yes\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>Save, the file close it and restart the daemon.<\/p>\n<pre>systemctl daemon-reload<\/pre>\n<p>Start and enable the Tomcat service:<\/p>\n<pre>systemctl start tomcat &amp;&amp; systemctl enable tomcat<\/pre>\n<p>Once started check the status of the service:<\/p>\n<pre>systemctl status tomcat<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>[root@vps ~]# systemctl status tomcat\r\n\u25cf tomcat.service - Apache Tomcat\r\n   Loaded: loaded (\/etc\/systemd\/system\/tomcat.service; enabled; vendor preset: disabled)\r\n   Active: active (exited) since Mon 2022-05-09 14:47:43 CDT; 3min 7s ago\r\n    Tasks: 0 (limit: 23715)\r\n   Memory: 0B\r\n   CGroup: \/system.slice\/tomcat.service\r\n\r\nMay 09 14:47:43 host.test.vps systemd[1]: Starting Apache Tomcat...\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Create-Apache-as-a-reverse-proxy-for-Tomcat\"><\/span>Step 5. Create Apache as a reverse proxy for Tomcat<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, you can access Tomcat on port 8080 at <b>http:\/\/YourServerIPAddress:8080<\/b>, but it will be insecurity and as we know, we can only install an SSL certificate on the domain.<\/p>\n<pre>touch \/etc\/httpd\/conf.d\/tomcat.conf<\/pre>\n<p>Open the file with your favorite editor and paste the following lines of code:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n  ServerName yourdomain.com\r\n  ProxyRequests off \r\n  ProxyPass \/ http:\/\/127.0.0.1:8080\/ \r\n  ProxyPassReverse \/ http:\/\/127.0.0.1:8080\/ \r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Save the file, close it and check the Apache syntax.<\/p>\n<pre>httpd -t<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>[root@vps httpd]# httpd -t\r\nSyntax OK\r\n<\/pre>\n<p>If the syntax is OK, restart the service<\/p>\n<pre>sudo systemctl restart httpd<\/pre>\n<p>Now, you can access your Tomcat via domain at <b>http:\/\/yourdomain.com<\/b>, but we are not done here in this tutorial. The next step is about securing the Tomcat domain with an SSL certificate.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Install-SSL-certificate\"><\/span>Step 6. Install SSL certificate<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install first, the mod_ssl extension and python certbot.<\/p>\n<pre>dnf install epel-release mod_ssl -y\r\n\r\ndnf install python3-certbot-apache -y\r\n<\/pre>\n<p>Once, this is installed you can generate an SSL certificate with the following command:<\/p>\n<pre>certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email admin@yourdomain.com -d yourdomain.com\r\n<\/pre>\n<p>After successful installation you should receive the following output:<\/p>\n<pre>Deploying certificate\r\nSuccessfully deployed certificate for <b>yourdomain.com<\/b> to \/etc\/httpd\/conf.d\/tomcat-le-ssl.conf\r\nCongratulations! You have successfully enabled HTTPS on <b>https:\/\/yourdomain.com<\/b>\r\n\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nIf you like Certbot, please consider supporting our work by:\r\n * Donating to ISRG \/ Let's Encrypt:   https:\/\/letsencrypt.org\/donate\r\n * Donating to EFF:                    https:\/\/eff.org\/donate-le\r\n\r\n<\/pre>\n<p>Now you can access your Tomcat interface securely at <b>https:\/\/yourdomain.com<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-41482 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/install-and-secure-tomcat-10-on-almalinux.webp\" alt=\"install and secure tomcat 10 on almalinux\" width=\"869\" height=\"594\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/install-and-secure-tomcat-10-on-almalinux.webp 869w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/install-and-secure-tomcat-10-on-almalinux-300x205.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/install-and-secure-tomcat-10-on-almalinux-150x103.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/install-and-secure-tomcat-10-on-almalinux-768x525.webp 768w\" sizes=\"(max-width: 869px) 100vw, 869px\" \/><\/p>\n<p>Congratulations! You successfully installed and secured Tomcat 10 with an SSL certificate on AlmaLinux. If you find it difficult to install and configure all these with the provided commands, you can always contact our technical support and they will do the rest for you. We are available 24\/7.<\/p>\n<p>P.S If you liked this post on how to install and secure Tomcat on AlmaLinux, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to install Tomcat 10 and secure it with an SSL certificate on AlmaLinux OS. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install and Secure Tomcat 10 on AlmaLinux\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#more-41395\" aria-label=\"Read more about How to Install and Secure Tomcat 10 on AlmaLinux\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":41580,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[1910,1603,90],"class_list":["post-41395","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-almalinux","tag-how-to-install","tag-tomcat","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install and Secure Tomcat 10 on AlmaLinux | 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-and-secure-tomcat-10-on-almalinux\/\" \/>\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 Secure Tomcat 10 on AlmaLinux\" \/>\n<meta property=\"og:description\" content=\"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/\" \/>\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=\"2022-06-22T17:30:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-05T06:56:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg?v=1653314245\" \/>\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-and-secure-tomcat-10-on-almalinux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install and Secure Tomcat 10 on AlmaLinux\",\"datePublished\":\"2022-06-22T17:30:26+00:00\",\"dateModified\":\"2022-10-05T06:56:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/\"},\"wordCount\":557,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg\",\"keywords\":[\"almalinux\",\"how to install\",\"tomcat\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/\",\"name\":\"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg\",\"datePublished\":\"2022-06-22T17:30:26+00:00\",\"dateModified\":\"2022-10-05T06:56:17+00:00\",\"description\":\"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install and secure tomcat 10 on almalinux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-secure-tomcat-10-on-almalinux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Secure Tomcat 10 on AlmaLinux\"}]},{\"@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 and Secure Tomcat 10 on AlmaLinux | RoseHosting","description":"How to Install and Secure Tomcat 10 on AlmaLinux | 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-and-secure-tomcat-10-on-almalinux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Secure Tomcat 10 on AlmaLinux","og_description":"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-06-22T17:30:26+00:00","article_modified_time":"2022-10-05T06:56:17+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg?v=1653314245","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-and-secure-tomcat-10-on-almalinux\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install and Secure Tomcat 10 on AlmaLinux","datePublished":"2022-06-22T17:30:26+00:00","dateModified":"2022-10-05T06:56:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/"},"wordCount":557,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg","keywords":["almalinux","how to install","tomcat"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/","name":"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg","datePublished":"2022-06-22T17:30:26+00:00","dateModified":"2022-10-05T06:56:17+00:00","description":"How to Install and Secure Tomcat 10 on AlmaLinux | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-and-secure-tomcat-10-on-almalinux.jpg","width":742,"height":372,"caption":"how to install and secure tomcat 10 on almalinux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-secure-tomcat-10-on-almalinux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install and Secure Tomcat 10 on AlmaLinux"}]},{"@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\/41395","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=41395"}],"version-history":[{"count":13,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/41395\/revisions"}],"predecessor-version":[{"id":43286,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/41395\/revisions\/43286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/41580"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=41395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=41395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=41395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}