linux boot starts the nodemanager step
- 2020-05-07 20:48:44
- OfStack
1, edit the file /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. Modify permissions
chmod a+x /etc/init.d/nodeManagerService
3. Add to on-off service
chkconfig --add nodeManagerService
[html]
4 , view the boot level
[code]
chkconfig --list nodeManagerService
5. Restart the machine to see if it works
In linux startup interface, you will see the startup service: nodeManagerService [ok]
6, delete the switch service
chkconfig --del nodeManagerService