Centos 7 Run level 변경방법
자주 사용하는 시스템 런레벨
런레벨 용도
0 종료
1 싱글사용자
2 다중사용자 (multi-user.target)
5 그래픽 환경 (graphic.target)
6 재부팅
Centos7에서는 아래 명령어로 변경 가능 (재부팅 후부터 반영)
[root@localhost ~]# systemctl set-default graphical.target
현재환경에서 변경
[root@localhost ~]# systemctl isolate graphical.target
현재 사용중인 런레벨 확인 방법
who명령어로 확인
[root@localhost ~]# who -r run-level 3 2014-09-18 10:22
systemctl 명령어로 확인
[root@localhost ~]# systemctl get-default multi-user.target
<자료출처 : https://blog.naver.com/artop0420/222846406408 >
|
|