Weblogic10静默安装

简介:
Weblogic图形化安装大家都很熟悉,下面我们试一下静态安装。静态安装不需要人工干涉,速度快,适用于多节点安装。
静默安装的命令如下(以下为windows平台,UNIX大同小异):
oepe111130_wls1032_win32.exe -mode=silent -silent_xml=d:\test\silent.xml
-log=d:\test\install.log
-mode 指定安装方式为静默安装,一定为silent.
-silent_xml 指定配置文件。文件配置原本在图形化安装时的需要的设定。例如:WLS_INSTALL_DIR设定Weblogic Server的安装目录全路径。
Weblogic文档里的例子,稍改了一点:
<? xml  version ="1.0"  encoding ="UTF-8"  ?>    
- <!--     Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml    
    
-->    
- <!--     
Specify values for each data-value name as follows: 
BEAHOME Complete pathname to the BEA Home directory that 
will contain this installation. 
WLS_INSTALL_DIR Complete pathname to the product installation 
directory in which to install WebLogic Server. 
COMPONENT_PATHS Components and subcomponents to be installed. 
To install multiple components, separate the components 
with a bar (|). 
To install subcomponents, specify a 
component/subcomponent combination. For example, 
to install Core Application Server, use 
"WebLogic Server/Core Application Server". 
INSTALL_NODE_MANAGER_SERVICE Install Node Manager as a Windows 
service. The default is "no". 
Requires Administrator privileges. 
NODEMGR_PORT Node Manager listen port number. If none specified, 
installer uses default port 5556. 
INSTALL_NODE_MANAGER_SERVICE must be set to "yes". 
INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER 
The Windows Start menu folder in which you want the 
Start menu shortcuts created. 
The user performing the installation must have 
Administrator privileges to install the shortcuts 
in the All Users folder. 
Possible values: 
true/yes The shortcuts are created in 
the All Users folder (default) 
false/no The shortcuts are created in 
the local user's folder 
BEA_BUNDLED_JVMS 
Option to select BEA bundled JVMS (for e.g. either 
jrockit_160_05 or jdk160_05 for Windows and Linux 
platforms). The default value is all BEA bundled JVMs 
for selected platform. 
A-2 Oracle Fusion Middleware Installation Guide for Oracle WebLogic Server 
LOCAL_JVMS 
Option to select supported JVM, which is already 
installed.Note: The presence of either(BEA_BUNDLED_JVMS 
or LOCAL_JVMS) or both of these tokens negates any 
default selection and only sets the values assigned for 
these tokens as user selection. The value of the token 
can be a pipe ('|') separated JavaHomes. 
See the Installation Guide for more information. 


    
-->    
< bea-installer > 
< input-fields > 
     < data-value  name ="BEAHOME"  value ="e:\weblogic"  />    
     < data-value  name ="WLS_INSTALL_DIR"  value ="e:\weblogic\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/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers"  />    
     < data-value  name ="INSTALL_NODE_MANAGER_SERVICE"  value ="yes"  />    
     < data-value  name ="NODEMGR_PORT"  value ="5559"  />    
     < data-value  name ="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER"  value ="yes"  />    
- <!--  <data-value name="LOCAL_JVMS"value="D:\jrockit_160_05|D:\jdk160_11"/> 

    
-->    
     </ input-fields > 
     </ bea-installer >
-log定义安装日志文件,安装过程中产生的日志都会写入该文件。
CMD下切换到oepe111130_wls1032_win32.exe 所在目录,
运行oepe111130_wls1032_win32.exe -mode=silent -silent_xml=d:\test\silent.xml
-log=d:\test\install.log
强出一控制台窗口,安装开始。安装完成之后,该窗口自动关闭。
我的安装过程中出现:


2010-05-12 15:46:10,893 INFO    [readSilentXML] com.bea.plateng.wizard.installer.common.parsers.TemplateParser - Silent xml file processed successfully... 
2010-05-12 15:46:15,408 ERROR [home] com.bea.plateng.wizard.installer.helpers.BEAHomeHelper - Error setting selections! 
com.bea.cie.gpr.model.RegistryException: Unable to locate product "WebLogic Server" and component "Core Application Server " 
at com.bea.cie.gpr.internal.model.HomeTargetImpl.setSelections(HomeTargetImpl.java:337) 
at com.bea.plateng.wizard.installer.helpers.BEAHomeHelper.buildTarget(BEAHomeHelper.java:155) 

.... 

2010-05-12 15:18:29,001 ERROR [home] com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask - 本地 BEA 产品注册表 已损坏。请选择另一个中间件主目录或者与 Oracle 支持部门联系 
错误。查了很多资料也没找到答案。后来发现是“Core Application Server  ”多了一个空格。去除之后安装正常, 所以要多注意。
就说这么多,具体参见weblogic官方文档.

本文转自 anranran 51CTO博客,原文链接:http://blog.51cto.com/guojuanjun/314549

相关文章
|
Oracle Java 关系型数据库
|
Java 应用服务中间件 中间件
|
7月前
|
Web App开发 安全 Java
WebLogic Server 远程代码执行漏洞(CVE-2021-2109)
WebLogic Server 远程代码执行漏洞,攻击者可通过使用恶意Payload对目标服务器实施攻击并接管服务器获取执行权限。
76 1
|
7月前
|
安全 Java 应用服务中间件
WebLogic Server 远程代码执行漏洞(CVE-2023-21839/CNVD-2023-04389)
WebLogic Server 存在远程代码执行漏洞,攻击者通过特定Payload对目标服务器进行恶意利用从而获取服务器控制权限,进一步操作。
145 1
|
7月前
|
XML 安全 Java
WebLogic EJBTaglibDescriptor XXE漏洞(CVE-2019-2888)
WebLogic EJBTaglibDescriptor 在反序列化的同时会进行XML解析,通过重写EJBTaglibDescriptor中的writeExternal函数生成恶意的序列化数据。
103 1
H8
|
8月前
|
安全 网络协议 Java
跨语言的艺术:Weblogic 序列化漏洞和 IIOP 协议
Weblogic序列化漏洞主要依赖于T3和IIOP协议,在通信交互方面存在诸多问题,如跨语言、网络传输等,给漏洞检测和利用带来诸多不便。在WhiteHat Labs的理念中,漏洞检测和利用是一项创造性的工作,应该以最简洁高效的方式实现,以保证漏洞的跨平台性和实用性。因此,我们实现了跨语言的IIOP协议通信方案来解决序列化漏洞问题。
H8
152 1
|
10月前
|
XML 安全 Oracle
Weblogic IIOP协议反序列化(CVE-2020-2551)漏洞复现
Weblogic IIOP协议反序列化(CVE-2020-2551)漏洞复现
682 0
|
10月前
|
XML 安全 Oracle
Weblogic XMLDecoder 远程代码执行漏洞 CVE-2017-10271 漏洞复现
Weblogic XMLDecoder 远程代码执行漏洞 CVE-2017-10271 漏洞复现
107 0
|
11月前
|
安全 NoSQL Shell
Weblogic ssrf漏洞复现---从0到1
利用Ubuntu16.04,安装docker,要以root身份执行
165 0
Weblogic ssrf漏洞复现---从0到1
|
11月前
|
XML 安全 Oracle
干货 | 最全最详细的Weblogic漏洞总结(建议收藏)
干货 | 最全最详细的Weblogic漏洞总结(建议收藏)
2201 0