zoukankan      html  css  js  c++  java
  • 修改weblogic11g的JDK版本

    1:进入Weblogic域文件夹下面

    [wzh@localhost bin]$ pwd
    /app/wzh/oracle/middleware/user_projects/domains/base_domain/bin
    [wzh@localhost bin]$ ll
    total 36
    drwxr-x--- 2 wzh wzh 26 Nov 30 2015 nodemanager
    drwxr-x--- 2 wzh wzh 27 Nov 30 2015 server_migration
    drwxr-x--- 2 wzh wzh 23 Nov 30 2015 service_migration
    -rwxr-x--- 1 wzh wzh 13254 Nov 30 2015 setDomainEnv.sh
    -rwxr-x--- 1 wzh wzh 3217 Nov 30 2015 startManagedWebLogic.sh
    -rwxr-x--- 1 wzh wzh 5739 Dec 27 18:01 startWebLogic.sh
    -rwxr-x--- 1 wzh wzh 2444 Nov 30 2015 stopManagedWebLogic.sh
    -rwxr-x--- 1 wzh wzh 1986 Nov 30 2015 stopWebLogic.sh

    2:修改startWebLogic.sh配置文件

    # START WEBLOGIC

    echo "starting weblogic with Java version:"

    export JAVA_HOME=/usr/local/java/jdk1.7.0_80

    ${JAVA_HOME}/bin/java ${JAVA_VM} -version

    增加:

    export JAVA_HOME=/usr/local/java/jdk1.7.0_80

    保存重启Weblogic服务。

    3:查看是否修改成功

    [wzh@localhost bin]$ ps -ef | grep java
    wzh 28737 28683 9 18:02 pts/0 00:00:25 /usr/local/java/jdk1.7.0_80/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/app/wzh/oracle/middleware/wlserver_10.3/server/lib/weblogic.policy -Xverify:none -da -Dplatform.home=/app/wzh/oracle/middleware/wlserver_10.3 -Dwls.home=/app/wzh/oracle/middleware/wlserver_10.3/server -Dweblogic.home=/app/wzh/oracle/middleware/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/app/wzh/oracle/middleware/patch_wls1036/profiles/default/sysext_manifest_classpath:/app/wzh/oracle/middleware/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server
    wzh 28870 26783 0 18:06 pts/0 00:00:00 grep --color=auto java
    [wzh@localhost bin]$

  • 相关阅读:
    手把手玩转win8开发系列课程(5)
    一道百度之星编程大赛题的随笔联想·(2)
    手把手玩转win8开发系列课程(7)
    手把手玩转win8开发系列课程(10)
    一道百度之星编程大赛题的随笔联想·(1)
    手把手玩转win8开发系列课程(6)
    手把手玩转win8开发系列课程(9)
    手把手玩转win8开发系列课程(3)
    Innodb 表修复
    NoSQL之【Redis】学习(二):配置说明
  • 原文地址:https://www.cnblogs.com/yshyee/p/6226970.html
Copyright © 2011-2022 走看看