首页 > 其他 > 详细

/etc/rc.d/init.d和/etc/init.d 联系区别

时间:2015-09-08 16:45:09      阅读:231      评论:0      收藏:0      [点我收藏+]

#/etc/init.d 是 rc.d/init.d/ 的软链接

[root@localhost ~]# ll -d /etc/init.d
lrwxrwxrwx. 1 root root 11 5月  13 01:01 /etc/init.d -> rc.d/init.d


#For example:
[root@localhost ~]# vi /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don‘t
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

/etc/init.d/httpd start
#or
/etc/rc.d/init.d/httpd start


本文出自 “碧血青天” 博客,请务必保留此出处http://tianzhaogao.blog.51cto.com/4716906/1692807

/etc/rc.d/init.d和/etc/init.d 联系区别

原文:http://tianzhaogao.blog.51cto.com/4716906/1692807

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