设置linux下heartbeat服务开机启动

来源:互联网 发布:鹰朗el01正品淘宝店 编辑:程序博客网 时间:2024/04/20 12:20
ln -s  /etc/init.d/heartbeat  /etc/rc.d/rc0.d/K05heartbeatln -s  /etc/init.d/heartbeat  /etc/rc.d/rc3.d/S75heartbeatln -s  /etc/init.d/heartbeat  /etc/rc.d/rc5.d/S75heartbeatln -s  /etc/init.d/heartbeat  /etc/rc.d/rc6.d/K05heartbeat或者chkconfig --level 0356 heartbeat on
S是start执行的意思,K是Kill关闭不执行  
0 - 停机 
1 - 单用户模式 
2 - 多用户,但是没有NFS ,不能使用网络 
3 - 完全多用户模式,我最喜欢的模式 
4 - “打酱油” 模式,没有用到 
5 - X11   桌面模式
6 - 重新启动 (如果将默认启动模式设置为6,Linux将会不断重启)
其中,k05,s75数字表示运行的优先级,数字越大,优先级越小
原创粉丝点击