EX200 Korean 無料問題集「RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version)」
1부(Node1 서버)
작업 8 [로컬 사용자 및 그룹 관리]
사용자 ID 3945를 사용하여 사용자 fred를 만듭니다. 비밀번호는 iamredhatman으로 지정합니다.
작업 8 [로컬 사용자 및 그룹 관리]
사용자 ID 3945를 사용하여 사용자 fred를 만듭니다. 비밀번호는 iamredhatman으로 지정합니다.
正解:
* [root@node1 ~]# useradd -u 3945 fred
[root@node1 ~]# echo "iamredhatman" | passwd --stdin fred
Changing password for user fred.
passwd: all authentication tokens updated successfully
[root@node1 ~]# echo "iamredhatman" | passwd --stdin fred
Changing password for user fred.
passwd: all authentication tokens updated successfully
192.168.0.0/24와 192.168.1.0/24라는 두 개의 다른 네트워크가 있습니다. 192.168.0.254와
192.168.1.254 IP 주소가 서버에 할당되었습니다. 192.168.1.0/24 네트워크의 호스트에 ping을 보내 네트워크 설정을 확인하세요.
192.168.1.254 IP 주소가 서버에 할당되었습니다. 192.168.1.0/24 네트워크의 호스트에 ping을 보내 네트워크 설정을 확인하세요.
正解:
vi /etc/sysconfing/network NETWORKING=yes HOSTNAME=station?.example.com GATEWAY=192.168.0.254 service network restart
2.vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=192.168.0.254
ifdown eth0
ifup eth0
2.vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=192.168.0.254
ifdown eth0
ifup eth0
2부(Node2 서버)
과제 7 [고급 스토리지 기능 구현]
장치를 사용하여 think_pool 풀에서 think_fs라는 이름의 씬 프로비저닝 파일 시스템을 만듭니다.
파일 시스템은 /strav에 마운트되어야 하며 재부팅 후에도 지속되어야 합니다.
과제 7 [고급 스토리지 기능 구현]
장치를 사용하여 think_pool 풀에서 think_fs라는 이름의 씬 프로비저닝 파일 시스템을 만듭니다.
파일 시스템은 /strav에 마운트되어야 하며 재부팅 후에도 지속되어야 합니다.
正解:
* [root@node2 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
└─vdo1 253:4 0 50G 0 vdo /vbread
[root@node2 ~]# yum install stratis* -y
[root@node2 ~]# systemctl enable --now stratisd.service
[root@node2 ~]# systemctl start stratisd.service
[root@node2 ~]# systemctl status stratisd.service
[root@node2 ~]# stratis pool create think_pool /dev/vdd
[root@node2 ~]# stratis pool list
Name Total Physical Properties
think_pool 5 GiB / 37.63 MiB / 4.96 GiB ~Ca,~Cr
* [root@node2 ~]# stratis filesystem create think_pool think_fs
[root@node2 ~]# stratis filesystem list
Pool Name Name Used Created Device UUID
think_pool think_fs 546 MiB Mar 23 2021 08:21 /stratis/think_pool/think_fs ade6fdaab06449109540c2f3fdb9417d
[root@node2 ~]# mkdir /strav
[root@node2 ~]# lsblk
[root@node2 ~]# blkid
/dev/mapper/stratis-1-91ab9faf36a540f49923321ba1c5e40d-thin-fs-ade6fdaab06449109540c2f3fdb9417d: UUID="ade6fdaa-b064-4910-9540-c2f3fdb9417d" BLOCK_SIZE="512" TYPE="xfs"
* [root@node2 ~]# vim /etc/fstab
UUID=ade6fdaa-b064-4910-9540-c2f3fdb9417d /strav xfs defaults,x-systemd.requires=stratisd.service 0 0
[root@node2 ~]# mount /stratis/think_pool/think_fs /strav/
[root@node2 ~]# df -hT
/dev/mapper/stratis-1-91ab9faf36a540f49923321ba1c5e40d-thin-fs-ade6fdaab06449109540c2f3fdb9417d xfs 1.0T 7.2G 1017G 1% /strav
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
└─vdo1 253:4 0 50G 0 vdo /vbread
[root@node2 ~]# yum install stratis* -y
[root@node2 ~]# systemctl enable --now stratisd.service
[root@node2 ~]# systemctl start stratisd.service
[root@node2 ~]# systemctl status stratisd.service
[root@node2 ~]# stratis pool create think_pool /dev/vdd
[root@node2 ~]# stratis pool list
Name Total Physical Properties
think_pool 5 GiB / 37.63 MiB / 4.96 GiB ~Ca,~Cr
* [root@node2 ~]# stratis filesystem create think_pool think_fs
[root@node2 ~]# stratis filesystem list
Pool Name Name Used Created Device UUID
think_pool think_fs 546 MiB Mar 23 2021 08:21 /stratis/think_pool/think_fs ade6fdaab06449109540c2f3fdb9417d
[root@node2 ~]# mkdir /strav
[root@node2 ~]# lsblk
[root@node2 ~]# blkid
/dev/mapper/stratis-1-91ab9faf36a540f49923321ba1c5e40d-thin-fs-ade6fdaab06449109540c2f3fdb9417d: UUID="ade6fdaa-b064-4910-9540-c2f3fdb9417d" BLOCK_SIZE="512" TYPE="xfs"
* [root@node2 ~]# vim /etc/fstab
UUID=ade6fdaa-b064-4910-9540-c2f3fdb9417d /strav xfs defaults,x-systemd.requires=stratisd.service 0 0
[root@node2 ~]# mount /stratis/think_pool/think_fs /strav/
[root@node2 ~]# df -hT
/dev/mapper/stratis-1-91ab9faf36a540f49923321ba1c5e40d-thin-fs-ade6fdaab06449109540c2f3fdb9417d xfs 1.0T 7.2G 1017G 1% /strav
커널을 업그레이드하고 기본적으로 새 커널을 시작합니다. 이 주소에서 커널을 다운로드하세요:
ftp://server1.domain10.example.com/pub/update/new.kernel
ftp://server1.domain10.example.com/pub/update/new.kernel
正解:
Download the new kernel file and then install it.
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
[root@desktop8 Desktop]# rpm -ivh kernel-*
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-root rd_LVM_LV=vol0/root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-71.7.1.el6.x86_64.img
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
[root@desktop8 Desktop]# rpm -ivh kernel-*
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-root rd_LVM_LV=vol0/root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-71.7.1.el6.x86_64.img
1부(Node1 서버)
작업 11 [향후 작업 일정]
사용자 natasha는 매일 현지 시간으로 14:23에 실행되는 cron 작업을 구성해야 하며 동일한 cron 작업이 2분마다 실행되어 다음을 실행합니다.
/bin/echo 안녕하세요
작업 11 [향후 작업 일정]
사용자 natasha는 매일 현지 시간으로 14:23에 실행되는 cron 작업을 구성해야 하며 동일한 cron 작업이 2분마다 실행되어 다음을 실행합니다.
/bin/echo 안녕하세요
正解:
* [root@node1 ~]# crontab -l -u natasha
no crontab for natasha
[root@node1 ~]# crontab -e -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
crontab: installing new crontab
[root@node1 ~]# crontab -l -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
[root@node1 ~]# systemctl status crond.service
* ### For Checking ###
[root@node1 ~]# tail -f /var/log/cron
Mar 23 13:23:48 node1 crontab[10636]: (root) REPLACE (natasha)
Mar 23 13:23:48 node1 crontab[10636]: (root) END EDIT (natasha)
Mar 23 13:23:50 node1 crontab[10638]: (root) LIST (natasha)
Mar 23 13:24:01 node1 crond[1349]: (root) FAILED (loading cron table)
Mar 23 13:24:02 node1 CROND[10673]: (natasha) CMD (/bin/echo 2min)
no crontab for natasha
[root@node1 ~]# crontab -e -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
crontab: installing new crontab
[root@node1 ~]# crontab -l -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
[root@node1 ~]# systemctl status crond.service
* ### For Checking ###
[root@node1 ~]# tail -f /var/log/cron
Mar 23 13:23:48 node1 crontab[10636]: (root) REPLACE (natasha)
Mar 23 13:23:48 node1 crontab[10636]: (root) END EDIT (natasha)
Mar 23 13:23:50 node1 crontab[10638]: (root) LIST (natasha)
Mar 23 13:24:01 node1 crond[1349]: (root) FAILED (loading cron table)
Mar 23 13:24:02 node1 CROND[10673]: (natasha) CMD (/bin/echo 2min)
zsh라는 패키지 하나가 /pub/updates 디렉토리 아래 ftp://server1.example.com에 덤프되고 FTP 서버는 192.168.0.254입니다. zsh 패키지를 설치하세요.
正解:
rpm -ivh ftp://server1/example.com/pub/updates/zsh-*
or
Login to ftp server : ftp ftp://server1.example.com using anonymous user.
Change the directory: cd pub and cd updates
Download the package: mget zsh-*
Quit from the ftp prompt : bye
Install the package
rpm -ivh zsh-*
Verify either package is installed or not : rpm -q zsh
or
Login to ftp server : ftp ftp://server1.example.com using anonymous user.
Change the directory: cd pub and cd updates
Download the package: mget zsh-*
Quit from the ftp prompt : bye
Install the package
rpm -ivh zsh-*
Verify either package is installed or not : rpm -q zsh
일부 사용자 홈 디렉토리는 시스템에서 공유됩니다. showmount -e localhost 명령을 사용하면 공유 디렉토리가 표시되지 않습니다. 공유 사용자 홈 디렉토리에 액세스합니다.
正解:
Verify the File whether Shared or not ? : cat /etc/exports
Start the nfs service: service nfs start
Start the portmap service: service portmap start
Make automatically start the nfs service on next reboot: chkconfig nfs on Make automatically start the portmap service on next reboot: chkconfig portmap on Verify either sharing or not: showmount -e localhost Check that default firewall is running on system?
If running flush the iptables using iptables -F and stop the iptables service.
Start the nfs service: service nfs start
Start the portmap service: service portmap start
Make automatically start the nfs service on next reboot: chkconfig nfs on Make automatically start the portmap service on next reboot: chkconfig portmap on Verify either sharing or not: showmount -e localhost Check that default firewall is running on system?
If running flush the iptables using iptables -F and stop the iptables service.
YUM 소스가 제공되었습니다.
http://instructor.example.com/pub/rhel6/dvd
시스템을 구성하면 정상적으로 사용할 수 있습니다.
http://instructor.example.com/pub/rhel6/dvd
시스템을 구성하면 정상적으로 사용할 수 있습니다.
正解:
/etc/yum.repos.d/base.repo
[base]
name=base
baseurl=http://instructor.example.com/pub/rhel6/dvd
gpgcheck=0
yum list
[base]
name=base
baseurl=http://instructor.example.com/pub/rhel6/dvd
gpgcheck=0
yum list
사용자 계정 생성
다음 사용자 계정을 만들고 확인란이 활성화되어 있는지 확인하세요.
- sysmgrs라는 그룹
- sysmgrs 그룹에 보조 그룹으로 속한 사용자 natasha
- sysmgrs 그룹에 보조 그룹으로 속한 사용자 harry
- 시스템의 대화형 셸에 액세스할 수 없고 sysmgrs의 멤버가 아닌 사용자 sarah
- 나타샤, 해리, 사라의 비밀번호는 모두 "flectrag"여야 합니다.
다음 사용자 계정을 만들고 확인란이 활성화되어 있는지 확인하세요.
- sysmgrs라는 그룹
- sysmgrs 그룹에 보조 그룹으로 속한 사용자 natasha
- sysmgrs 그룹에 보조 그룹으로 속한 사용자 harry
- 시스템의 대화형 셸에 액세스할 수 없고 sysmgrs의 멤버가 아닌 사용자 sarah
- 나타샤, 해리, 사라의 비밀번호는 모두 "flectrag"여야 합니다.
正解:
[root@node1 ~]# groupadd sysmgrs
[root@node1 ~]# useradd -G sysmgrs natasha
[root@node1 ~]# useradd -G sysmgrs harry
[root@node1 ~]# useradd -s /bin/false sarah
[root@node1 ~]# echo tianyun |passwd --stdin natasha
[root@node1 ~]# echo tianyun |passwd --stdin harry
[root@node1 ~]# echo tianyun |passwd --stdin sarah
[root@node1 ~]# useradd -G sysmgrs natasha
[root@node1 ~]# useradd -G sysmgrs harry
[root@node1 ~]# useradd -s /bin/false sarah
[root@node1 ~]# echo tianyun |passwd --stdin natasha
[root@node1 ~]# echo tianyun |passwd --stdin harry
[root@node1 ~]# echo tianyun |passwd --stdin sarah