关闭开启CentOS7 图形界面 1.关闭图形化界面 # systemctl set-default multi-user.target 2.开启图形化界面 # systemctl set-default graphical.target 使用命令后需要reboot重启系统