1:使用Xshell或jutty等连接工具进入系统(默认用户名root)
2:执行命令安装 Gnome 包
$sudo yum groupinstall
"GNOME Desktop"
"Graphical Administration Tools"
(如果安装过程中出现以下错误)
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64Error
Summary
3.则需要先执行以下两条安装命令
yum
install -y libdevmapper* yum
install -y docker
安装完成后重新执行上面的安装 Gnome包命令
4.更新系统的运行级别,如果你想在系统下次启动的时候自动进入图形界面,那么我们需要更改系统的运行级别,输入下面的命令来启用图形界面。
ln -sf /lib/systemd/system/graphical.taget /etc/systemd/system/default.target
5.接着重启
reboot now