Linux RHEL5.4 64系统下的JDK1.6和Tomcat的安装

 

 

首页Linux教程

背景:

阅读新闻

Linux RHEL5.4 64系统下的JDK1.6和Tomcat的安装

[日期:2011-01-27]   来源:Linux社区  作者:michael7768   [字体:]  

RedHat Linux AS4.6 (x86-64)

  ftp://211.68.71.80/pub/os-images/Redhat/RHEL4u6/RH EL4.6-x86_64-AS-DVD.iso
(for Linux_x86_64)

   n/apache-tomcat-6.0.18.tar.gz

  

  3、
  # mkdir /opt/software

  4、 jdk-6u13-linux-x64.bin
  apache-tomcat-6.0.18.tar.gz

  1、JDK

  #cd /opt/software

  #chmod +x jdk-6u13-linux-x64.bin

  #cd /usr/local

  #/opt/software/ jdk-6u13-linux-x64.bin

  


Press Enter to continue……


 /usr/local目jdk1.6.0_13
JAVA_HOM

  # vi /etc/profile

  export JAVA_HOME=/usr/local/jdk6

  export PATH=$PATH:$JAVA_HOME/bin:$PATH

  export CLASSPATH=.:$JAVA_HOME/lib.dt.jar:$JAVA_HOME/lib/t ools.jar

  export JRE_HOME=$JAVA_HOME/jre

  4、Tomcat,apache-tomcat-6.0.18.tar.gz   /usr/local

  # cd /usr/local

  # cp /opt/software/apache-tomcat-6.0.18.tar.gz /usr/local

  # tar zvxf apache-tomcat-6.0.18.tar.gz

  # rm apache-tomcat-6.0.18.tar.gz

  5、

  # ln -sf /usr/local/jdk1.6.0_13 /usr/local/jdk6

  # ln -sf /usr/local/apache-tomcat-6.0.18 /usr/local/tomcat

  # ln -sf /usr/local/tomcat/bin/startup.sh /usr/bin/tomcat-up

  # ln -sf /usr/local/tomcat/bin/shutdown.sh /usr/bin/tomcat-down

  6、CATALINA_HOME,/etc/profile

  # vi /etc/profile

  export CATALINA_HOME=/usr/local/tomcat

  7、

  # cd ~

  # vi .bash_profile

  # .bash_profile

  # Get the aliases and functions

  if [ -f ~/.bashrc ]; then

  . ~/.bashrc

  fi

  # User specific environment and startup programs

  PATH=$PATH:$HOME/bin

  JAVA_HOME=/usr/local/jdk6

  CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib

  TOMCAT_HOME=/usr/local/tomcat

  CATALINA_BASE=$TOMCAT_HOME

  CATALINA_HOME=$TOMCAT_HOME

  PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME /bin

  PATH=$PATH:$HOME/bin

  BASH_ENV=$HOME/.bashrc

  USERNAME="root"

  export USERNAME BASH_ENV JAVA_HOME CLASSPATH CATALINA_BASE CATALINA_HOME

PATH
  # init 6 /reboot

  9、shell

  # java -version

  

  10、Tomcat

  # tomcat-up run&

  # tomcat-down

  11、tomcat ::8080 tomcat

  三、Tomcat

  1、/usr/local/tomcat/bin/catalina.sh   /etc/rc.d/init.d/tomcat

  #cp /usr/local/tomcat/bin/catalina.sh /etc/rc.d/init.d/tomcat

  2、/etc/rc.d/init.d/tomcat

  #vi /etc/rc.d/init.d/tomcat

  

  # chkconfig:2345 63 37

  #description:tomcat server init script

 #CATALINA_HOME

  CATALINA_HOME=/usr/local/tomcat

  JRE_HOME=/usr/local/jdk6/jre

  3、tomcatService

  # chkconfig --add tomcat

  4、tomcatservice

  #chkconfig --list tomcat

  5、tomcat tomcat
  # service tomcat start

  # ps -e | grep java

  

  5925 pts/0 00:00:03 java

在RedHat Enterprise Linux 5.4(RHEL5.4)版本上安装GCC

在RedHat Linux编译安装php常见问题解决

相关资讯       RHEL 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/25263.html