[lug] tomcat5.5 as daemon on FC4

George Sexton gsexton at mhsoftware.com
Sat Nov 26 11:41:24 MST 2005



  

> -----Original Message-----
> From: lug-bounces at lug.boulder.co.us 
> [mailto:lug-bounces at lug.boulder.co.us] On Behalf Of Hugh M. Brown
> Sent: Saturday, November 26, 2005 6:50 AM
> To: Boulder (Colorado) Linux Users Group -- General Mailing List
> Subject: Re: [lug] tomcat5.5 as daemon on FC4
> 
> The redhat scripts are just a glorified wrapper for su.  With su, you
> won't be able to bind to any <1024 port numbers.  So, if  you aren't
> planning on running tomcat on port 80 or 443, then you can just su -
> tomcat -c /tomcat/startup.sh
> 
> Otherwise, you'll need jsvc which can be used to bind to the 
> low number
> ports and then drop privileges
> 

The other approach is to run tomcat on the high ports, and then use an
IPTABLES rule to redirect the requests from port 80 to the correct port.

I do this and it works very well.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585





More information about the LUG mailing list