weblogic静默安装指导

  Linux图形化很少,再生产上。静默安装基本上是家常便饭。。。

心得:

  Oracle的官方文档很全,值得后续学习指导文件

weblogic10.3.6官方文档

https://docs.oracle.com/middleware/11119/wls/index.htm

 00、jdk环境变量

注意:根据相应生产环境部署相对应的jdk版本

 vim /etc/profile

export JAVA_HOME=/data/jdk1.8.0_45

export CLASSPATH=.:$JAVA_HOME/lib

export PATH=$JAVA_HOME/bin:$PATH

source /etc/profile

01、silen.xml静默文件

<?xml version="1.0" encoding="UTF-8"?>
   <bea-installer> 
     <input-fields>
       <data-value name="BEAHOME" value="/data/Middleware" />
       <data-value name="WLS_INSTALL_DIR" value="/data/Middleware/wlserver_10.3" />
       <data-value name="COMPONENT_PATHS"
        value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples|Oracle Coherence/Coherence Product Files" />
       <data-value name="INSTALL_NODE_MANAGER_SERVICE" value="no" />
       <!--
       <data-value name="NODEMGR_PORT" value="5559" />
       <data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
       -->
       <!--  根据情况自己选择,当前jdk环境ok,不要在设置
        <data-value name="LOCAL_JVMS" value="D:\jrockit_160_29|D:\jdk160_29"/>
       -->
   </input-fields> 
</bea-installer>

 02、安装命令

java -Xmx1024m -jar filename.jar -mode=silent -silent_xml=path_to_silent.xm  #提高速度安装l

java  -jar  wls1035_generic.jar  -mode=silent  -silent_xml=silent.xml

安装参数:

[root@mvp data]# ./jdk1.8.0_45/bin/java -jar wls1035_generic.jar -h
WizardController Options:
    -file=<filename>    Installer control file.
    -target=<name>        Target name
    -log=<filename>        Controller log file.
    -silent_log=<filename>    Silent install log file.
    -silent_xml=<filename>    Silent mode parameter file.  default=silent.xml
    -silent_script=<filename>    Silent mode script file.  default=silent.script
    -height=<size>        Context height
    -width=<size>        Context width
    -mode=[gui | console | silent]  default=gui
    -log_priority=[debug | info | warn | error | fatal]  default=info
    -silent_priority=[debug | info | warn | error | fatal]  default=info
    -p:[namespace]:name=value
    -args=<filename>        Read command line arguments from filenam

03、 安装成功的标志

04、常见错误解决

ERROR
[root@mvp data]# ./jdk1.8.0_45/bin/java -jar wls1035_generic.jar -mode=silent -silent_xml=sile
nt.xmlExtracting 0%.................................................................................
...................100%The local BEA product registry is corrupted. Please select another Middleware Home or contact
Oracle Support

Resolve
选项必须没空格、连起来

weblogic10.3.6官方文档
http://docs.oracle.com/middleware/11119/wls/WLSIG/silent.htm#i1044116

posted @ 2017-09-12 00:27  mvpbang  阅读(1851)  评论(1编辑  收藏  举报