IndianWebPortal.com

Something Different In Linux

Home » Tomcat » Installation Of Java And Tomcat

Installation Of Java And Tomcat

Posted by Rishikesh Vispute Categories: Tomcat

How To Install Java
Download j2sdk-1.4.2 from Sun Download center http://developers.sun.com/downloads/ 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
#./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/
#wget http://bluedogfan.com/mirrors/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
#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
#./configure
#make
#cp jsvc ..
#cd .

then open the port 8080 in the firewall and check the URL  http://serverip:8080


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...