zoukankan      html  css  js  c++  java
  • centos7安装weblogic12c

    1.创建用户和组

    # groupadd web

    # useradd -g web weblogic

    # passwd weblogic

    2.安装jdk1.8.0.211

    将jdk解压到/usr/java下

    配置环境变量:

    # cat /etc/profile.d/java.sh
    JAVA_HOME=/usr/java/jdk1.8.0_211
    PATH=$PATH:$JAVA_HOME/bin
    CLASSPATH=.:$JAVA_HOME/lib
    JRE_HOME=$JAVA_HOME/jre
    export JAVA_HOME PATH CLASSPATH JRE_HOME

    # chmod +x /etc/profile.d/java.sh
    # source /etc/profile

    验证:

    # java -version

    3.开始安装:

    # mkdir -p /u02/weblogic/bea

    # chown -R weblogic:web /u02/weblogic

    # su weblogic

    # cd /u02/weblogic

    创建wls.rsp和oraInst.loc文件

    wls.rsp文件内容:

    [ENGINE]
    #DO NOT CHANGE THIS.
    Response File Version=1.0.0.0.0
    
    [GENERIC]
    #The oracle home location. This can be an existing Oracle Home or a new Oracle Home
    
    ORACLE_HOME=/u02/weblogic/bea
    
    #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
    
    INSTALL_TYPE=WebLogic Server

    oraInst.loc文件内容:
    inventory_loc=/u02/weblogic/oraInventory
    
    inst_group=weblogic
    安装:
    # java -jar fmw_12.2.1.3.0_wls.jar -silent -responseFile /u02/weblogic/wls.rsp -invPtrLoc /u02/weblogic/oraInst.loc ORACLE_HOME="/u02/weblogic/bea"
    设置环境变量:
    # sh /u02/weblogic/bea/wlserver/server/bin/setWLSEnv.sh
    创建Domain域名:
    # cd /u02/weblogic/bea/wlserver/common/bin/
    # ./wlst.sh
    WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.
    
    Initializing WebLogic Scripting Tool (WLST) ...
    
    Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
    
    Welcome to WebLogic Server Administration Scripting Shell
    
    Type help() for help on available commands
    
    wls:/offline> readTemplate('/u02/weblogic/bea/wlserver/common/templates/wls/wls.jar')
    WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
    wls:/offline/base_domain>cd('Servers/AdminServer')
    wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
    wls:/offline/base_domain/Server/AdminServer>set('ListenPort',7001)
    wls:/offline/base_domain/Server/AdminServer>cd('../..')
    wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
    wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic123')
    wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain','true')
    wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/u02/weblogic/bea/user_projects/domains/base_domain')
    wls:/offline/base_domain/Security/base_domain/User/weblogic>closeTemplate()
    wls:/offline>exit()
    启动:
    # cd /u02/weblogic/bea/user_projects/domains/base_domain/bin/
    # ./startWebLogic.sh
     
  • 相关阅读:
    测试发帖
    C# 四舍五入算法(转)
    赚钱,爱好,生活
    c# 当前dll目录
    BlogWriter
    调用com+时,提示 0x800706f7,error msg:占位程序接收到错误数据,(本地调用时提示:不支持此接口)
    测试2
    系统架构设计 & 避免循环引用(转载)
    Visual Studio 2008查找替换用的正则
    Myeclipse webinf/lib包加载问题
  • 原文地址:https://www.cnblogs.com/yuanqc/p/10936731.html
Copyright © 2011-2022 走看看