美文网首页
CentOS7 VMWare Workstation 安装后配置

CentOS7 VMWare Workstation 安装后配置

作者: 赛亚人之神 | 来源:发表于2019-03-19 11:19 被阅读0次

最小安装版安装后

  1. 没有网络,ping www.baidu.com 不通

vi /etc/sysconfig/network-scripts/ifcfg-ens33

  • ONBOOT=no 修改为 ONBOOT=yes
  • 执行 service network restart 重启网络
  1. 替换阿里镜像源
  1. 备份: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
  2. 下载阿里镜像源(注意 curl 和 wget 后面参数选项的大小写):
    1)curl-o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    2)wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. 清除系统所有yum源:yum clean all
  4. 生成yum缓存:yum makecache
  5. 查看系统可用的yum源:
yum repolist enabled
yum repolist all
  1. 没有 wget 工具
  1. yum install -y wget
  2. 使用 rpm 命令安装,使用阿里镜像源下载安装包 https://opsx.alibaba.com/mirror,找到 wget 工具
  • 使用curl命令下载后 curl -O https://mirrors.aliyun.com/centos/7.6.1810/os/x86_64/Packages/wget-1.14-18.el7.x86_64.rpm
  • 使用 rpm 命令安装:rpm -ivh wget-1.14-18.el7.x86_64.rpm

相关文章

网友评论

      本文标题:CentOS7 VMWare Workstation 安装后配置

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