Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

想启动linux,把ngnix php-fpm mysql起了,rc.local写了命令,但是没有效果,google了一下,有说道系统的运行级别,runlevel查看了下为unknown,网上的设置runlevel的命令好像也不能用。对这个不熟悉,能否普及下相关知识,怎么设置能让rc.local里的命令有作用,能让ngin php-fpm mysql能自动起来。

自己又查了,我的centos7应该是没做运行级别这件事情的,因为inittab这样的文件也没的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
757 views
Welcome To Ask or Share your Answers For Others

1 Answer

centos7中已经不用inittab
运行级别都定义在 /lib/systemd/system下,不再是之前的/etc/inittab文件
可以看下这个 http://www.linuxidc.com/Linux...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...