1、编辑文件/etc/init.d/nodeManagerService
[oracle@weblogic-01 ~]$ vi /etc/init.d/nodeManagerService
#!/bin/bash
#chkconfig: 345 80 70
#description: start stop nodemanager
WL_HOME="/home/oracle/Oracle/Middleware/wlserver_10.3"
BEA_OWNER="oracle"
case "$1" in
start)
su - "$BEA_OWNER" <
${WL_HOME}/server/bin/startNodeManager.sh &
EOF
;;
stop)
su - "$BEA_OWNER" <
EOF
;;
*)
;;
esac
2、修改权限
chmod a+x /etc/init.d/nodeManagerService
3、添加到开关机服务里
chkconfig --add nodeManagerService
4、查看启动级别
chkconfig --list nodeManagerService
5、重启机器查看是否生效
在linux 开机启动界面会看到开机服务中有: nodeManagerService [ok]
6、删除开关机服务
chkconfig --del nodeManagerService
[oracle@weblogic-01 ~]$ vi /etc/init.d/nodeManagerService
#!/bin/bash
#chkconfig: 345 80 70
#description: start stop nodemanager
WL_HOME="/home/oracle/Oracle/Middleware/wlserver_10.3"
BEA_OWNER="oracle"
case "$1" in
start)
su - "$BEA_OWNER" <
${WL_HOME}/server/bin/startNodeManager.sh &
EOF
;;
stop)
su - "$BEA_OWNER" <
EOF
;;
*)
;;
esac
2、修改权限
chmod a+x /etc/init.d/nodeManagerService
3、添加到开关机服务里
chkconfig --add nodeManagerService
4、查看启动级别
chkconfig --list nodeManagerService
5、重启机器查看是否生效
在linux 开机启动界面会看到开机服务中有: nodeManagerService [ok]
6、删除开关机服务
chkconfig --del nodeManagerService
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27042095/viewspace-1067329/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27042095/viewspace-1067329/