Installing Tomcat Under Linux

I l @ ve RuBoard

As with the other packages, installing Tomcat is essentially the same under Linux as under Windows.

Downloading the Distribution

Point your browser totohttp://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/ and select the noarch rpm file and the webapps rpm file.

Save the files to /tmp.

Unpacking the Distribution

cd to /tmp and, as root, run the following:

 #  rpm install tomcat4-4.0.1-1.noarch.rpm  Don't forget to setup vars in /etc/tomcat4/conf/tomcat4.conf to adapt the RPM to your JDK for example. As supplied we assume you're using IBM JDK 1.3.0 For security purposes, tomcat is no more activated by default so don't forget to use chkconfig under root : /sbin/chkconfig add tomcat4 #  /sbin/chkconfig add tomcat4  # rpm install tomcat4-webapps-4.0.1-1.noarch.rpm 

This installs Tomcat to /etc/tomcat4 and /var/tomcat4.

Editing the /etc/tomcat4/tomcat.conf File

As root, edit /etc/tomcat4/conf/tomcat.conf and set the value for JAVA_HOME as appropriate (the location where you unpacked the JDK).

Testing Tomcat

As root, try /etc/init.d/tomcat4 start . Open a browser and point it to http://localhost:8180/ . You should see the Web page shown in Figure A.1.

As with Windows, it's almost impossible to mess up this install. Check your PATH variable if it doesn't seem to work.

I l @ ve RuBoard


MySQL and JSP Web Applications. Data-Driven Programming Using Tomcat and MySQL
MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL
ISBN: 0672323095
EAN: 2147483647
Year: 2002
Pages: 203
Authors: James Turner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net