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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to