리눅스
Rocky9-ServerB 설치 및 셋팅
궁굼하다
2023. 6. 18. 15:15
728x90
반응형
dnf -y install nano bind-utils net-tools wget unzip bzip2
useradd rocky
echo 'rocky' | passwd --stdin rocky

repo 재설정
cd /etc/yum.repos.d/
rf -f *.repo
ls
wget http://download.hanbit.co.kr/rocky/9/This.repo
ls
dnf clean all # 기존 저장소 기록 삭제

네트워크 설정
cd /etc/NetworkManager/system-connections/
ls
nano ens160.nmconnection
[ipv4]
method=manual
address1=192.168.111.200/24,192.168.111.2
dns=192.168.111.2
nmcli connection down 장치이름
nmcli connection up 장치이름
reboot
# test
ifconfig ens160
ping -c 5 www.google.com
selinux 기능 삭제
grubby --update-kernel ALL --args selinux=0
reboot
sestatus -> disabled
800x600 해상도 변경
nano /etc/default/grub
# 6행 끝 'vga=771' 입력, shift+alt+3 행 표시, ctrl+x를 누르고 Y, Enter를 차례대로 눌러 파일 저장
grub2-mkconfig -o /boot/grub2/grub.cfg # 설정 적용
reboot
# root 로그인 후
halt -p # 시스템 종료
반응형