{"id":1311,"date":"2017-04-05T16:42:05","date_gmt":"2017-04-05T11:12:05","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1311"},"modified":"2017-04-05T16:42:05","modified_gmt":"2017-04-05T11:12:05","slug":"install-tomcat-server-ubuntu-16","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-tomcat-server-ubuntu-16\/","title":{"rendered":"Install Tomcat server on Ubuntu 16"},"content":{"rendered":"<h4>Install Tomcat server on Ubuntu 16<\/h4>\n<p><strong>Date Posted:05-04-2016<\/strong><\/p>\n<p>Tomcat is a webserver used to deploy java application. We will install tomcat server 8 version and java 1.8 version on Ubuntu Host.<\/p>\n<h4>Implementation:<\/h4>\n<p>Before installing tomcat or java, we will perform system upgrades on host.<\/p>\n<p><code>apt-get update<\/code><\/p>\n<p><code>apt-get upgrade<\/code><\/p>\n<p>Install tomcat8 on the host. This will install additional packages. Just press\u00a0<em>Y\u00a0<\/em>to install all the dependencies.<\/p>\n<p><code>apt-get install tomcat8<\/code><\/p>\n<p>Install web-based application tools, document for tomcat.<\/p>\n<p><code>apt-get install tomcat8-docs tomcat8-examples tomcat8-admin<\/code><\/p>\n<p>Start the tomcat application and enable tomcat application on boot up.<\/p>\n<p><code>systemctl start tomcat8<\/code><\/p>\n<p><code>systemctl enable tomcat8<\/code><\/p>\n<p>The default installation location will be\u00a0<em>\/var\/lib\/tomcat8\/conf\/.<\/em><\/p>\n<p>Open the tomcat-users.xml file and add web based manager gui and admin gui to be protected by password authentication.<\/p>\n<p>The lines should be added before <span style=\"color: #ff6600;\"><em>&lt;\/tomcat-users&gt;<\/em><\/span><\/p>\n<p><code>vi\u00a0\/var\/lib\/tomcat8\/conf\/tomcat-users.xml<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;role rolename=\"manager-gui\"\/&gt;\r\n&lt;role rolename=\"admin-gui\"\/&gt;\r\n&lt;user username=\"admin\" password=\"password\" roles=\"manager-gui,admin-gui\"\/&gt;<\/pre>\n<p>Replace username and password as per your wish.<\/p>\n<p>Restart tomcat8 service.<\/p>\n<p><code>systemctl restart tomcat8<\/code><\/p>\n<p>Default port for tomcat application is\u00a0<em>8080.\u00a0<\/em> You can access the tomcat interface by using the IP address<\/p>\n<blockquote><p>http:\/\/IPaddress:8080\/manager\/html<\/p><\/blockquote>\n<p>If you followed this post then default username is\u00a0<em><span style=\"color: #ff6600;\">admin\u00a0<\/span><\/em>and the password is\u00a0<em><span style=\"color: #ff6600;\">password\u00a0<\/span><\/em> to access tomcat8 manager-gui.<\/p>\n<p>The interface will appear as shown in below fig.<a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignleft size-full wp-image-1313\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install.png\" alt=\"\" width=\"1344\" height=\"460\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install.png 1344w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install-300x103.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install-768x263.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install-1024x350.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/04\/tomcat_install-50x17.png 50w\" sizes=\"(max-width: 1344px) 100vw, 1344px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Tomcat server on Ubuntu 16 Date Posted:05-04-2016 Tomcat is a webserver used to deploy java application. We will install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[261,314,274],"class_list":["post-1311","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-linux","tag-tomcat","tag-ubuntu","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-l9","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1311"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1311\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}