CentOS 6
编辑/etc/inittab文件查看
CentOS 7
systemctl get-default
CentOS 6
编辑/etc/inittab文件修改
CentOS 7
systemctl set-default multi-user.target
CentOS 6
借助于光盘镜像进入紧急救援模式
CentOS 7
systemctl rescue (依然会启动服务)
systemctl emergency (什么服务都不会启动)
关机:systemctl halt , systemctl poweroff
重启:systemctl reboot
挂起:systemctl suspend
快照:systemctl hibernate
快照并挂起:systemctl hybrid-sleep
/etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target