【weblogic】weblogic12c部署文檔

    1. 建立weblogic用戶和weblogic組:
      groupadd weblogic
      useradd –d /weblogic weblogic –g weblogic
  • 2 將jdk1.7的安裝包放在/usr/local下,以便後面配置時調用。
    【weblogic】weblogic12c部署文檔
  • 3.使用weblogic用戶
    在vim ~/.bashrc,設置環境變量,添加下面橙色框中的內容。
    【weblogic】weblogic12c部署文檔
    export JAVA_HOME=/usr/local/jdk1.7
    export JRE_HOME=/usr/local/jdk1.7/jre
    export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
    export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
    執行source ~/.bashrc,生效環境變量。
  • 4.解壓weblogic安裝包
    解壓weblogic12.tar.gz,tar –xzvf weblogic12.tar.gz
    解壓後生成4個文件夾或目錄:
    【weblogic】weblogic12c部署文檔
  • 5.設置環境變量
    cd /weblogic/weblogic12/wlserver/server/bin
    ./ setWLSEnv.sh
    【weblogic】weblogic12c部署文檔
  • 6.安裝weblogic(靜默安裝)
    須要建立生成oraInst.loc和wls.rsp兩個文件。
    1. 建立響應文件 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=/weblogic   #此項爲weblogic的安裝目錄
      
      #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
      
      INSTALL_TYPE=WebLogic Server
      
      #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
      
      MYORACLESUPPORT_USERNAME=
      
      #Provide the My Oracle Support Password
      
      MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
      
      #Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
      
      DECLINE_SECURITY_UPDATES=true
      
      #Set this to true if My Oracle Support Password is specified
      
      SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
      
      #Provide the Proxy Host
      
      PROXY_HOST=
      
      #Provide the Proxy Port
      
      PROXY_PORT=
      
      #Provide the Proxy Username
      
      PROXY_USER=
      
      #Provide the Proxy Password
      
      PROXY_PWD=<SECURE VALUE>
      
      #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
      
      COLLECTOR_SUPPORTHUB_URL=
    2. 建立Loc文件 oraInst.loc

      inventory_loc=/weblogic/oraInventory
      inst_group=weblogicjava

  • 建立文件並權限授予用戶權限
    cd /weblogic/
    建立/weblogic/domains目錄做爲域安裝目錄。node

    1. 安裝 wls.rsp,oraInst.loc必須指定絕對路徑

      java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /weblogic/wls.rsp -invPtrLoc /weblogic/oraInst.loc
      【weblogic】weblogic12c部署文檔web

  • 安裝域
    執行環境變量:

    export MW_HOME=/weblogic/domains
    export WL_HOME=/weblogic/domains/oracle_commonvim

  • 執行安裝過程
    cd /weblogic/weblogic12/wlserver/common/bin
    ./commEnv.sh
    ./wlst.sh

    wls:/offline>readTemplate('/weblogic/domains/wlserver/common/templates/wls/wls.jar')bash

    wls:/offline/basedomain>cd('Servers/AdminServer')服務器

    wls:/offline/basedomain/Server/AdminServer>set('ListenAddress','')oracle

    #端口號能夠自定義
    wls:/offline/basedomain/Server/AdminServer>set('ListenPort', 7001)dom

    wls:/offline/basedomain/Server/AdminServer>cd('../..')ide

    wls:/offline/basedomain>cd('Security/basedomain/User/weblogic')工具

    #密碼能夠自定義,但不能太過簡單
    wls:/offline/basedomain/Security/basedomain/User/weblogic>cmo.setPassword('welcome1')

    wls:/offline/basedomain/Security/basedomain/User/weblogic>setOption('OverwriteDomain', 'true')

    wls:/offline/basedomain/Security/basedomain/User/weblogic>writeDomain('/weblogic/domains/domains/basedomain')

    closeTemplate()

    exit()*

  1. 7.Weblogic啓動和部署服務
    • 節點服務器配置
      cd /weblogic/domains/domains/base_domain/nodemanager
      vim nodemanager.properties
      監聽修改成本機地址,其餘參數請按需修改。
      【weblogic】weblogic12c部署文檔
    • 啓動weblogic
      cd /weblogic/domains/domains/base_domain/bin
      nohup ./startWebLogic.sh &
      #weblogic啓動進程須要nohup或其餘工具放到後臺啓動,啓動狀況能夠查看nohup.out日誌
  2. 8.至此weblogic部署完成,能夠打開web控制檯進行所需節點的部署。
    登陸weblogic的控制檯頁面:http://192.168.48.157:7001/console剛纔設置的默認帳號:weblogic passwd:welcome1
相關文章
相關標籤/搜索