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


  • 相关阅读:
    c语言函数定义、函数声明、函数调用以及extern跨文件的变量引用
    c语言局部变量 静态局部变量 全局变量与静态全局变量
    Source Insight建工程之Kernel
    day49
    管道实例取出最常用的10个指令
    day52
    Linux中vi的使用
    vi高级技巧
    vim配置
    typedef
  • 原文地址:https://www.cnblogs.com/nodejsxxh/p/6966903.html
Copyright © 2011-2022 走看看