首页 > 其他 > 详细

centos6 或者7

时间:2017-09-05 21:30:39      阅读:368      评论:0      收藏:0      [点我收藏+]
运行级别的对比
 
 
红帽6:
0,1,2,3,4,5,6
 
红帽7:
poweroff.target
rescue.target
multi-user.target
multi-user.target
multi-user.target
graphical.target
reboot.target
 
 
对比、
 
 
CentOS 6
init 3
 
CentOS 7
systemctl isolate multi-user.target
 
  • 红帽6、红帽7 查看当前级别对比
CentOS 6
runlevel
 
CentOS 7
systemctl list-units -t target
 
 
 
  • 红帽6、红帽7 获取默认运行级别对比
CentOS 6
编辑/etc/inittab文件查看
CentOS 7
systemctl get-default
  • 红帽6、红帽7 修改默认运行级别对比
CentOS 6
编辑/etc/inittab文件修改
CentOS 7
systemctl set-default multi-user.target
  • 红帽6、红帽7 进入紧急救援模式对比
CentOS 6
借助于光盘镜像进入紧急救援模式
CentOS 7
systemctl rescue (依然会启动服务)
systemctl emergency (什么服务都不会启动)
 
 
 
 
 
  • 红帽7 关机、重启、挂起、创建快照
关机: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

centos6 或者7

原文:http://www.cnblogs.com/gongll/p/7481805.html

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