tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Zuzelski...@xatka.net>
Subject Re: One question about change port to 80
Date Wed, 30 Jun 2010 20:47:36 GMT
On Wed, 30 Jun 2010, Yue Yuanyuan wrote:

> I think i figure out what is going on. I need to run tomcat using root. But
> even I su to root and start tomcat using /etc/init.d/tomcat6 start. It
> stills runs under tomcat users.
> So how could I run it using root?

It is a bad idea. Just use iptables to redirect 80 to 8888.

iptables -A PREROUTING -t nat -p tcp -dport 80 -j REDIRECT --to-ports 8888

(not tested, see man iptables for details).

It is the simplest and the most reliable way to run tomcat on port 80.

-- 
Regards,
Paweł

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message