最新的RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) - EX200 Korean免費考試真題
問題1
/home 아래에 admins라는 이름의 카탈로그를 만듭니다. 해당 그룹은 admin 그룹이어야 합니다. 그룹 사용자는 읽고 쓸 수 있지만 다른 사용자는 액세스할 수 없습니다. 같은 그룹의 사용자가 만든 파일도 admin 그룹이어야 합니다.
/home 아래에 admins라는 이름의 카탈로그를 만듭니다. 해당 그룹은 admin 그룹이어야 합니다. 그룹 사용자는 읽고 쓸 수 있지만 다른 사용자는 액세스할 수 없습니다. 같은 그룹의 사용자가 만든 파일도 admin 그룹이어야 합니다.
正確答案:
# cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/
問題2
http://server.domain11.example.com/pub/updates에서 적절한 커널 업데이트를 설치하세요.
다음 기준도 충족해야 합니다.
업데이트된 커널은 시스템이 재부팅될 때 기본 커널이 됩니다.
원래 커널은 시스템에서 계속 사용 가능하고 부팅 가능합니다.
http://server.domain11.example.com/pub/updates에서 적절한 커널 업데이트를 설치하세요.
다음 기준도 충족해야 합니다.
업데이트된 커널은 시스템이 재부팅될 때 기본 커널이 됩니다.
원래 커널은 시스템에서 계속 사용 가능하고 부팅 가능합니다.
正確答案:
ftp server.domain11.example.com Anonymous login
ftp> cd /pub/updates ftp> ls
ftp> mget kernel* ftp> bye
rpm -ivh kernel*
vim /etc/grub.conf
Check the updatted kernel is the first kernel and the orginal kernel remains available. set default=0 wq!
ftp> cd /pub/updates ftp> ls
ftp> mget kernel* ftp> bye
rpm -ivh kernel*
vim /etc/grub.conf
Check the updatted kernel is the first kernel and the orginal kernel remains available. set default=0 wq!
問題3
2부(Node2 서버)
작업 4 [논리 볼륨 관리]
논리 볼륨, lvrz의 크기를 조정하고 파일 시스템을 4600MiB로 줄입니다. 마운트 지점 /datarz로 파일 시스템 내용이 그대로 유지되는지 확인합니다(참고: 파티션은 요청된 크기와 정확히 일치하지 않는 경우가 많으므로 4200MiB에서 4900MiB 범위 내의 모든 것이 허용됩니다)
2부(Node2 서버)
작업 4 [논리 볼륨 관리]
논리 볼륨, lvrz의 크기를 조정하고 파일 시스템을 4600MiB로 줄입니다. 마운트 지점 /datarz로 파일 시스템 내용이 그대로 유지되는지 확인합니다(참고: 파티션은 요청된 크기와 정확히 일치하지 않는 경우가 많으므로 4200MiB에서 4900MiB 범위 내의 모든 것이 허용됩니다)
正確答案:
* [root@node2 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdb 252:16 0 5G 0 disk
└─vdb1 252:17 0 4.2G 0 part
└─vgrz-lvrz 253:2 0 4.1G 0 lvm /datarz
vdc 252:32 0 5G 0 disk
└─vdc1 252:33 0 4.4G 0 part
└─datavg-datalv 253:3 0 3.9G 0 lvm /data
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
[root@node2 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvrz vgrz -wi-ao---- 4.10g
[root@node2 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vgrz 1 1 0 wz--n- <4.15g 48.00m
[root@node2 ~]# parted /dev/vdb print
Number Start End Size Type File system Flags
1 1049kB 4456MB 4455MB primary lvm
* [root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.0G 17M 3.8G 1% /datarz
[root@node2 ~]# parted /dev/vdb mkpart primary 4456MiB 5100MiB
[root@node2 ~]# parted /dev/vdb set 2 lvm on
[root@node2 ~]# udevadm settle
[root@node2 ~]# pvcreate /dev/vdb2
Physical volume "/dev/vdb2" successfully created.
* [root@node2 ~]# vgextend vgrz /dev/vdb2
Volume group "vgrz" successfully extended
[root@node2 ~]# lvextend -r -L 4600M /dev/vgrz/lvrz
Size of logical volume vgrz/lvrz changed from 4.10 GiB (1050 extents) to 4.49 GiB (1150 extents).
Logical volume vgrz/lvrz successfully resized.
[root@node2 ~]# resize2fs /dev/vgrz/lvrz
[root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.4G 17M 4.2G 1% /datarz
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdb 252:16 0 5G 0 disk
└─vdb1 252:17 0 4.2G 0 part
└─vgrz-lvrz 253:2 0 4.1G 0 lvm /datarz
vdc 252:32 0 5G 0 disk
└─vdc1 252:33 0 4.4G 0 part
└─datavg-datalv 253:3 0 3.9G 0 lvm /data
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
[root@node2 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvrz vgrz -wi-ao---- 4.10g
[root@node2 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vgrz 1 1 0 wz--n- <4.15g 48.00m
[root@node2 ~]# parted /dev/vdb print
Number Start End Size Type File system Flags
1 1049kB 4456MB 4455MB primary lvm
* [root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.0G 17M 3.8G 1% /datarz
[root@node2 ~]# parted /dev/vdb mkpart primary 4456MiB 5100MiB
[root@node2 ~]# parted /dev/vdb set 2 lvm on
[root@node2 ~]# udevadm settle
[root@node2 ~]# pvcreate /dev/vdb2
Physical volume "/dev/vdb2" successfully created.
* [root@node2 ~]# vgextend vgrz /dev/vdb2
Volume group "vgrz" successfully extended
[root@node2 ~]# lvextend -r -L 4600M /dev/vgrz/lvrz
Size of logical volume vgrz/lvrz changed from 4.10 GiB (1050 extents) to 4.49 GiB (1150 extents).
Logical volume vgrz/lvrz successfully resized.
[root@node2 ~]# resize2fs /dev/vgrz/lvrz
[root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.4G 17M 4.2G 1% /datarz
問題4
/data 디렉토리는 server1.example.com 서버에서 공유됩니다. 다음 공유 디렉토리를 마운트합니다.
/data 디렉토리는 server1.example.com 서버에서 공유됩니다. 다음 공유 디렉토리를 마운트합니다.
正確答案: B
說明:(僅 PDFExamDumps 成員可見)
問題5
시스템 최적화 구성
시스템에 맞는 권장 조정 구성 세트를 선택하여 기본값으로 설정합니다.
시스템 최적화 구성
시스템에 맞는 권장 조정 구성 세트를 선택하여 기본값으로 설정합니다.
正確答案:
# Install and enable tuned
[root@node2 ~]# yum -y install tuned
[root@node2 ~]# systemctl enable tuned
[root@node2 ~]# systemctl restart tuned
# Check the recommended configuration scheme for the system
[root@node2 ~]# tuned-adm recommend
virtual-guest
# Switch to the specified configuration scheme
[root@node2 ~]# tuned-adm profile virtual-guest
# Check the current configuration scheme
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
[root@node2 ~]# yum -y install tuned
[root@node2 ~]# systemctl enable tuned
[root@node2 ~]# systemctl restart tuned
# Check the recommended configuration scheme for the system
[root@node2 ~]# tuned-adm recommend
virtual-guest
# Switch to the specified configuration scheme
[root@node2 ~]# tuned-adm profile virtual-guest
# Check the current configuration scheme
[root@node2 ~]# tuned-adm active
Current active profile: virtual-guest
問題6
방화벽을 열어두어야 합니다.
방화벽을 열어두어야 합니다.
正確答案:
/etc/init.d/iptables start
iptables -F
iptables -X
iptables -Z
/etc/init.d/iptables save
chkconfig iptables on
iptables -F
iptables -X
iptables -Z
/etc/init.d/iptables save
chkconfig iptables on
問題7
1부(Node1 서버)
작업 6 [Linux 파일 시스템 접근]
/usr/share/mime/packages/freedesktop.org.xml 파일에서 ich 문자열이 포함된 모든 줄을 찾습니다.
이 줄의 사본을 원래 순서대로 /root/lines 파일에 넣으세요.
/root/lines에는 빈 줄이 없어야 하며 모든 줄은 원본 줄의 정확한 사본이어야 합니다.
/usr/share/mime/packages/freedesktop.org.xml
1부(Node1 서버)
작업 6 [Linux 파일 시스템 접근]
/usr/share/mime/packages/freedesktop.org.xml 파일에서 ich 문자열이 포함된 모든 줄을 찾습니다.
이 줄의 사본을 원래 순서대로 /root/lines 파일에 넣으세요.
/root/lines에는 빈 줄이 없어야 하며 모든 줄은 원본 줄의 정확한 사본이어야 합니다.
/usr/share/mime/packages/freedesktop.org.xml
正確答案:
* [root@node1 ~]# cat /usr/share/mime/packages/freedesktop.org.xml | grep ich > /root/lines
[root@node1 ~]# cat /root/lines
<comment xml:lang="ast">Ficheru codificau en BinHex de Machintosh</comment>
<comment xml:lang="fr">fichier code Macintosh BinHex</comment>
<comment xml:lang="gl">ficheiro de Macintosh codificado con BinHex</comment>
<comment xml:lang="oc">fichier encodat Macintosh BinHex</comment>
<comment xml:lang="pt">ficheiro codificado em BinHex de Macintosh</comment>
<comment xml:lang="fr">fichier boite aux lettres</comment>
[root@node1 ~]# cat /root/lines
<comment xml:lang="ast">Ficheru codificau en BinHex de Machintosh</comment>
<comment xml:lang="fr">fichier code Macintosh BinHex</comment>
<comment xml:lang="gl">ficheiro de Macintosh codificado con BinHex</comment>
<comment xml:lang="oc">fichier encodat Macintosh BinHex</comment>
<comment xml:lang="pt">ficheiro codificado em BinHex de Macintosh</comment>
<comment xml:lang="fr">fichier boite aux lettres</comment>
問題8
기본 저장소를 사용하도록 시스템 구성
YUM 저장소는 http://content/rhel9.0/x86_64/dvd/BaseOS 및 http://content/rhel9.0/x86_64/dvd/AppStream에서 사용할 수 있습니다. 이러한 위치를 기본 저장소로 사용하도록 시스템을 구성합니다.
기본 저장소를 사용하도록 시스템 구성
YUM 저장소는 http://content/rhel9.0/x86_64/dvd/BaseOS 및 http://content/rhel9.0/x86_64/dvd/AppStream에서 사용할 수 있습니다. 이러한 위치를 기본 저장소로 사용하도록 시스템을 구성합니다.
正確答案:
Method 1:
# Copy the yum configuration file from node1.
[root@node2 ~]# scp root@node1:/etc/yum.repos.d/rhcsa.repo /etc/yum.repos.d/
Method 2:
[root@node2 ~]# vim /etc/yum.repos.d/rhcsa.repo
[Base]
name=Base
baseurl=http://content/rhel9.0/x86_64/dvd/BaseOS
enabled=1
gpgcheck=no
[App]
name=App
baseurl=http://content/rhel9.0/x86_64/dvd/AppStream
enabled=1
gpgcheck=no
# Verification
[root@node2 ~]# yum repoinfo
[root@node2 ~]# yum -y install ftp
# Copy the yum configuration file from node1.
[root@node2 ~]# scp root@node1:/etc/yum.repos.d/rhcsa.repo /etc/yum.repos.d/
Method 2:
[root@node2 ~]# vim /etc/yum.repos.d/rhcsa.repo
[Base]
name=Base
baseurl=http://content/rhel9.0/x86_64/dvd/BaseOS
enabled=1
gpgcheck=no
[App]
name=App
baseurl=http://content/rhel9.0/x86_64/dvd/AppStream
enabled=1
gpgcheck=no
# Verification
[root@node2 ~]# yum repoinfo
[root@node2 ~]# yum -y install ftp
問題9
NTP를 구성합니다.
NTP 서비스 구성, 서버 시간 동기화, NTP 서버: classroom.example.com
NTP를 구성합니다.
NTP 서비스 구성, 서버 시간 동기화, NTP 서버: classroom.example.com
正確答案:
Configure the client:
Yum -y install chrony
Vim /etc/chrony.conf
Add: server classroom.example.com iburst
Start: systemctl enable chronyd
systemctl restart chronyd
Validate: timedatectl status
Yum -y install chrony
Vim /etc/chrony.conf
Add: server classroom.example.com iburst
Start: systemctl enable chronyd
systemctl restart chronyd
Validate: timedatectl status
問題10
ftp://instructor.example.com/pub/testfile에서 문서를 다운로드하고 [abcde]가 포함된 모든 줄을 찾아 /MNT/answer 문서로 리디렉션한 다음 원래 내용에 따라 순서를 다시 정렬합니다.
ftp://instructor.example.com/pub/testfile에서 문서를 다운로드하고 [abcde]가 포함된 모든 줄을 찾아 /MNT/answer 문서로 리디렉션한 다음 원래 내용에 따라 순서를 다시 정렬합니다.
正確答案:
Download the file to /tmp first
grep [abcde] /tmp/testfile > /mnt/answer
grep [abcde] /tmp/testfile > /mnt/answer