如何创建将Oracle Weblogic的NodeManager作为服务添加到xinetd?


0

我试图添加NodeManager以在系统启动时自动启动。
在《Oracle®Fusion Middleware Node Manager管理员指南》中有以下模板:

# default: off
# description:nodemanager as a service
service nodemgrsvc
{
   type            = UNLISTED
   disable         = no
   socket_type     = stream
   protocol        = tcp
   wait            = yes
   user            = <username>
   port            = 5556
   flags           = NOLIBWRAP
   log_on_success += DURATION HOST USERID
   server          = <path-to-jave>/java
   env             = CLASSPATH=<cp> LD_LIBRARY_PATH=<ldpath>
   server_args     = -client -DNodeManagerHome=<NMHome> <java options> 
   <nodemanager options> weblogic.NodeManager -v
}  

我不知道如何填写:

  • CP
  • LDPATH
  • JAVA_OPTIONS
  • 节点管理器选项

您是否有任何xinetd脚本示例来启动nodemanager?

Answers:


0

这个脚本对我有用:

# default: off  
# description:nodemanager as a service  
service nodemgrsvc  
{  
        type = UNLISTED  
        disable = no  
        socket_type = stream  
        protocol = tcp  
        wait = yes  
        user = oracle  
        port = 5556  
        flags = NOLIBWRAP  
        log_on_success += DURATION HOST USERID  
        server = /usr/bin/java  
        env = CLASSPATH="/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrmc-3.1.2-1.6.0/lib/tools.jar:/u01/app/oracle/product/11.1.1/mw/utils/config/10.3/config-launch.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/product/11.1.1/mw/modules/features/weblogic.server.modules_10.3.2.0.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/product/11.1.1/mw/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/u01/app/oracle/product/11.1.1/mw/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/product/11.1.1/mw" LD_LIBRARY_PATH="/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/native:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64/oci920_8"  
        server_args = -DNodeManagerHome=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager -client -Xms128m -Xmx256m  -Xverify:none  -Djava.security.policy=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/usr/java/jdk1.6.0_18  weblogic.NodeManager -v  
}  

对于类路径,您需要知道我设置了以下变量:

$MW_HOME=/u01/app/oracle/product/11.1.1/mw  
$WL_HOME=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3  
$JAVA_HOME=/usr/java/jdk1.6.0_18  

但是我仍然有一个问题,我无法启动托管服务器(soa_server和bam_server)。它没有记录在任何地方,我也不知道该怎么做。

我需要在重新启动计算机时所有服务器都已启动。

提前致谢

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.