第一台虚拟机需要按传统的安装方式来安装好,登陆之后开始操作
首先
关闭防火墙和selinux
[root@localhost ~]# service iptables stop
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# vi /etc/selinux/conf
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled //将enforcing,改为disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
保存并退出
[root@localhost ~]# rpm -ivh bash-completion-2.1-6.el7.noarch.rpm //命令补全软件包
[root@localhost ~]# yum -y install vim wget //编译工具和下载工具;可以不安装个人喜好
[root@localhost ~]# yum -y install net-tools //netstat 工具包;可以不安装个人喜好
[root@localhost ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules //这个文件里记录了网卡信息,删掉后重启会自动生成。不然后面复制的镜像文件网卡启动会比较麻烦