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

Tomcat installation configuration

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Install Tomcat notes:

Software:

Jdk:jdk-8u5-linux-i586.gz

Download address: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-i586.tar.gz?AuthParam=1403144208_59294832a3097c8f36b5e2e2df5e340a

Download more versions of jdk: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Tomcat:apache-tomcat-6.0.41.tar.gz

Download address: http://apache.fayea.com/apache-mirror/tomcat/tomcat-6/v6.0.41/bin/apache-tomcat-6.0.41.tar.gz

[root@node1 bin] # rpm-qa | grep java / / check whether the jdk of the rpm package is installed on the current system

Java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64

Java_cup-0.10k-5.el6.x86_64

Gcc-java-4.4.7-4.el6.x86_64

[root@node1 bin] # rpm-e java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64-- nodeps / / Uninstall jdk installed by rpm

1. Install and configure jdk

1. Decompress and move to / usr/local

[root@node1 tmp] # tar-xf jdk-8u5-linux-i586.gz

[root@node1 tmp] # mv jdk1.8.0_05/ / usr/local/jdk

2. Set the java environment variable

[root@node1 tmp] # vi / etc/profile

JAVA_HOME=/usr/local/jdk

PATH=$PATH:$JAVA_HOME/bin

CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

Export JAVA_HOME CLASSPATH

[root@node1 tmp] # source / etc/profile

3. Check whether jdk is effective.

[root@node1 tmp] # java-version

Java version "1.8.00.05"

Java (TM) SE Runtime Environment (build 1.8.0_05-b13)

Java HotSpot (TM) Client VM (build 25.5-b02, mixed mode)

2. Install and configure tomacat

1. Decompress and move to / usr/local

[root@node1 tmp] # tar xf apache-tomcat-6.0.41.tar.gz

[root@node1 tmp] # mv apache-tomcat-6.0.41 / usr/local/tomcat

2. Set the tomcat environment variable

[root@node1 tmp] # vi / etc/profile

Export CATALINA_HOME= "/ usr/local/tomcat"

Export CATALINA_BASE= "/ usr/local/tomcat"

[root@node1 tmp] # source / etc/profile

3. Start tomcat

[root@node1 ~] # cd / usr/local/tomcat/bin/

[root@node1 bin] #. / startup.sh

Using CATALINA_BASE: / usr/local/tomcat

Using CATALINA_HOME: / usr/local/tomcat

Using CATALINA_TMPDIR: / usr/local/tomcat/temp

Using JRE_HOME: / usr/local/jdk

Using CLASSPATH: / usr/local/tomcat/bin/bootstrap.jar

[root@node1 local] # netstat-anlpt | grep java

Tcp 00:: ffff:127.0.0.1:8005: * LISTEN 3489/java

Tcp 00: 8009: * LISTEN 3489/java

Tcp 0 0: 8080: * LISTEN 3489/java

4. Visit tomcat

Http://ip:8080

5. Close tomcat

[root@node1 ~] # cd / usr/local/tomcat/bin/

[root@node1 bin] #. / shutdown.sh

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

Database

Wechat

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

12
Report