Home  >  Article  >  Backend Development  >  Steps to start nodemanager on Linux boot

Steps to start nodemanager on Linux boot

高洛峰
高洛峰Original
2017-02-13 16:28:191992browse

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" <<EOF
${WL_HOME}/server/bin/startNodeManager.sh &
EOF

stop)
su - "$BEA_OWNER" <<EOF
EOF

*)

esac

2、修改权限

chmod a+x /etc/init.d/nodeManagerService

3、添加到开关机服务里

chkconfig --add nodeManagerService
[html]
4、查看启动级别
[code]
chkconfig --list nodeManagerService

5、重启机器查看是否生效

在linux 开机启动界面会看到开机服务中有:  nodeManagerService [ok]

6、删除开关机服务

chkconfig --del nodeManagerService

更多linux开机启动nodemanager步骤相关文章请关注PHP中文网!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn