zoukankan      html  css  js  c++  java
  • Centos 设置开机进图形界面/终端

    版本:CentOS 7

    首先:

    [root@localhost test]# cat /etc/inittab
    # 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
    #
    [root@localhost test]# 

    其中:

    multi-user.target 代表命令模式

    graphical.target 代表图形界面

    使用如下命令可以查看当前所处模式:

    [root@localhost test]# systemctl get-default
    multi-user.target

    使用如下命令修改为图形界面模式:

    systemctl set-default graphical.target

    如果重启后还是没进入图形界面,可能系统里没有安装,使用如下命令安装即可:

    yum groupinstall -y "GNOME Desktop"
  • 相关阅读:
    UVa532 Dungeon Master 三维迷宫
    6.4.2 走迷宫
    UVA 439 Knight Moves
    UVa784 Maze Exploration
    UVa657 The die is cast
    UVa572 Oil Deposits DFS求连通块
    UVa10562 Undraw the Trees
    UVa839 Not so Mobile
    327
    UVa699 The Falling Leaves
  • 原文地址:https://www.cnblogs.com/zoneofmine/p/13225275.html
Copyright © 2011-2022 走看看