■ Communications /↘ Linux
리눅스 자동 실행 프로세스 관리(chkconfig)
N's Story
2019. 5. 8. 21:32
728x90
반응형
리눅스 자동 실행 프로세스 관리(chkconfig)
시스템 부팅시 프로세스를 자동 실행 여부를 설정 가능하다.
command
chkconfig --list (이름)
프로세스 런레벨 상태 확인
chkconfig --add (이름)
프로세스 추가
chkconfig --del (이름)
프로세스 삭제
chkconfig [--level (레벨)] 이름 [on|off|reset]
프로세스 런레벨별 관리 // 런레벨 미입력 후 on 입력시 레벨 2~5 적용
* level 옵션
0 halt 시스템 종료
1 single-user mode 시스템 점검 및 복원
2 multi-user mode(without nwtwork) 다중 사용자 모드(네트워크 미지원)
3 multi-user mode(only console login) 다중 사용자 모드
4 not used 미사용
5 multi-user mode with display manager GUI 환경
6 reboot 시스템 재시작
ex) chkconfig httpd on
→ httpd 서비스 레벨 2~5 시작
ex) chkconfig --level 2 httpd on
→ httpd 서비스 레벨 2 시작
OS : CentOS 6.9
728x90
반응형