ln -s /etc/init.d/heartbeat /etc/rc.d/rc0.d/K05heartbeat
ln -s /etc/init.d/heartbeat /etc/rc.d/rc3.d/S75heartbeat
ln -s /etc/init.d/heartbeat /etc/rc.d/rc5.d/S75heartbeat
ln -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数字表示运行的优先级,数字越大,优先级越小