1.下载介质
download.oracle.com
2.编辑系统 jdk
2.1.查看 jdk 版本
[root@el02node14 weblogic]# rpm -qa | grep gcj
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
libgcj-4.1.2-54.el5
libgcj-4.1.2-54.el5
[root@el02node14 weblogic]# rpm -qa | grep jdk
[root@el02node14 weblogic]#
[root@el02node14 weblogic]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 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.
2.2.卸载原系统 jdk
[root@el02node14 weblogic]# rpm -e --nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
[root@el02node14 weblogic]# java -version
-bash: /usr/bin/java: No such file or directory
2.3.安装新jdk
2.3.1 从别的机器压缩 jdk 包
tar -cvf jdk.tar /usr/local/jdk/
2.3.2 传输到目标机器,进行解压
tar -xvf jdk.tar -C /usr/local/jdk/
2.3.3 修改/etc/profile
添加
export JAVA_HOME=/usr/local/jdk/jdk1.6.0_43
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
重新加载/etc/profile
source profile
2.3.4 验证
[root@el02node14 ~]# java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
3.创建weblogic 用户
mkdir -p /weblogic/Oracle
[root@el02node14 weblogic]# groupadd weblogic
[root@el02node14 weblogic]# useradd -g weblogic weblogic
Creating mailbox file: File exists
Passwd weblogic
weblogic
[root@el02node14 weblogic]# chown -R weblogic:weblogic /weblogic/Oracle
4.进行安装 (切换到 weblogic 用户)
[root@el02node14 weblogic]# export DISPLAY=10.135.43.50:0.0
[root@el02node14 weblogic]# java -jar wls1036_generic.jar
Extracting 0%....................................................................................................100%
出现图形界面,一路next 即可
5.weblogic 软件卸载
[root@el02node14 uninstall]# pwd
/weblogic/Oracle/Middleware/wlserver_10.3/uninstall
[root@el02node14 uninstall]# ./uninstall.sh
按界面卸载即可
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7569309/viewspace-2284919/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7569309/viewspace-2284919/