Contents
see List작성일 2015. 03. 10.
CentOS 7 콘솔 부팅 모드 설정
CentOS 7에서 GUI 없이 텍스트 콘솔 모드로 부팅하도록 설정하는 방법입니다.
콘솔 모드로 변경
systemctl set-default multi-user.targetGUI 모드로 복원
systemctl set-default graphical.target현재 기본 타겟 확인
systemctl get-default런레벨(Target) 종류
| Target | 기존 런레벨 | 설명 |
|---|---|---|
| poweroff.target | 0 | 시스템 종료 |
| rescue.target | 1 | 단일 사용자 모드 |
| multi-user.target | 3 | 다중 사용자 (콘솔) |
| graphical.target | 5 | 그래픽 모드 (GUI) |
| reboot.target | 6 | 시스템 재시작 |
즉시 모드 변경 (재시작 없이)
# 콘솔 모드로 전환
systemctl isolate multi-user.target
# GUI 모드로 전환
systemctl isolate graphical.targetGRUB에서 일회성 부팅 모드 변경
- 부팅 시 GRUB 메뉴에서 'e' 키 누르기
- linux16 또는 linuxefi 줄 찾기
- 줄 끝에 추가:
systemd.unit=multi-user.target - Ctrl+X로 부팅
GUI 패키지 설치/제거
# GNOME 데스크톱 설치
yum groupinstall "GNOME Desktop"
# 최소 GUI 설치
yum groupinstall "X Window System" "Fonts"
# GUI 관련 패키지 제거 (용량 확보)
yum groupremove "GNOME Desktop"서버 환경 권장 설정
# 콘솔 모드로 설정 (서버용)
systemctl set-default multi-user.target
# 불필요한 서비스 비활성화
systemctl disable gdm
systemctl disable NetworkManager
# SSH만 활성화
systemctl enable sshd관련 명령어
# 현재 런레벨 확인
runlevel
who -r
# 서비스 상태 확인
systemctl status multi-user.target
systemctl status graphical.target
# 타겟 의존성 확인
systemctl list-dependencies multi-user.targetos
| No | 작성일 | Title |
|---|---|---|
| 245 | 2015. 03. 11. | [ centos ] centos /lib/ld-linux.so.2: bad ELF interpreter: 그런 파일이나 디렉터리가 없습니다 오류 |
| 244 | 2015. 03. 10. | [ centos ] centos 7 apache 설치 및 tomcat 연동 |
| 243 | 2015. 03. 10. | [ CentOS ] centos 7 console boot |
| 226 | 2015. 03. 09. | [ centos ] centos 7 에 tomcat 서비스등록 ( systemclt ) |
| 225 | 2015. 03. 08. | [ centos ] centos 7 samba 설치하기 공유 폴더 윈도우에서 사용하기 |
| 224 | 2015. 03. 08. | [ centos ] centos 7 service 관리 ( systemctl ) |
| 223 | 2015. 03. 08. | [ centos ] centos 7 firewall ( 방화벽 ) 설정 |
| 183 | 2015. 03. 08. | [ centos ] centos 7 nfs 설정 |
| 147 | 2015. 02. 10. | [ OS ] 로드밸런싱 ( load balancing ) 과 세션 클러스트링 ( session clustering )의 개념 |
| 146 | 2015. 01. 30. | [ windows ] 윈도우 서버 원격 접속시 라이선스 문제 발생할때 |