zoukankan      html  css  js  c++  java
  • 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


  • 相关阅读:
    Bash : 冒泡排序
    Azure Load Balancer : 支持 IPv6
    Azure Load Balancer : 简介
    sudo 与输出重定向
    Linux lsof 命令
    Bash : IO 重定向
    LVM : 快照
    2014年全年总结
    使用Kindle4rss推送自己感兴趣的博文
    换SSD硬盘,重装系统,一阵子忙乱
  • 原文地址:https://www.cnblogs.com/nodejsxxh/p/6966903.html
Copyright © 2011-2022 走看看