How to get tomcat working on linux
How to get tomcat working on Linux.
Apache Tomcat, often referred to as Tomcat Server, is an open-source Java Servlet Container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a "pure Java" HTTP web server environment in which Java code can run.
1. Install the Java.
yum install java or you can download the java 64 bit rpm for linux.
2. Check the Java Version
[root@localhost ~]# java -versionopenjdk version "1.8.0_65"OpenJDK Runtime Environment (build 1.8.0_65-b17)OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode)
3. Download apache-tomcat-7.0.27.
4. your Server.xml should have following Entries for auto deploying war once tomcat start. Otherwise if you have to start from the Management interface.
unpackWARs="true" autoDeploy="true">
5. Start tomcat.
/usr/local/apache-tomcat-7.0.27/bin/tomcat start
6. you can access the tomcat manager From Following link.
http://localhost:8080/manager/html/list
7. You need to Edit Following files For Access to Tomcat Management Page.
/usr/local/apache-tomcat-7.0.27/conf/tomcat-users.xml
No comments