Centos7 (minimal)图形界面安装

  1. yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools"
  2. ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
  3. 设置默认图形界面启动
    ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
  1. startx

切换成命令行启动:
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

你可能感兴趣的:(CentOS)