Installation Of Java And Tomcat

How To Install Java
Download j2sdk-1.4.2 from Sun Download center Here I have used j2sdk-1_4_2_18-linux-i586-rpm.bin which will install j2sdk using RPMS and set the Path of JAVA_HOME automatically
#chmod +x j2sdk-1_4_2_09-linux-i586.bin
Now Check if Java is installed on the server using command java -version
[root@vps907 ~]# java -version
java version “1.6.0_07?
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing
How To Install Tomcat
Tomcat can be installed in any platforms, Linux, Windows or Macintosh as long as there’s Java runtime installed on the machine. Compared to some of the other servers and services like Apache and Samba, Tomcat is relatively easy to install and configure in any linux distribution.
To install Tomcat directly from the source, we need to have the latest JDK and ant tool available on the system. Depending on the linux distribution, JDK might already be installed in the system
You can install tomcat manually as well as by using easy apache.
Download Tomcat
Now Download Tomcat from Apache Website and exract it
#cd /usr/local/
#tar -zxvf apache-tomcat-6.0.18.tar.gz
Create Symlink for the Tomcat Folder
#ln -s /usr/local/apache-tomcat-6.0.18 /usr/local/apache/tomcat
Install Tomcat
#cd apache-tomcat-6.0.18
#cd bin
#tar xvfz jsvc.tar.gz
#cd jsvc-src
#chmod +x configure
#cp jsvc ..
#cd .
then open the port 8080 in the firewall and check the URL  http://serverip:8080

Related posts

Leave a Comment