ali aboos

Linux: Apache Tomcat tips and tricks

by on Nov.16, 2008, under Linux

JAVA_HOME or JRE_HOME variables are not defined:

Edit bash_profile for the user running Tomcat:
nano ~/.bash_profile

Add the following line and edit to point to correct directory:
export JRE_HOME=/usr/local/jre

Save and exit, then execute the following command:
source ~/.bash_profile

Running Apache Tomcat on privileged ports (lower then 1024) as non-root user:

The best way is to set an iptables rule to forwards incoming requests from port 80 to 8080:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
or setup apache with mod_jk connector to pass http requests to tomcat

CC0 1.0 To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.

:, , , ,

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

Search InsaneLabs.com

Can't find what you're looking for? Drop a comment on a post or email (ali aht insanelabs doht com)

Links

Links open in a new window