美文网首页
redhat6安装

redhat6安装

作者: 苏水的北 | 来源:发表于2021-08-14 10:37 被阅读0次

    一、创建虚拟机:

    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png

    二、redhat6的安装方法:

    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png
    image.png

    1、配置ip并重启网卡:

    [root@oracle ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    TYPE=Ethernet
    ONBOOT=yes
    BOOTPROTO=none
    IPADDR=192.168.147.2
    PREFIX=24
    [root@oracle ~]# service network restart
    Shutting down interface eth0:  Device state: 3 (disconnected)
                                                               [  OK  ]
    Shutting down loopback interface:                          [  OK  ]
    Bringing up loopback interface:                            [  OK  ]
    Bringing up interface eth0:  Active connection state: activated
    Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/7
                                                               [  OK  ]
    

    2、关闭软件:

    2.1、关闭Linux中的防火墙机制以及开启不启动
    [root@oracle ~]# service iptables stop
    iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
    iptables: Flushing firewall rules:                         [  OK  ]
    iptables: Unloading modules:                               [  OK  ]
    [root@oracle ~]# service ip6tables stop
    ip6tables: Setting chains to policy ACCEPT: filter         [  OK  ]
    ip6tables: Flushing firewall rules:                        [  OK  ]
    ip6tables: Unloading modules:                              [  OK  ]
    [root@oracle ~]# chkconfig  iptables off
    [root@oracle ~]# chkconfig  ip6tables off
    
    2.2、关闭Linux中的图形化网络管理机制以及开机不启动:
    [root@oracle ~]# service NetworkManager  stop
    Stopping NetworkManager daemon:                            [  OK  ]
    [root@oracle ~]# chkconfig  NetworkManager off
    
    2.3、关闭Linux中安全增强机制(selinux)以及开机不启动:
    [root@oracle ~]# setenforce 0
    [root@oracle ~]# cat  /etc/selinux/config
    
    # 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
    # SELINUXTYPE= can take one of these two values:
    #     targeted - Targeted processes are protected,
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted
    

    3、配置yum软件仓库(挂载镜像并修改yum文件):

    [root@oracle ~]# mount /dev/sr0 /mnt
    mount: block device /dev/sr0 is write-protected, mounting read-only
    [root@oracle ~]# vim /etc/yum.repos.d/rhel-source.repo
    [root@oracle ~]# yum repolist
    Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    aaa                                                                                 | 3.9 kB     00:00 ...
    aaa/primary_db                                                                      | 3.1 MB     00:00 ...
    repo id                                            repo name                                         status
    aaa                                                123123                                            3,690
    repolist: 3,690
    

    4、配置主机名/映射关系:

    [root@oracle ~]# hostname oracle
    [root@oracle ~]# cat  /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=oracle
    NTPSERVERARGS=iburst
    [root@oracle ~]# cat  /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.147.2 oracle
    

    相关文章

      网友评论

          本文标题:redhat6安装

          本文链接:https://www.haomeiwen.com/subject/whbhbltx.html