热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

ChangedefaultrunlevelinFedora19

Asyoumayhavenoticed,Fedoraisprogressivelyswitchingtosystemd(yes,that’salsowhyyoucouldn’tfindinitscriptslike/etc/init.d/sshdor/etc/init.d/iptables),sonowthereis

As you may have noticed, Fedora is progressively switching to systemd (yes, that’s also why you couldn’t find init scripts like /etc/init.d/sshd or /etc/init.d/iptables), so now there is no more /etc/inittab to edit in order to select the desired runlevel of your system.

Here’s the actual runlevel-to-systemd command table for you:
 
RUNLEVEL 5: Graphical, Multiuser (this is the default runlevel - desktop users)
 ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

RUNLEVEL 3: NO GUI, Multiuser (this is the “server” choice)
 ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

Just as reference, here’s the complete systemd runlevel list. For your mental sanity, please do not set runlevel other than the two I just described above :)
 /lib/systemd/system/runlevel0.target -> poweroff.target/lib/systemd/system/runlevel1.target -> rescue.target /lib/systemd/system/runlevel2.target -> multi-user.target/lib/systemd/system/runlevel3.target -> multi-user.target/lib/systemd/system/runlevel4.target -> multi-user.target/lib/systemd/system/runlevel5.target -> graphical.target/lib/systemd/system/runlevel6.target -> reboot.target

更多Fedora相关信息见Fedora 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=5

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-04/100689.htm


推荐阅读
author-avatar
飞舞的猫2502890283
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有