How to start nodemanager when booting Linux

WBOY
Release: 2023-05-18 08:43:05
forward
2174 people have browsed it

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
Copy after login

2、修改权限

chmod a+x /etc/init.d/nodemanagerservice
Copy after login

3、添加到开关机服务里

chkconfig --add nodemanagerservice
[html]
Copy after login

4、查看启动级别

[code]
chkconfig --list nodemanagerservice
Copy after login

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

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

6、删除开关机服务

chkconfig --del nodemanagerservice
Copy after login

什么是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!

Related labels:
source:yisu.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!