리눅스의 init 명령어에 대해서 적어 보겠다
#cat /etc/inittab
# 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 /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# 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)
#
이렇게 정의 되어 있는걸 확인 할수 있다.
많이 쓰는 명령어는
# init 0 ------> 전원 off
# init 6 ------> 서버 리부팅
'리눅스' 카테고리의 다른 글
centos sshfs 사용법 (0) | 2017.11.30 |
---|---|
centos SSL 인증서 설치 방법 (0) | 2017.11.30 |
centos openssh 7.0 업데이트 하기 (0) | 2017.01.24 |
centos zabbix agent 설치 (0) | 2017.01.10 |
Centos zabbix 설치 (0) | 2017.01.10 |