Home  >  Article  >  Operation and Maintenance  >  How to start nodemanager when booting Linux

How to start nodemanager when booting Linux

WBOY
WBOYforward
2023-05-18 08:43:052206browse

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系统

Linux是一种免费使用和自由传播的类UNIX操作系统,是一个基于POSIX的多用户、多任务、支持多线程和多CPU的操作系统,使用Linux能运行主要的Unix工具软件、应用程序和网络协议。

The above is the detailed content of How to start nodemanager when booting Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete