ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

00 RHCSA9 | EX200 Exam | Lab Configuration | YUM Repo Setup

Автор: Tech Mate

Загружено: 2023-08-13

Просмотров: 6173

Описание: Chapters:
00:00 Introduction
03:30 Configure Local YUM/DNF Repo
11:55 Convert local repo over http
20:43 Configure repo on node01 over http
22:52 Configure repo on node02 over http

##################################
RHCSA 8/9 Lab Setup - Server Configuration
##################################

Login to server01.rhcsa9.momer.io as root or user with sudo access to configure local repo

-- Server details
-- add following entries in you /etc/hosts (do that according to your own naming conventions)

10.10.10.91 server01.rhcsa9.momer.io server01
10.10.10.92 node01.rhcsa9.momer.io node01
10.10.10.93 node02.rhcsa9.momer.io node02

-- connect rhel9.iso to your server (use your virtualization software)
-- mount iso to server
mkdir -p /mnt/cdrom
mount /dev/sr0 /mnt/cdrom

-- copy mounted dvd content locally on the server
mkdir /rhel9
cd /rhel9
cp -rf /mnt/cdrom/* .

-- create a repo file as shown below

vi /etc/yum.repos.d/rhel9.repo

-- add following content to the file, save and exit

[BaseOS]
name=RHEL9 Base OS
baseurl=file:///rhel9/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[AppStream]
name=RHEL9 ApStream
baseurl=file:///rhel9/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

-- disable susbcription manager

vi /etc/dnf/plugins/subscription-manager.conf

-- change enabled

from
enabled=1

to
enabled=0

-- verify your repo is enabled and working fine

dnf repolist all

-- install httpd

dnf install -y httpd

Convert your local repo over http

-- enable and start httpd
systemctl enable --now httpd

-- move the repo content to apache documentroot directory
mv /rhel9 /var/www/html

-- change the selinux context of apache documentroot directory
chcon -Rvt httpd_sys_content_t /var/www/html

-- Configure the firewall for service http and port 80
firewall-cmd --add-service=http --permanent
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all


-- edit repo file as shown below

vi /etc/yum.repos.d/rhel9.repo

[BaseOS]
name=RHEL9 Base OS
baseurl=http://server01/rhel9/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[AppStream]
name=RHEL9 ApStream
baseurl=http://server01/rhel9/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

-- verify the repo is working fine

dnf repolist all

dnf install -y telnet

################################
RHCSA 8/9 node Configuration
################################

-- Login as root on node01
-- make sure the host file configuration is correct and server01 is reachable
-- edit /etc/hosts file as below

10.10.10.91 server01.rhcsa9.momer.io server01
10.10.10.92 node01.rhcsa9.momer.io node01
10.10.10.93 node02.rhcsa9.momer.io node02

-- disable susbcription manager

vi /etc/dnf/plugins/subscription-manager.conf

-- change enabled

from
enabled=1

to
enabled=0

-- edit repo file as shown below

vi /etc/yum.repos.d/rhel9.repo

[BaseOS]
name=RHEL9 Base OS
baseurl=http://server01/rhel9/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[AppStream]
name=RHEL9 ApStream
baseurl=http://server01/rhel9/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

-- verify the repo is working fine

dnf repolist all

dnf install -y telnet

-- repeat "RHCSA 8/9 node Configuration" steps on node02

Reference document
https://www.redhat.com/sysadmin/apach...

Thanks.
Enjoy !!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
00 RHCSA9 | EX200 Exam | Lab Configuration | YUM Repo Setup

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]