본문 바로가기
자격증/RHCSA

[RHCSA] 기출문제 2

by JINJINC 2024. 4. 29.
728x90
반응형

rhcsa

Repository 설정하기

 

RHCSA에서는 repository url 을 제공한다.

 

# dnf config-manager --add-repo repository_URL

 

# dnf config-manager --add-repo [repository_url] 

입력하게되면 /etc/yum.repo.d/ 디렉토리 아래에 repo가 생성되어진다.

 

#cd /etc/yum.repo.d/
#ls => repo확인]
#mv [url.repo] BaseOS.repo
#mv [url2.repo] AppStream.repo  
#vi BaseOS.repo
=> gpgcheck=0 으로 추가 
만약 gpgkey가 있다면?
=> gpgkey=[gpgkey]
     gpgcheck=1 
추가
#dnf clean all
#dnf repolist
#dnf update
=> repo를 잘 불러오는지 확인

 

Crontab 설정하기

 

systemctl start crond

systemctl enable crond

 

systemctl is-enabled crond ⇒ 현재 활성화 여부확인

systemctl status crond

 

crontab에 어떤것을 실행시킬지는 문제에 나오는대로 확인함 

crontab -u natasha -e // -u: user, -e: edit
*/2 * * * * logger RH199 exam // 입력후 저장
crontab -u natasha -l // 적용내역 확인

 

tail -f /var/log/messages

명령어로 로그가 제대로 찍히는지 확인하기 

 

Apr 29 13:58:02 node1 systemd[1]: Started User Manager for UID 1002.
Apr 29 13:58:02 node1 systemd[1]: Started Session 30 of User natasha.
Apr 29 13:58:02 node1 natasha[35976]: RH200 exam.

 

 

* (분)     *(시)      *(일)       *(월)         *(요일)

[0-59]    [0-23]    [1-31]     [1-12]    [0(일)-7(일)]    

 

 

 

 

 

 

 

 

728x90
반응형

'자격증 > RHCSA' 카테고리의 다른 글

[RHCSA] 기출문제 1  (0) 2024.04.29
[RSCSA v9] 시험 등록 과정 및 주의사항  (1) 2024.04.29

댓글