Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jre.bin
cp jai-1_1_3-lib-linux-amd64-jre.bin /usr/java/jre1.7.0
cd /usr/java/jre1.7.0
sh jai-1_1_3-lib-linux-amd64-jre.bin

 

 

install tomcat 7

Code Block
yum install tomcat7

 

Update JAVA_HOME in tomcat config.

...

install tomcat 7

http://davidghedini.blogspot.com/2011/02/install-tomcat-7-on-centos-rhel.html

Code Block
wget http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.30/bin/apache-tomcat-7.0.30.tar.gz
cd /usr/share
tar xvfz ~/apache-tomcat-7.0.30.tar.gz

 

Configure tomcat startup

Code Block
#!/bin/bash
# description: Tomcat Start Stop Restart
# processname: tomcat
# chkconfig: 234 20 80
JAVA_HOME=/usr/java/jre1.7.0
sudo vim /usr/share/tomcat5/conf/tomcat5.conf
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CATALINA_HOME=/usr/share/apache-tomcat-7.0.30

case $1 in
start)
    sh $CATALINA_HOME/bin/startup.sh
;;
stop)
    sh $CATALINA_HOME/bin/shutdown.sh
;;
restart)
    sh $CATALINA_HOME/bin/shutdown.sh
    sh $CATALINA_HOME/bin/startup.sh
;;
esac
exit 0