进入到虚拟机里面之后: 执行 vim /etc/sysconfig/network-scripts/ifcfg-eth0
service network restart rebbot 重启 vim /etc/resolv.conf
rpm -qa | grep -i xorg-x11 如果有输出结果,基本上就可以断定安装了图形化界面。
涉及到图形化的组件包括:
[root@redhat ~]# yum groupinstall “X Window System”
[root@redhat ~]# yum groupinstall “Desktop”
[root@redhat ~]# yum install “Xorg”
意思是安装完成以上的3个命令安装包,就安装成功了
输入命令
在虚拟机里面输入这个,不是在xshell,或者其他工具里面输入这个,其他外部连接工具会报错;
startx