1. 执行命令查看ip:ip addr
2. 如果没有或取到,要查看网卡是否启动,及ip配置是否正确,请先将ONBOOT改成yes,表示开机即启动
[lobin@localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=2f14951f-500c-4285-9b9f-f65f37f75f0c
DEVICE=enp0s3
ONBOOT=yes
3. 以上根据自已实际情况修改,再重启下网卡:systemctl restart network
4. 安装可视化界面:
4.1 yum groupinstall "X Window System"
4.2 yum gouplist
4.3 yum groupinstall GNOME Desktop
4.4 startx