Posts

Showing posts from September, 2011

Playing with Apache TomCat

Apache Tomcat, often referred to simply as Tomcat, should not be confused with the Apache web server. While they are frequently used together, they are separate entities. Apache Tomcat is an open-source servlet container developed by the Apache Software Foundation, implementing the Java Servlet and JSP specifications to provide a "pure Java" HTTP web server environment for Java applications. Installing Apache Tomcat on Linux First, download the latest stable version of the JDK. For this guide, we will use JDK 7. Installing Java SE Development Kit 7 Download JDK 7: [root@centos garbage]# wget http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.rpm Install JDK 7: [root@centos garbage]# rpm -ivh jdk-7-linux-i586.rpm Verify the 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)...

Demonstrating your play ground

Sometimes you may want to share what you're doing in the terminal with others. To do this, switch to the shell you want to display and use the following command: # shell_name -i |& tee /tmp/show For example: # bash -i |& tee /tmp/show Others can then view your terminal activities by typing: $ tail -f /tmp/show