Redhat Enterprise Linux 7.4 安装后初始化配置

时间:2022-02-13 17:08:12

 

[root@home ~]# systemctl set-default multi-user.target

 

[root@home ~]# vi /etc/selinux/config
SELINUX=disabled

 

[root@home ~]# systemctl stop firewalld.service
[root@home ~]# systemctl disable firewalld.service

 

[root@home ~]# mkdir /mnt/rhel
[root@home ~]# mount -o loop -t iso9660 /opt/rhel-server-7.4-x86_64-dvd.iso /mnt/rhel
[root@home ~]# vi /etc/yum.repos.d/rhel.repo
[rhel]
name=rhel
baseurl=file:///mnt/rhel
gpgcheck=0
enabled=1
[root@home ~]# yum repolist