Posts

Showing posts from September, 2011

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) Down

Demonstrating your play ground

Some times you want to show the other people what you are doing in the terminal To do so go to the shell you want to show to the other people & use the following #shell_name -i |& tee /tmp/show i.e. #bash -i |& tee /tmp/show In other shells people can view what you are doing by just typing $tail -f /tmp/show