zoukankan      html  css  js  c++  java
  • CentOS开机流程(开关机需要做的操作,开机级别)

    一、Linux开机流程:

     Linux是一个多用户多任务的系统,我们在关机的时候需要注意的地方:

    关机过程:第一:sync   将内存里面的东西写入到磁盘

                       第二:输入关机命令

                                   halt  :立即关机

                                   poweroff :立即关机

                                   shutdown -h now   : 立即关机          (root 账号才能敲这个命令)

                                   shutdown -h 10      :10分钟后关机   (root 账号才能敲这个命令

    重启过程:    reboot

                           shutdown -r now   :立即重启         (root 账号才能敲这个命令)

                           shutdown -r  10     :10分钟后重启 (root 账号才能敲这个命令)

                           shutdown -r 20:35  :20:35的时候重启 

                           如果敲了shutdown的重启命令后,又不想重启了,可以输入   shutdown -c   取消关机或重启

    cent0s6 中有开机级别的概念:  0:系统关机

                                                            1:单用户模式

                                                            2:本地多用户模式

                                                            3:网络多用户模式 (命令行下的模式,无图形界面)

                                                            4:系统保留,未定义

                                                            5:带图形界面的网络多用户模式

                                                            6:系统重启

    centos7中可以设置开机级别:在  /etc/inittab  中做了定义说明

     

     在 centos6中切换运行级别:

    init  3   切换到字符界面

    init  5   切换到图形界面

                       

     

  • 相关阅读:
    @RequestParam注解使用:Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.
    cglib动态代理导致注解丢失问题及如何修改注解允许被继承
    springboot Autowired BeanNotOfRequiredTypeException
    git根据用户过滤提交记录
    不同包下,相同数据结构的两个类进行转换
    How to use Jackson to deserialise an array of objects
    jooq实践
    java如何寻找main函数对应的类
    Python--matplotlib
    Python 和 Scikit-Learn
  • 原文地址:https://www.cnblogs.com/yujianadu/p/15544378.html
Copyright © 2011-2022 走看看