首页 > 其他 > 详细

Centos5,6的启动流程

时间:2018-04-14 15:15:39      阅读:191      评论:0      收藏:0      [点我收藏+]
CentOS5/6的启动流程

启动流程画了张图,看着更清晰些: (centos7的启动流程变化挺大的,这部分待补充)

技术分享图片


补充(/etc/rc.d/rc.local 不属于任何服务,为特殊文件,可将不能定义为服务又想开机运行的命令定义在此文件中)

 

添加自定义服务:

[root@el5 init.d]# vi  /etc/init.d/testsrv 

#!/bin/bash

#chkconfig: 223 92 60

#description:              programs at periodic scheduled times. vixie cron adds a \

#              number of features to the basic UNIX cron, including better \

#              security and more powerful configuration options.#

echo "hello"

 

[root@el5 init.d]# chkconfig --add  testsrv

 

[root@el5 init.d]# service testsrv

hello


Centos5,6的启动流程

原文:http://blog.51cto.com/jying/2103413

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!