我正在尝试添加 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
- 路径
- java_options
- 节点管理器选项
您是否有任何 xinetd 脚本示例来启动 nodemanager?
答案1
这个脚本对我有用:
# 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)的问题。没有任何文档记录,我不知道该怎么做。
我需要当我重新启动机器时所有服务器都启动。
提前致谢