Centos 7设定默认运行级别
Centos7 中不再是使用/etc/inittab来配置运行级别,而是使用systemd来进行管理
[root@docker~]#ll/lib/systemd/system/runlevel3.target lrwxrwxrwx.1rootroot17Feb2310:08/lib/systemd/system/runlevel3.target->multi-user.target [root@docker~]#ll/lib/systemd/system/runlevel5.target lrwxrwxrwx.1rootroot16Feb2310:08/lib/systemd/system/runlevel5.target->graphical.target [root@docker~]# 可以用来将默认(开机启动后)运行级别设定为3 [root@docker~]#systemctlset-defaultmulti-user.target Removedsymlink/etc/systemd/system/default.target. Createdsymlinkfrom/etc/systemd/system/default.targetto/usr/lib/systemd/system/multi-user.target 切换运行级别3 [root@docker~]#systemctlget-default multi-user.target##runlevel3 查看OS运行level runlevel Systemd介绍:http://www.178linux.com/48990原文链接:https://www.f2er.com/centos/376669.html