How to install tomcat 7 on centos

ARUN Post in TOMCAT
0

Download JDK self extracting package ( Linux x64 – Self Extracting Installer) from 

http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html

wget -O jdk-6u26-linux-x64.bin http://download.oracle.com/otn-pub/java/jdk/6u26-b03/jdk-6u26-linux-x64.bin

mv jdk-6u26-linux-x64.bin /opt/

mkdir /usr/java

cd /usr/java

chmod 755 jdk-6u26-linux-x64.bin

sh /opt/jdk-6u26-linux-x64.bin

[[email protected] java]# JAVA_HOME=/usr/java/jdk1.6.0_26/

[[email protected] java]# export JAVA_HOME  

[[email protected] java]# PATH=$JAVA_HOME/bin:$PATH  

[[email protected] java]# export PATH  

 

vi /etc/profile

+++++++++++++++++++++++++++++

JAVA_HOME=/usr/java/jdk1.6.0_26  

export JAVA_HOME  

PATH=$JAVA_HOME/bin:$PATH  

export PATH  

++++++++++++++++++++++++

Download and Unpack Tomcat

 

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.