Playing with Apache TomCat
Apache TomCat or simply TomCat should not be confused with Apache web server. They are not bundled together but it is another fact that they are used together frequently. Apache TomCat is an open source servlet container developed by the Apache Software Foundation. Tomcat implements the Java Servlet and the JSP specifications to provide a "pure Java" HTTP web server environment for Java code to run.
Installing Apache Tomcat on Linux
Download JDK, the latest stable one that I have downloaded is 7
Installation of Java SE Development Kit 7
Downloading jdk 7
[root@centos garbage]# wget http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.rpm
Installing jdk 7
[root@centos garbage]# rpm -ivh jdk-7-linux-i586.rpm
Verifying installation
[root@centos garbage]# java
[root@centos garbage]# java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
Downloading & installing TomCat
The latest stable release at the time this howto is written is TomCat 7.0.21
Downloading Tomcat
[root@centos garbage]# wget http://www.apache.org/dist/tomcat/tomcat-7/v7.0.21/bin/apache-tomcat-7.0.21.tar.gz
Extracting
[root@centos garbage]# tar vxzf apache-tomcat-7.0.21.tar.gz
[root@centos garbage]# cd apache-tomcat-7.0.21
Playing with TomCat
[root@centos apache-tomcat-7.0.21]# cd bin
Starting Tomcat
[root@centos bin]# ./startup.sh
Stopping Tomcat
[root@centos bin]# ./shutdown.sh
Now point your web browser
http://yoursitename:8080
you should see the Tomcat Administration page.
Now to add remove users got to "conf" directory under Apache tomcat directory and add/remove required users by editing & appending the below line as per your needs .
<user name="desired_Username" password="desired_passwd" roles="admin,manager,tomcat"/>
Comments
Post a Comment