차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| run_level_변경 [2015/02/23 07:08] – 만듦 zzung | run_level_변경 [2015/06/18 15:49] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Run Level 변경 ====== | ====== Run Level 변경 ====== | ||
| ===== RedHat 6 ===== | ===== RedHat 6 ===== | ||
| + | 1. 현재 설정된 runlevel 확인 | ||
| + | <code vim> | ||
| + | [root@localhost ~]# runlevel | ||
| + | N 3 | ||
| + | </ | ||
| + | 2. inittab 에서 직접 runlevel 변경하기 | ||
| + | <code vim> | ||
| + | [root@localhost ~]# vim /etc/init | ||
| + | </ | ||
| + | <code vim> | ||
| + | # inittab is only used by upstart for the default runlevel. | ||
| + | # | ||
| + | # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. | ||
| + | # | ||
| + | # System initialization is started by / | ||
| + | # | ||
| + | # Individual runlevels are started by / | ||
| + | # | ||
| + | # Ctrl-Alt-Delete is handled by / | ||
| + | # | ||
| + | # Terminal gettys are handled by / | ||
| + | # with configuration in / | ||
| + | # | ||
| + | # For information on how to write upstart event handlers, or how | ||
| + | # upstart works, see init(5), init(8), and initctl(8). | ||
| + | # | ||
| + | # Default runlevel. The runlevels used are: | ||
| + | # 0 - halt (Do NOT set initdefault to this) | ||
| + | # 1 - Single user mode | ||
| + | # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) | ||
| + | # 3 - Full multiuser mode | ||
| + | # 4 - unused | ||
| + | # 5 - X11 | ||
| + | # 6 - reboot (Do NOT set initdefault to this) | ||
| + | # | ||
| + | id: | ||
| + | </ | ||
| + | 3. System reboot | ||
| + | <code vim> | ||
| + | [root@localhost ~]# reboot | ||
| + | </ | ||
| ===== RedHat 7 ===== | ===== RedHat 7 ===== | ||