Tomcat源码安装

1、准备源码安装包

官网:https://tomcat.apache.org/

 

2、上传安装包到linux中,并解压

 

[root@node1 ~]# cd /usr/local/src/

[root@node1 src]# ll

total 9424

-rw-r--r--. 1 root root 9648795 Jun 3 14:48 apache-tomcat-7.0.104.tar.gz

[root@node1 src]# tar -zxvf apache-tomcat-7.0.104.tar.gz

 

3、查看java是否安装

 

[root@node1 ~]# rpm -qa |grep java

tzdata-java-2015e-1.el6.noarch

java-1.6.0-openjdk-1.6.0.35-1.13.7.1.el6_6.i686

java-1.7.0-openjdk-1.7.0.79-2.5.5.4.el6.i686

[root@node1 ~]# java -version

java version "1.7.0_79"

OpenJDK Runtime Environment (rhel-2.5.5.4.el6-i386 u79-b14)

OpenJDK Client VM (build 24.79-b02, mixed mode, sharing)

4、启动tomcat

 

[root@node1 ~]# /usr/local/src/apache-tomcat-7.0.104/bin/startup.sh

Using CATALINA_BASE: /usr/local/src/apache-tomcat-7.0.104

Using CATALINA_HOME: /usr/local/src/apache-tomcat-7.0.104

Using CATALINA_TMPDIR: /usr/local/src/apache-tomcat-7.0.104/temp

Using JRE_HOME: /usr

Using CLASSPATH: /usr/local/src/apache-tomcat-7.0.104/bin/bootstrap.jar:/usr/local/src/apache-tomcat-7.0.104/bin/tomcat-juli.jar

Tomcat started.

5、测试

 

posted @ 2020-06-03 15:01  jeancheng  阅读(976)  评论(0编辑  收藏  举报