日期:2011-02-23 18:06:00  来源:本站整理

<b>CentOS 5.4安装Tomcat 6.0.18全程文字记录</b>[服务器安全]

赞助商链接



  本文“<b>CentOS 5.4安装Tomcat 6.0.18全程文字记录</b>[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

Last login: Thu Dec 10 19:04:29 2009 from 192.168.1.81
[root@CentOS ~]# cd /opt/soft/Tomcat/
[root@CentOS Tomcat]# ls -l
total 85972
-rw-r--r-- 1 root root 6142197 Apr 6 2009 apache-tomcat-6.0.18.tar.gz


-rw-r--r-- 1 root root 81792634 Nov 9 16:38 jdk-6u17-linux-i586.bin


#为了可以安装JDK,需求赐与JDK的安装文件运行权限

[root@CentOS Tomcat]# chmod 777 jdk-6u17-linux-i586.bin
[root@CentOS Tomcat]# ls -l
total 85972
-rw-r--r-- 1 root root 6142197 Apr 6 2009 apache-tomcat-6.0.18.tar.gz
-rwxrwxrwx 1 root root 81792634 Nov 9 16:38 jdk-6u17-linux-i586.bin

#下面安装JDK

[root@CentOS Tomcat]# ./jdk-6u17-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

……中间的部份省略……

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).

……中间的部份省略……

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue.....


Done.
[root@CentOS Tomcat]# ls
apache-tomcat-6.0.18.tar.gz jdk1.6.0_17 jdk-6u17-linux-i586.bin

#将JDK移动到/usr/local/java目录

[root@CentOS Tomcat]# mv jdk1.6.0_17 /usr/local/java
[root@CentOS Tomcat]# ls
apache-tomcat-6.0.18.tar.gz jdk-6u17-linux-i586.bin
[root@CentOS Tomcat]# ls -l
total 85972
-rw-r--r-- 1 root root 6142197 Apr 6 2009 apache-tomcat-6.0.18.tar.gz
-rwxrwxrwx 1 root root 81792634 Nov 9 16:38 jdk-6u17-linux-i586.bin

#至此,JDK安装完成,下面安装Tomcat.

[root@CentOS Tomcat]# tar -zxvf apache-tomcat-6.0.18.tar.gz
apache-tomcat-6.0.18/bin/catalina.sh
apache-tomcat-6.0.18/bin/digest.sh
apache-tomcat-6.0.18/bin/setclasspath.sh

……中间的部份省略……

apache-tomcat-6.0.18/webapps/manager/sessionsList.jsp
apache-tomcat-6.0.18/webapps/manager/status.xsd
apache-tomcat-6.0.18/webapps/manager/xform.xsl
[root@CentOS Tomcat]# ls
apache-tomcat-6.0.18 apache-tomcat-6.0.18.tar.gz jdk-6u17-linux-i586.bin

#将TOMCAT移动到/usr/local/tomcat目录下.

[root@CentOS Tomcat]# mv apache-tomcat-6.0.18 /usr/local/tomcat

#编辑/etc/profile文件,增添TOMCAT的环境变量.

[root@CentOS local]# vi /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

……中间的部份省略……

unset pathmunge
export JAVA_HOME=/usr/local/java
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin
export TOMCAT_HOME=/usr/local/tomcat
export CATALINA_HOME=/usr/local/tomcat
export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib

"/etc/profile" 65L, 1317C written
[root@CentOS usr]# cd /usr/local/tomcat/bin
[root@CentOS bin]# ls
bootstrap.jar catalina-tasks.xml digest.bat service.bat shutdown.bat startup.sh tomcat-juli.jar tool-wrapper.sh
catalina.bat commons-daemon.jar digest.sh setclasspath.bat shutdown.sh tomcat6.exe tomcat-native.tar.gz version.bat
catalina.sh cpappend.bat jsvc.tar.gz setclasspath.sh startup.bat tomcat6w.exe tool-wrapper.bat version.sh
[root@CentOS bin]# ./startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

#设置的环境变量没有见效,需求重新登陆才可以.

[root@CentOS bin]# exit
logout
Last login: Fri Dec 11 09:43:57 2009 from 192.168.1.81
[root@CentOS ~]# cd /usr/local/tomcat/bin
[root@CentOS bin]# ls
bootstrap.jar catalina-tasks.xml digest.bat service.bat shutdown.bat startup.sh tomcat-juli.jar tool-wrapper.sh
catalina.bat commons-daemon.jar digest.sh setclasspath.bat shutdown.sh tomcat6.exe tomcat-native.tar.gz version.bat


  以上是“<b>CentOS 5.4安装Tomcat 6.0.18全程文字记录</b>[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • <b>hosts是什么 hosts文件在什么位置 若何改正hosts</b>
  • <b>在 Windows 8 中手动安装语言包</b>
  • <b>五个常见 PHP数据库问题</b>
  • Windows中Alt键的12个高效快速的利用本领介绍
  • <b>MySQL ORDER BY 的实现解析</b>
  • <b>详解MySQL存储历程参数有三种范例(in、out、inout)</b>
  • <b>Win8系统恢复出来经典的开始菜单的办法</b>
  • <b>Win8系统花屏怎么办 Win8系统花屏的办理办法</b>
  • <b>Windows 7系统下无线网卡安装</b>
  • <b>为什么 Linux不需求碎片整理</b>
  • <b>Windows 8中删除账户的几种办法(图)</b>
  • <b>教你如安在win7下配置路由器</b>
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .