美文网首页
CentOS7 安装桌面

CentOS7 安装桌面

作者: 山高路远_海深不蓝 | 来源:发表于2019-08-18 18:18 被阅读0次

刚安装好,使用yum报错

cannot find a valid baseurl for repo base/7/x86_64

网卡没开

cd /etc/sysconfig/network-scripts/

  • 找到 ifcfg-enxxx 'xxx',个人不同,一般就是第一个文件

vi ifcfg-enxxx

查看外网地址

curl ifconfig.me

  • 修改

ONBOOT = yes

  • 重启网络

service network restart

安装图形界面

  • 先进入root

$ root

  • 安装GNOME

yum groupinstall "GNOME Desktop"

  • 进入桌面

# startx

相关文章

网友评论

      本文标题:CentOS7 安装桌面

      本文链接:https://www.haomeiwen.com/subject/zccdsctx.html