EX200 Korean試験無料問題集「RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) 認定」
네트워크 설정 구성
다음 네트워크 설정으로 node1을 구성하세요.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
다음 네트워크 설정으로 node1을 구성하세요.
호스트 이름: node1.domain250.example.com
IP 주소: 172.25.250.100
서브넷 마스크: 255.255.255.0
게이트웨이: 172.25.250.254
正解:
# Connect to servera via console for IP modification, then check using the ip addr command.
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254 autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254 autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
시스템을 server.domain11.example.com의 NTP 클라이언트로 구성하세요.
正解:
#system-config-date
Note: dialog box will open in that
Check mark Synchronize date and time over network. Remove all the NTP SERVER and click ADD and type server.domain11.example.com
****************And then press ENTER and the press OK***************
Note: dialog box will open in that
Check mark Synchronize date and time over network. Remove all the NTP SERVER and click ADD and type server.domain11.example.com
****************And then press ENTER and the press OK***************
NFS 서비스를 구성합니다. NFS 공유 서비스로 디렉토리를 공유합니다.
正解:
/etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
showmount -e localhost
/etc/init.d/nfslock start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
showmount -e localhost
/dev/test0/testvolume1이라는 이름의 논리 볼륨 하나가 생성됩니다. 해당 디스크의 초기 크기는 100MB이고 이제 200MB가 더 필요합니다. 논리 볼륨의 크기를 늘리세요. 크기는 온라인에서 증가해야 합니다.
正解:
lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1) ext2online -d /dev/test0/testvolume1 lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.
시스템에 로컬 논리 볼륨이 있는데, shrink라는 이름이 붙었고 VGSRV 볼륨 그룹에 속하며 /shrink 디렉토리에 마운트합니다. 크기 정의는 320MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 220MB로 줄이십시오.
a. 축소 후 허용 크기는 200-260MB입니다.
요구 사항:
데이터 손실 없이 논리 볼륨을 220MB로 줄이십시오.
a. 축소 후 허용 크기는 200-260MB입니다.
正解:
cd;umount /shrink
e2fsck -f /dev/mapper/vgsrv-shrink
resize2fs /dev/mapper/vgsrv-shrink 220M
lvreduce -L 220M /dev/mapper/vgsrv-shrink
mount -a
e2fsck -f /dev/mapper/vgsrv-shrink
resize2fs /dev/mapper/vgsrv-shrink 220M
lvreduce -L 220M /dev/mapper/vgsrv-shrink
mount -a
웹 서비스를 구성하고 http://instructor.example.com/pub/serverX.html에서 다운로드하세요. 그리고 시스템을 재부팅한 후에도 해당 서비스는 계속 실행 중이어야 합니다.
正解:
cd /var/www/html
wget http://instructor.example.com/pub/serverX.html mv serverX.html index.html /etc/init.d/httpd restart chkconfig httpd on
wget http://instructor.example.com/pub/serverX.html mv serverX.html index.html /etc/init.d/httpd restart chkconfig httpd on
1. /etc 디렉토리에서 10k 파일이나 디렉토리의 모든 크기를 찾아 /tmp/findfiles 디렉토리로 복사합니다.
2. 소유자가 Lucy인 모든 파일이나 디렉토리를 찾아 /tmp/findfiles 디렉토리로 복사합니다.
2. 소유자가 Lucy인 모든 파일이나 디렉토리를 찾아 /tmp/findfiles 디렉토리로 복사합니다.
正解:
(1)find /etc -size 10k -exec cp {} /tmp/findfiles \;
(2)find / -user lucy -exec cp -a {} /tmp/findfiles \;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
(2)find / -user lucy -exec cp -a {} /tmp/findfiles \;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
NTP 구성
materials.example.com의 NTP 서버와 동기화되도록 시스템을 구성하세요(참고: materials.example.com은 classroom.example.com의 별칭입니다).
materials.example.com의 NTP 서버와 동기화되도록 시스템을 구성하세요(참고: materials.example.com은 classroom.example.com의 별칭입니다).
正解:
# Install the chrony service for configuring NTP server
[root@node1 ~]# yum -y install chrony
[root@node1 ~]# vim /etc/chrony.conf
server materials.example.com iburst
[root@node1 ~]# systemctl restart chronyd
[root@node1 ~]# systemctl enable chronyd
# Check
# Set an arbitrary time
[root@node1 ~]# date -s "1982-1-1"
Fri Jan 1 12:00:00 AM EST 1982
# Restart the NTP server
[root@node1 ~]# systemctl restart chronyd
# Check if the time is synchronized
# Execute after 3-5 seconds, too fast won't synchronize the time
[root@node1 ~]# date
Tue Dec 12 11:40:19 PM EST 2023
# Use the chronyc command to check synchronization status
[root@node1 ~]# chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
^* classroom.lab.example.com 8 6 17 42 -14us[ -11us] +/- 463us
[root@node1 ~]# yum -y install chrony
[root@node1 ~]# vim /etc/chrony.conf
server materials.example.com iburst
[root@node1 ~]# systemctl restart chronyd
[root@node1 ~]# systemctl enable chronyd
# Check
# Set an arbitrary time
[root@node1 ~]# date -s "1982-1-1"
Fri Jan 1 12:00:00 AM EST 1982
# Restart the NTP server
[root@node1 ~]# systemctl restart chronyd
# Check if the time is synchronized
# Execute after 3-5 seconds, too fast won't synchronize the time
[root@node1 ~]# date
Tue Dec 12 11:40:19 PM EST 2023
# Use the chronyc command to check synchronization status
[root@node1 ~]# chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
^* classroom.lab.example.com 8 6 17 42 -14us[ -11us] +/- 463us
사용자 추가: user2, user3.
두 사용자의 추가 그룹: user2, user3는 관리자 그룹입니다. 비밀번호: redhat
두 사용자의 추가 그룹: user2, user3는 관리자 그룹입니다. 비밀번호: redhat
正解:
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
ftp://instructor.example.com/pub/updates에서 커널을 업데이트합니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
다음 요구 사항에 따라:
업데이트된 커널은 시스템을 재부팅한 후에도 기본 커널로 존재해야 합니다.
원래 커널은 여전히 존재하며 시스템에서 사용할 수 있습니다.
正解:
rpm -ivh kernel-firm...
rpm -ivh kernel...
rpm -ivh kernel...