tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message