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
     
  • 相关阅读:
    python中拆分和拼接字符串
    python中find查找是否包含特定字符并返回第一个索引
    python中删除字符串左右的空格
    python中指定字符串宽度,并指定填充字符串
    python中将字符串中的制表符转换为空格
    python中统计字符串中特定字符出现的次数,内置方法count
    python中指定分隔符分割字符串,返回三元组
    学习笔记:社会科学的特质
    启示——来自《DOOM启世录》
    多语言处理 > UNICODE > IBM的ICU类库
  • 原文地址:https://www.cnblogs.com/yuanqc/p/10936731.html
Copyright © 2011-2022 走看看