一、设置网卡
vi /etc/sysconfig/network-scripts/ifcfg-eth0
重启网卡
/etc/init.d/network stop
/etc/init.d/network start
二、安装网络工具包
yum install net-tools
yum install wget
三、更改源为阿里云
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的额CentOS-Base.repo
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、生成缓存
yum clean all
yum makecache
四、挂载Parallels Tools 安装镜像
cd etc/yum.repos.d/
cd /media/
如果此时没用 cdrom 新建文件夹:mkdir cdrom
[root@localhost yum.repos.d]# mount -o exec /dev/cdrom /media/cdrom
效果图
安装插件:
yum install checkpolicy
yum install gcc
yum install selinux-policy-devel
yum install epel-release
yum install dkms
注:在安装 epel-release、dkms 会自动安装依赖插件
安装 Parallels Tools:
./install
此处在安装:kernel-devel-3.10.0-327.el7.x86_64 失败,未找到解决办法
网友评论