NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Installing Tomcat
Topic:Web   Date: 2004-01-24
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

Tomcat is part of the Apache Project. Tomcat, which is free and open-source, can serve up JavaServer Pages (JSP). For more info on this, see J2EE JavaServer Pages Technology. The JavaServer Pages FAQ is here. We were a bit lazy, and grabbed a binary from here. Make sure you have Java installed. We installed Java in this article. Let's extract the binary:

[root@srv-1 opt]# ls
j2sdk  j2sdk1.4.2_03  jakarta-tomcat-5.0.18.tar.gz  lost+found
[root@srv-1 opt]# tar -xzf jak*.gz

Make a symbolic link to tomcat:

[root@srv-1 opt]# ln -s jakarta-tomcat-5.0.18 tomcat

Let's set up some environment variables and a path. In /etc/profile:

CATALINA_HOME="/opt/tomcat"
export PATH CATALINA_HOME JAVA_HOME USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

Load the new profile:

[root@srv-1 opt]# source /etc/profile

Let's start up Tomcat:

[root@srv-1 opt]# cd tomcat
[root@srv-1 tomcat]# ls
bin     conf     logs           RUNNING.txt  shared  webapps
common  LICENSE  RELEASE-NOTES  server       temp    work
[root@srv-1 tomcat]# cd webapps
[root@srv-1 webapps]# ../bin/startup.sh
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME:       /opt/j2sdk
[root@srv-1 webapps]# 

We can verify this at http://srv-1:8080/:



We have Tomcat running!


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2011 NetAdminTools.com