本文共 635 字,大约阅读时间需要 2 分钟。
1:更换centos镜像源为阿里镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupwget -O /etc/yum.repos.d/CentOS-Base.repo 或者curl -o /etc/yum.repos.d/CentOS-Base.repo yum makecache2:打开该主机的控制台,选择"安装Vmware Tools"按钮(此时已把该安装包放在/dev/cdrom)3:创建/mnt/cdrom并挂载mkdir /mnt/cdrom && mount -t iso9660 /dev/cdrom /mnt/cdrom4:mkdir /tools && cp /mnt/cdrom/VMwareTools-10.2.1-8267844.tar.gz /tools5:cd /tools && tar -zxvf VMwareTools-*.tar.gz6:yum -y install perl gcc make kernel-headers kernel-devel //安装编译环境
7:cd /tools/vmware-tools-distrib/ && ./vmware-install.pl //进入安装向导,基本回车就可以
转载于:https://blog.51cto.com/11403002/2335160