최신 EX200日本語 무료덤프 - RedHat Red Hat Certified System Administrator - RHCSA (EX200日本語版)
一部のユーザーのホームディレクトリは、システムから共有されます。 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.
sudo権限設定を追加する
sysmgrs グループのメンバーがパスワードを入力せずに sudo を使用できるようにします。
sysmgrs グループのメンバーがパスワードを入力せずに sudo を使用できるようにします。
정답:
[root@node1 ~]# visudo
...
%wheel ALL=(ALL) NOPASSWD: ALL
%sysmgrs ALL=(ALL) NOPASSWD: ALL
# Verification (mandatory operation)
[root@node1 ~]# su - natasha
[natasha@node1 ~]# sudo cat /etc/shadow
...
%wheel ALL=(ALL) NOPASSWD: ALL
%sysmgrs ALL=(ALL) NOPASSWD: ALL
# Verification (mandatory operation)
[root@node1 ~]# su - natasha
[natasha@node1 ~]# sudo cat /etc/shadow
システム最適化構成
システムに適した推奨の調整済み構成セットを選択し、それをデフォルトとして設定します。
システムに適した推奨の調整済み構成セットを選択し、それをデフォルトとして設定します。
정답:
# 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
バックアップを作成する
/ usr / localの内容を含む/root/backup.tar.bz2という名前のバックアップファイルを作成します。tarはbzip2を使用して圧縮する必要があります。
/ usr / localの内容を含む/root/backup.tar.bz2という名前のバックアップファイルを作成します。tarはbzip2を使用して圧縮する必要があります。
정답:
cd /usr/local
tar -jcvf /root/backup.tar.bz2
mkdir /test
tar -jxvf /root/backup.tar.bz2 -C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change -j to -z.
tar -jcvf /root/backup.tar.bz2
mkdir /test
tar -jxvf /root/backup.tar.bz2 -C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change -j to -z.
論理ボリュームのサイズを調整する
論理ボリューム「vo」とそのファイルシステムのサイズを 300 MiB に調整し、ファイルシステムの内容が変更されないことを確認します。
注: パーティション サイズが要求されたサイズと正確に一致することはほとんどないため、290 MiB ~ 310 MiB の範囲が許容されます。
ext4 ファイルシステムの場合は、resize2fs を使用してすぐに有効にします。xfs ファイルシステムの場合は、xfs_growfs を使用してすぐに有効にします。
論理ボリューム「vo」とそのファイルシステムのサイズを 300 MiB に調整し、ファイルシステムの内容が変更されないことを確認します。
注: パーティション サイズが要求されたサイズと正確に一致することはほとんどないため、290 MiB ~ 310 MiB の範囲が許容されます。
ext4 ファイルシステムの場合は、resize2fs を使用してすぐに有効にします。xfs ファイルシステムの場合は、xfs_growfs を使用してすぐに有効にします。
정답:
# Scan logical volumes
[root@node2 ~]# lvscan
# Extend the logical volume. With -rL, the filesystem space is adjusted immediately after extending the volume.
[root@node2 ~]# lvextend -rL 300M /dev/myvol/vo
# Check the changes
[root@node2 ~]# lsblk
[root@node2 ~]# lvs
# Verification
[root@node2 ~]# df -h
[root@node2 ~]# lvscan
# Extend the logical volume. With -rL, the filesystem space is adjusted immediately after extending the volume.
[root@node2 ~]# lvextend -rL 300M /dev/myvol/vo
# Check the changes
[root@node2 ~]# lsblk
[root@node2 ~]# lvs
# Verification
[root@node2 ~]# df -h
システムで、isoイメージ/root/examine.isoを/ mnt / isoディレクトリにマウントしました。また、システムの再起動後、自動的にマウント(永続的なマウント)を有効にします。
정답:
mkdir -p /mnt/iso
/etc/fstab:
/root/examine.iso /mnt/iso iso9660 loop 0 0 mount -a
mount | grep examine
/etc/fstab:
/root/examine.iso /mnt/iso iso9660 loop 0 0 mount -a
mount | grep examine
NTPを構成します。
NTPサービスの構成、サーバー時間の同期、NTPサーバー:Classroom.example.com
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
ネットワーク設定を構成する
次のネットワーク設定で 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
1つのドメインRHCEがラボで構成され、ドメインサーバーはserver1.example.comです。 nisuser2001、nisuser2002、nisuser2003ユーザーがサーバー192.168.0.254:/rhome/stationx/nisuser2001に作成されます。 NISユーザーがシステムにログインするときに、ホームディレクトリが自動的にマウントされるようにしてください。ホームディレクトリは、サーバー/ rhome / stationx /で個別に共有されます。xはステーション番号です。
정답:
use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> -- update Example: authconfig --niserver=192.168.0.254 --nisdomain=RHCE --update or system-config-authentication Click on Enable NIS Type the NIS Domain: RHCE Type Server 192.168.0.254 then click on next and ok You will get a ok message.
Create a Directory /rhome/stationx where x is your station number.
vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60 vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
Service autofs restart
Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On
/etc/auto.master file we specified the mount point the configuration file for mount point.
Create a Directory /rhome/stationx where x is your station number.
vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60 vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
Service autofs restart
Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On
/etc/auto.master file we specified the mount point the configuration file for mount point.
/ etc / fstabドキュメントを/ var / TMPディレクトリにコピーします。このドキュメントの許可を設定するには、次の要件に従ってください。
*このドキュメントの所有者はルートである必要があります。
*このドキュメントはルートグループに属します。
*ユーザーmaryには、このドキュメントの読み取りおよび書き込み権限があります。
*ユーザーaliceには、このドキュメントの読み取りおよび実行権限があります。
* bobという名前のユーザーを作成し、uidを1000に設定します。ボブには、このドキュメントの読み取りおよび書き込み権限があります。
*すべてのユーザーは、システム内でこのドキュメントの読み取り権限を持っています。
*このドキュメントの所有者はルートである必要があります。
*このドキュメントはルートグループに属します。
*ユーザーmaryには、このドキュメントの読み取りおよび書き込み権限があります。
*ユーザーaliceには、このドキュメントの読み取りおよび実行権限があります。
* bobという名前のユーザーを作成し、uidを1000に設定します。ボブには、このドキュメントの読み取りおよび書き込み権限があります。
*すべてのユーザーは、システム内でこのドキュメントの読み取り権限を持っています。
정답:
cp /etc/fstab /var/tmp
chown root:root /var/tmp/fstab
chmod a-x /var/tmp/fstab
setfacl -m u:mary:rw /var/tmp/fstab
setfacl -m u:alice:rx /var/tmp/fstab
useradd -u 1000 bob
chown root:root /var/tmp/fstab
chmod a-x /var/tmp/fstab
setfacl -m u:mary:rw /var/tmp/fstab
setfacl -m u:alice:rx /var/tmp/fstab
useradd -u 1000 bob