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 应用服务中间件 中间件
|
2月前
|
Java 应用服务中间件 Linux
centos7安装weblogic
centos7安装weblogic
|
负载均衡 Java 应用服务中间件
Weblogic的了解、安装及其使用(三)
Weblogic的了解、安装及其使用
1235 0
|
Oracle Java 关系型数据库
Weblogic的了解、安装及其使用(二)
Weblogic的了解、安装及其使用
905 0
|
开发框架 Kubernetes 监控
Weblogic的了解、安装及其使用(一)
Weblogic的了解、安装及其使用
2040 0
|
安全 Oracle Java
Oracle Weblogic--CentOS Linux 8.5.2安装weblogic11G
Weblogic在centos上详细安装步骤及安装过程中可能遇到的问题
319 0
Oracle Weblogic--CentOS Linux 8.5.2安装weblogic11G
|
Oracle 关系型数据库 Java
EOS Platform 7.2下安装weblogic插件
在实际工作中,需要用到EOS Platform,这是一个基于Eclipse的开发工具,自带了Tomcat,可以满足大部分需要,但是有时候需要使用Weblogic,这就得手动安装Weblogic插件了。这个过程与Eclipse相同(Eclipse下安装weblogic插件),本文中在EOS Platform 7.2中安装Weblogic插件。
186 0
EOS Platform 7.2下安装weblogic插件
|
Oracle 关系型数据库 Java
Eclipse下安装weblogic插件
安装好weblogic dev版本(Windows下安装weblogic dev版本),可以在Eclipse中安装weblogic server tools插件,直接连接到weblogic server,发布、部署、调试都变得简单些。
669 0
Eclipse下安装weblogic插件
|
Oracle 关系型数据库 Java
Windows下安装weblogic dev版本
在开发过程中,有一种情况是比较尴尬的:需要用到某个软件,但是只需要用到这个软件中的一小部分功能,这样既浪费的磁盘空间,又浪费了CPU空间。比如Weblogic,完整版包括很多功能,但是开发过程中,只是需要创建数据源、部署项目,然后进行测试即可。所以开发过程中,需要一款简化的Weblogic(Weblogic开发版)是挺有必要的(如果电脑配置比较壕,也可以任性的使用完整版)。
323 0
Windows下安装weblogic dev版本