{"id":219,"date":"2014-10-16T06:24:33","date_gmt":"2014-10-16T06:24:33","guid":{"rendered":"http:\/\/muse.oneshot.in\/?p=219"},"modified":"2014-10-16T06:27:54","modified_gmt":"2014-10-16T06:27:54","slug":"how-to-install-appache-tomcat-with-java","status":"publish","type":"post","link":"https:\/\/muse.oneshot.in\/?p=219","title":{"rendered":"How to Install Appache Tomcat with Java"},"content":{"rendered":"<p>Download Appache tomcat from below location<\/p>\n<p>http:\/\/archive.apache.org\/dist\/tomcat\/tomcat-5\/v5.5.36\/bin\/<\/p>\n<p>I used 5.5 for installation. Latest version is available for download<\/p>\n<p>Create a RHEL 6 server with packages for software development and Webserver in <\/p>\n<p>it. Redhat provides an option to choose the type of installation you require.<\/p>\n<p>Check below prerequisites are available before installation<\/p>\n<p> Requirements:<\/p>\n<p>    APR 1.2+ development headers (libapr1-dev package)<br \/>\n    OpenSSL 0.9.7+ development headers (libssl-dev package)<br \/>\n    JNI headers from Java compatible JDK 1.4+<br \/>\n    GNU development environment (gcc, make)<br \/>\n    JRE<\/p>\n<p>if you choos the right installation as mentioned above, all the prerequisites <\/p>\n<p>except JRE will be available in the system.<\/p>\n<p>JRE installation<\/p>\n<p>Search for Java SE Downloads in oracle site and download JRE from the site as <\/p>\n<p>below<\/p>\n<p>http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jre8-downloads-<\/p>\n<p>2133155.html<\/p>\n<p>(Above link might change in later course of time)<\/p>\n<p>I downloaded the below version<\/p>\n<p>O\/S\t\tSize\t\tFile<br \/>\nLinux x86\t40.47 MB  \tjre-8u20-linux-i586.rpm<\/p>\n<p>Install the rpm using<br \/>\nrpm -ivh jre-8u20-linux-i586.rpm<\/p>\n<p>After installation of the RPM<\/p>\n<p>use the below command to set the Java Home<\/p>\n<p>export JAVA_HOME=&#8221;\/usr\/java\/jre1.8.0_20&#8243;<\/p>\n<p>Go to the folder in which tomcat is decompressed<\/p>\n<p>find the following file and run the command<\/p>\n<p>\/home\/apache-tomcat-5.5.36\/bin\/startup.sh<\/p>\n<p># \/home\/apache-tomcat-5.5.36\/bin\/startup.sh<br \/>\nUsing CATALINA_BASE:   \/home\/apache-tomcat-5.5.36<br \/>\nUsing CATALINA_HOME:   \/home\/apache-tomcat-5.5.36<br \/>\nUsing CATALINA_TMPDIR: \/home\/apache-tomcat-5.5.36\/temp<br \/>\nUsing JRE_HOME:        \/usr\/java\/jre1.8.0_20<br \/>\nUsing CLASSPATH:       \/home\/apache-tomcat-5.5.36\/bin\/bootstrap.jar<\/p>\n<p>go to browser and check <\/p>\n<p>http:\/\/localhost:8080\/<\/p>\n<p>Bingo!!!!<\/p>\n<p>it should be working<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download Appache tomcat from below location http:\/\/archive.apache.org\/dist\/tomcat\/tomcat-5\/v5.5.36\/bin\/ I used 5.5 for installation. Latest version is available for download Create a RHEL 6 server with packages for software development and Webserver in it. Redhat provides an option to choose the type of installation you require. Check below prerequisites are available before installation Requirements: APR 1.2+ development [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3,4],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-information-technology","category-redhat"],"_links":{"self":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219"}],"version-history":[{"count":1,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions\/220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/media\/221"}],"wp:attachment":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}