文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > linux+jdk+tomcat+mysql免安装绿色版整合
侵权投诉

linux+jdk+tomcat+mysql免安装绿色版整合

linux+jdk+tomcat+mysql免安装绿色版整合

linux tomcat jdk mysql 免安装 绿色版整合
2011-05-27 10:13
jdk 下载解压:
1.到doc.guandang.net下载JDK 6 的linux版本jdk-6u22-linux-i586(自解压文件)

2.执行: ./jdk-6u14-linux-i586.bin 进行解压,解压后的文件目录名(示例)jdk1.6.0_22

tomcat下载解压
1.到doc.guandang.net下载tomcat的linux版本6.0.20,文件名(示例):apache-tomcat-6.0.20.tar.gz

2.到下载的文件所在的目录下,执行:tar -zxvf apache-tomcat-6.0.29.tar.gz,解压后的文件目录名为apache-tomcat-6.0.29

3.将解压好的文件夹拷贝到/usr/share/目录下,示例:mv apache-tomcat-6.0.29 /usr/share

4: 将jdk移动至/usr/share 或者tomcat目录下在此移动到tomcat目录下,为了下次不需要在作更改
mv jdk1.6.0_22 /usr/share/apache-tomcat-6.0.29

5:更改tomcat/bin目录下的startup.sh和shutdown.sh文件 加入红色的2句话,jdk的路径根据你实际的jdk路径来配置
vim startup.sh

#!/bin/sh

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# doc.guandang.net
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -----------------------------------------------------------------------------
# Start Script for the CATALINA Server
#
# $Id: startup.sh 562770 2007-08-04 22:13:58Z markt $
# -----------------------------------------------------------------------------
export JAVA_HOME=/usr/share/apache-tomcat-6.0.29/jdk1.6.0_22
export JRE_HOME=/usr/share/apache-tomcat-6.0.29/jdk1.6.0_22/jre
# Better OS/400 detection: see Bugzilla 31132
os400=false
darwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
Darwin*) darwin=true;;
esac

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
21,1 顶端

6:.进入/usr/share/apache-tomcat-6.0.29/bin目录,执行:./startup.sh 看启动是否正常 ,正常启动出现如下信息
Using CATALINA_BASE: /usr/share/apache-tomcat-6.0.29
Using CATALINA_HOME: /usr/share/apache-tomcat-6.0.29
Using CATALINA_TMPDIR: /usr/share/apache-tomcat-6.0.29/temp
Using JRE_HOME:

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email