Tomcat源码安装

Posted jeancheng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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、测试

 

以上是关于Tomcat源码安装的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat源码安装

安装Tomcat到Linux(源码)

linux 源码安装tomcat7

shell脚本源码安装tomcat

Centos 7 Nginx+Keepalived+Tomcat 源码安装与运用

离线源码安装配置tomcat