zoukankan      html  css  js  c++  java
  • centos7 默认进入系统命令行模式修改

    systemctl get-default  #查看系统启动进入默认模式

     systemctl set-default graphical.target  #改成默认进入 图形界面模式

     systemctl set-default multi-user.target  #改成默认进入命令行模式

    ==================================

    [root@localhost ~]# systemctl set-default multi-user.target                      
    Removed symlink /etc/systemd/system/default.target.
    Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.

    =====================================

    网上各种策略将编辑 inittab文件,从 5--》3即可,centos 7 之后 用系统

    graphical.target

    "/etc/inittab" 17L, 511C                                                                                                                             17,1         全部
    # inittab is no longer used when using systemd.
    #
    # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
    #
    # Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
    #
    # systemd uses 'targets' instead of runlevels. By default, there are two main targets:
    #
    # multi-user.target: analogous to runlevel 3
    # graphical.target: analogous to runlevel 5
    #
    # To view current default target, run:
    # systemctl get-default
    #
    # To set a default target, run:
    # systemctl set-default TARGET.target
  • 相关阅读:
    .net core 2.0以上版本加载appsettings.json
    BZOJ 2564: 集合的面积
    P3829 [SHOI2012]信用卡凸包
    P2215 [HAOI2007]上升序列
    P2511 [HAOI2008]木棍分割
    P2510 [HAOI2008]下落的圆盘
    P4053 [JSOI2007]建筑抢修
    P4050 [JSOI2007]麻将
    P4049 [JSOI2007]合金
    P4161 [SCOI2009]游戏
  • 原文地址:https://www.cnblogs.com/mousean/p/6150702.html
Copyright © 2011-2022 走看看