Linux下部署Tomcat应用

摘要

Linux下部署Tomcat应用相关软件下载jdk      http://ww […]

Linux下部署Tomcat应用相关软件下载
jdk      http://www.Oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
tomcat    http://tomcat.apache.org/
 
解压jdk以及tomcat包
[[email protected] soft]# tar -zxvf apache-tomcat-8.0.30.tar.gz
[[email protected] soft]# tar -zxvf jdk-8u65-linux-x64.tar.gz
[[email protected] soft]# mv jdk-8u65-linux-x64.tar.gz jdk
[[email protected] soft]# mv apache-tomcat-8.0.30 tomcat
 
修改环境变量
进入/etc/profile中,加入下面4行数据
export JAVA_HOME=/soft/jdk
export JRE__HOME=/soft/jdk/jre
PATH=PATH:  PATH: JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=JAVA H OME/lib/dt.jar: JAVAHOME/lib/dt.jar: JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
 
 
进入/soft/tomcat/bin目录下,启动
[[email protected] bin]# ./startup.sh
Using CATALINA_BASE:  /soft/tomcat
Using CATALINA_HOME:  /soft/tomcat
Using CATALINA_TMPDIR: /soft/tomcat/temp
Using JRE_HOME:        /soft/jdk
Using CLASSPATH:      /soft/tomcat/bin/bootstrap.jar:/soft/tomcat/bin/tomcat-juli.jar
Tomcat started.
 
 
cat /soft/tomcat/logs/catalina.out
23-Jan-2016 15:11:41.130 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2827 ms
 
 
访问网页,http://ip:9999

Linux下部署Tomcat应用

更多Tomcat相关教程见以下内容

CentOS 6.6下安装配置Tomcat环境  http://www.searu.org/2015-08/122234.htm

RedHat Linux 5.5安装JDK+Tomcat并部署Java项目  http://www.searu.org/2015-02/113528.htm 

Tomcat权威指南(第二版)(中英高清PDF版+带书签)  http://www.searu.org/2015-02/113062.htm 

Tomcat 安全配置与性能优化 http://www.searu.org/2015-02/113060.htm 

Linux下使用Xshell查看Tomcat实时日志中文乱码解决方案 http://www.searu.org/2015-01/112395.htm 

CentOS 64-bit下安装JDK和Tomcat并设置Tomcat开机启动操作步骤 http://www.searu.org/2015-01/111485.htm 

CentOS 6.5下安装Tomcat  http://www.searu.org/2015-01/111415.htm 

Tomcat中session的管理机制  http://www.searu.org/2016-09/135072.htm

Tomcat 的详细介绍请点这里
Tomcat 的下载地址请点这里

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: