Contact Systems Misc |
Table of ContentsIntroductionTomcat is a container for JavaServer Pages™ (JSP™) and Java™ Servlets. For instructional use, each user will need to install their own server in their home directory. This is done with the command tomcatctl installThe command install_tomcat creates a tomcat directory (~/tomcat-home) and sets up the initial configuration. jdash@ix: ~ 24$ tomcatctl install Installed data versions: This script is designed to setup an individual tomcat server Extracting appropriate files. This includes the examples. You should have already been assigned a port to use. input port number 2222 <<<<<< This port number is supplied by your instructor -- This account has been setup for tomcat. All tomcat files are located in ~/tomcat-6.0.13. If you already had a tomcat-homeIf you had previously installed tomcat you'll get a message like this: jdash@ix: ~ 25$ tomcatctl install Installed data versions: 6.0.13 This script is designed to setup an individual tomcat server This account has already been setup for the following versions of tomcat: 6.0.13 Do you wish to proceed [y/n]? n If you decide to install a new Tomcat anyway, the install script will install over your tomcat-home directory. It doesn't delete the old directory first so your files should remain. You may want to save your additions in ~/tomcat-home/webapps or ~/tomcat-home/lib to a safe place first. tomcatctl startThe command jdash@ix: ~ 26$ tomcatctl start Installed data versions: 6.0.13 starting tomcat-6.0.13 Your URL is http://ix.cs.uoregon.edu:2222, where the port number (2222 in this example) is the port number you entered to the install script. tomcatctl stopThe command jdash@ix: ~ 27$ tomcatctl stop Installed data versions: 6.0.13 stopping tomcat-6.0.13 tomcatctl statusYou can use jdash@ix: ~ 18$ tomcatctl status Installed data versions: 6.0.13 tomcat-6.0.13:7676 (proc 9997) is working. If the server is not running the results will look like this: jdash@ix: ~ 22$ tomcatctl status Installed data versions: 6.0.13 You can also use any web browser to check the status of your server. jdash@ix: ~ 19$ lynx -dump -head http://ix.cs.uoregon.edu:7676 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 ETag: W/"7354-1178329344000" Last-Modified: Sat, 05 May 2007 01:42:24 GMT Content-Type: text/html Content-Length: 7354 Date: Wed, 08 Aug 2007 22:47:20 GMT Connection: close External Links |