Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Tomcat 6. 0

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Tomcat 6. 0. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

System environment: CentOS 6.4x64 Bit

Tomcat download

Download the Tomcat version you need from the official website http://tomcat.apache.org/. At present, the main versions of Tomcat are Tomcat 6.0,7.0,8.00.Let 's take version 6.0,6.0.39 as an example to download the URL address: http://tomcat.apache.org/download-60.cgi. If you need to download other versions under Tomcat 6.0, Click the link address "Archives" http://archive.apache.org/dist/tomcat/tomcat-6/ to see the version you need.

JDK1.7.0_25 is not available at the download address of CentOS6.4 x64

Ftp://195.220.108.108/linux/sourceforge/o/os/osolinux/update/RPMS.j/jdk-1.7.0_25-fcs.x86_64.rpmTomcat6.0.39

Http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.zip

Install and configure JDK

JDK had better choose the right version, here I installed JDK1.7 for convenience and convenience.

[root@51inte tools] # rpm-ivh jdk-1.7.0_25-fcs.x86_64.rpm

Preparing... # [100%]

Configure environment variables, adding to the etc/profile file

[root@51inte tools] # vi / etc/profile

Export JAVA_HOME=/usr/java/jdk1.7.0_25

Export CLASSPATH=/usr/java/jdk1.7.0_25/lib

Export PATH=$JAVA_HOME/bin:$PATH

[root@51inte tools] # source / etc/profile

Install Tomcat

[root@51inte tools] # unzip apache-tomcat-6.0.39.zip

[root@51inte tools] # mkdir / usr/local/tomcat

[root@51inte tools] # mv apache-tomcat-6.0.39 / usr/local/tomcat

[root@51inte tools] # cd / usr/local/tomcat/apache-tomcat-6.0.39/bin & & chmod + x * .sh

[root@51inte bin] # vi / etc/profile

Export TOMCAT_HOME=/usr/local/tomcat

[root@51inte bin] # source / etc/profile

[root@51inte bin] # echo $TOMCAT_HOME

/ usr/local/tomcat

[root@51inte bin] #

[root@51inte bin] #. / startup.sh

Using CATALINA_BASE: / usr/local/tomcat/apache-tomcat-6.0.39

Using CATALINA_HOME: / usr/local/tomcat/apache-tomcat-6.0.39

Using CATALINA_TMPDIR: / usr/local/tomcat/apache-tomcat-6.0.39/temp

Using JRE_HOME: / usr/java/jdk1.7.0_25

Using CLASSPATH: / usr/local/tomcat/apache-tomcat-6.0.39/bin/bootstrap.jar

Then you can access it through http://IP:8080.

Thank you for reading! This is the end of this article on "how to install Tomcat 6.0". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report