一般市面上的云服务器为了节约服务器资源和性能,一般是不会安装GUI的图形界面程序,本教程针对centos7下图形界面的安装,一般不建议装这个东西,会增加系统负担,基本操作都可在命令行处理。
1、安装
(1)
# yum groupinstall -y "GNOME Desktop"
(2)
# yum groupinstall -y "Graphical Administration Tools"
(3)
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
(4)
echo -e "nameserver 119.29.29.29\nnameserver 180.76.76.76" > /etc/resolv.conf
(5)reboot重启服务器即可
2、常见报错:
Transaction check error:
file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.65.el7.centos.2.noarch
可参考:http://www.gaoshan.me/operation/system/linux/linux-centos-yum-epel.html 更新一下源,然后手工执行
#yum update -y grub2-commonn
#yum install -y fwupdate-efi
再试试安装