zoukankan      html  css  js  c++  java
  • centos6 或者7

    运行级别的对比
     
     
    红帽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
    对于发的内容,请大神指点。
  • 相关阅读:
    Django model 常用方法记录
    程序员的注意事项
    硬件天使的使用
    你是否应该成为一名全栈工程师?
    web技术
    6个处理上面代码异味的重构方法(手法)
    git 命定
    ie console报错
    apache 省略index.php访问
    myisam和innodb的区别
  • 原文地址:https://www.cnblogs.com/gongll/p/7481805.html
Copyright © 2011-2022 走看看