linux系统启动流程

boot/系统内核文件所放的地方

cd /etc/rc.d/init.d 这个里边放的都是通过rpm安装(经过liunux处理过的源代码)的东西,只有这里边也就是只有通过rpm安
装的才能用
chkconfig永久启动关闭 和service临时启动命令关闭

chkconfig --level 3 httpd on //永久启动

chkconfig --level 3 httpd off //永久启动
service httpd start //临时启动

service httpd stop //临时启动

cd /etc/rc.d/init.d (这个里边的东西是经过liunux处理过的源代码这里边的能通过service启动关闭的脚本)
service httpd start

cd /etc/rc.d/init.d/httpd
chkconfig: - 85 15
85启动级别 数字越大启动越往后
15关闭级别 数字越小关闭越前


3级别下开机自启动httpd
chkconfig -h
chkconfig --level 3 httpd on //永久启动
只有rpm安装的服务脚本cd /etc/rc.d/init.d 底下的服务脚本才能通过 chkconfig调开机启动和service httpd start临时启动

原文地址:https://www.cnblogs.com/finddata/p/10036104.html