Java Configuration

Java JDK and JRE can be found in

/usr/java/jdk1.5.0_10
/usr/java/jre1.5.0_10

JBoss Application Server Configuration

Configure ChartDirector for Graphing CGI's

Copy the entire ChartDirector directory from devserver/testserver to the /usr/lib folder.

[test@testserver lib]$ scp -r ChartDirector/ root@10.199.199.125:/usr/lib

Forwarding Incoming Port 80 requests to Port 8080

If you want to use iptables to forward incoming requests on port 80 to Tomcat on port 8080, run these commands to setup an iptable rule:

# install the iptables applications if they are not already there
apt-get -y install iptables
# prevent Apache from running on startup
chkconfig --del httpd
# stop Apache from running right now
/etc/rc.d/init.d/httpd stop
# tell iptables to forward incoming requests on port 80 to tomcat
/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
# save the iptable rules
/sbin/iptables-save
# make sure iptables starts up by default after a server restart
chkconfig --level 35 iptables on

You may get a QM_MODULES warning. You can safely ignore that. Our VPS servers are built without modules and with the iptable features built into kernel itself. The iptables scripts just do not detect that modules are not available and do not know to skip that step.

If you decide to turn off your iptables rules, run this:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
/sbin/iptables-save
# make sure iptables starts up by default after a server restart
chkconfig --level 35 iptables off

But all above is not permanent. Edit /etc/sysconfig/iptables file and add the following content to the top of the file

# Generated by iptables-save v1.3.0 on Mon Mar 19 04:23:18 2007
*nat
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
COMMIT

prod1 setup (last edited 2007-03-21 16:23:53 by mark)