linux7.2创建可用实验快照配置
1.网卡的配置文件路径
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# vim ifcfg-eno16777736
[root@localhost network-scripts]# systemctl restart network
2.关闭防火墙的命令操作
[root@localhost ~]# systemctl stop firewalld
3.关闭selinux的操作
[root@localhost ~]# vim /etc/selinux/config
SELINUX=disabled
ESC-》:wq
[root@localhost 桌面]# sestatus
SELinux status: disabled
4.配置本地YUM源的步骤
a.进入目录
[root@localhost ~]# cd /etc/yum.repos.d
b.删除原文件
[root@localhost yum.repos.d]# ls
packagekit-media.repo redhat.repo
[root@localhost yum.repos.d]# rm -fr /etc/yum.repos.d/*
c.创建新的配置文件,文件格式必须为.repo
[root@localhost yum.repos.d]# ls
[root@localhost yum.repos.d]# vim rhel7.2.repo
[root@localhost yum.repos.d]# cat rhel7.2.repo
[root@localhost yum.repos.d]# cat rhel7.2.repo
[rhel7.2]
name=rhel-server
baseurl=file:///mnt
enabled=1
gpgcheck=0
[root@localhost yum.repos.d]# ls
rhel7.2.repo
d.清空并生成缓存列表
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum clean all
f.验证一下
[root@localhost yum.repos.d]# yum -y install httpd