as 4 中的自带的JAVA 1.4.2 Gcc
在自己的PROFILE 加入
which java,看看是哪个java文件,我记得Linux自带了一个java,在/usr/bin下边有一个java脚本
发现这个是一个 java 1.4.2-gcj-compat -JPackage runtime scripts for gcj
java version "1.4.2"
gcj (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
自己安装一个
j2sdk-1_4_2_04-linux-i586.bin
chomd +x j2sdk-1_4_2_04-linux-i586.bin
./j2sdk-1_4_2_04-linux-i586.bin
然后看一些文档 协议
出现
Do you agree to the above license terms? [yes or no]
yes
unpacking 文件
inflating: j2sdk1.4.2_04/demo/applets/Animator/Animator.java
inflating: j2sdk1.4.2_04/demo/applets/Animator/Animator.class
inflating: j2sdk1.4.2_04/demo/applets/Animator/Animation.class
inflating: j2sdk1.4.2_04/demo/applets/Animator/ParseException.class
inflating: j2sdk1.4.2_04/demo/applets/Animator/AnimationFrame.class
inflating: j2sdk1.4.2_04/demo/applets/Animator/DescriptionFrame.class
creating: j2sdk1.4.2_04/demo/applets/ArcTest/
。。。。。。。
Creating j2sdk1.4.2_04/lib/tools.jar
Creating j2sdk1.4.2_04/jre/lib/rt.jar
Creating j2sdk1.4.2_04/jre/lib/jsse.jar
Creating j2sdk1.4.2_04/jre/lib/charsets.jar
Creating j2sdk1.4.2_04/jre/lib/ext/localedata.jar
Creating j2sdk1.4.2_04/jre/lib/plugin.jar
Creating j2sdk1.4.2_04/jre/javaws/javaws.jar
安装成功
JAVA -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
HD-DATA:/home2/headof/maintain>
#JAVA_HOME=/usr/local/jdk1.5.0; export JAVA_HOME
JAVA_HOME=/usr/local/j2sdk1.4.2_04; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:/usr/local/tomcat5/common/lib/classes12.zip:$HOME/tomcat5/common/
ib/jsp-api.jar:$HOME/tomcat5/common/lib/servlet-api.jar
export CLASSPATH
as 4 中的自带的运行MYSQL 4.1.7
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 5 to server version: 4.1.7
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
在系统中加入 让他自启动
/etc/rc2.d
K36mysqld -> ../init.d/mysqld
在系统中加入 让他自关闭
/etc/rc5.d
S64mysqld -> ../init.d/mysqld
安装TOMCAT 5.5.20 版本
apache-tomcat-5.5.20.tar
tar -xvf apache-tomcat-5.5.20.tar
安装ADMIN包
apache-tomcat-5.5.20-admin.tar
tar -xvf apache-tomcat-5.5.20-admin.tar
建立LINUX 快接方式
ln -s apache-tomcat-5.5.20 tomcat5
注:ln -s 原来文件 目标文件
改变用户的所以者
chown -R xjy:xjy /usr/local/tomcat5
启动tomcat
说明版本 不匹配
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
重新安装一个 tomcat 5.0.12 版本的tomcat5
tar -xvf jakarta-tomcat-5.0.12.tar
ln -s jakarta-tomcat-5.0.12 tomcat5
进入BIN 目录
SZ_TOMCAT:/usr/local/tomcat5/bin> ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat5
Using CATALINA_HOME: /usr/local/tomcat5
Using CATALINA_TMPDIR: /usr/local/tomcat5/temp
Using JAVA_HOME: /usr/local/j2sdk1.4.2_04
http://148.20.40.5:8080
看到结果了
好了
哈哈哈