1. Edit File/etc/init.d/nodemanagerservice
Copy Code code as follows:
[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 "$" in
Start
Su-"$BEA _owner" <<eof
${wl_home}/server/bin/startnodemanager.sh &
Eof
Stop
Su-"$BEA _owner" <<eof
Eof
*)
Esac
2, modify the permissions
Copy Code code as follows:
chmod A+x/etc/init.d/nodemanagerservice
3, add to the switching machine service
Copy Code code as follows:
Chkconfig--add Nodemanagerservice
[HTML]
4. View Startup level
[Code]
Chkconfig--list Nodemanagerservice
5. Reboot the machine to see if it takes effect
The Linux boot interface will see that the boot service has: Nodemanagerservice [OK]
6, remove the switching machine service
Copy Code code as follows:
Chkconfig--del Nodemanagerservice