tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angel, Ronald J" <rjan...@switch.com>
Subject RE: Who starts tomcat??
Date Mon, 21 Jan 2002 20:21:31 GMT

In Linux...

  Manually:
     Start & stop it via the startup.sh & shutdown.sh scripts in
../Tomcat/bin.

  Automatically:
     Create a script in /etc/rc.d/init.d which invokes the scripts mentioned
above
        based on a single argument (start or stop) (pattern it after an
existing one 
        such as httpd)
    Create links to it in the various directories for each run-level.
          /etc/rc.d/rcX.d  where X is 0-6  (do a man init for info on the
various levels)

   Note: This script is executed as root, therefore Tomcat will run as root,
if this
            is not desired use a command similar to the following:
                
                     su tomcatUser -c$TOMCAT_HOME/bin/startup.sh

	   This will start it as user 'tomcatUser'.  Since your root, the
user's
               password won't be needed.

HTH,
Ron

> -----Original Message-----
> From:	Emerson [SMTP:emerson@tre-sc.gov.br]
> Sent:	Monday, January 21, 2002 3:14 PM
> To:	Tomcat Users List
> Subject:	Re: Who starts tomcat??
> 
> but how do you start, automatically? where?
> 
> At 18:09 21/1/2002 +0000, you wrote:
> > --- Emerson <emerson@tre-sc.gov.br> wrote: > How you
> >guys start tomcat in linux??? as root??? in
> >> the initialization with
> >> apache????
> >> 
> >
> >
> >Well, during development phase its better to use
> >plain tomcat without an apache.(unless you want to
> >test apache's functionality too).
> >
> >Apache, since it binds to port 80, needs root.
> >tomcat listens at 8080 and hence it doesnt need root.
> >
> >HTH,
> >eb!
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Everything you'll ever need on one web page
> >from News and Sport to Email and Music Charts
> >http://uk.my.yahoo.com
> >
> >--
> >To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> >Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento 
> Tel: (48) 251-3700 - Ramal 3134
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message