Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- python 3.5.10
- CentOS 6.10
- python 3.X 소스 설치
- gcc update
- epel repository
- httpd.conf
- unique_id
- httpd-dav.conf
- CentOS
- node.js
- Mod_Security 룰 셋
- vimrc 옵션
- httpd-mpm.conf
- CentOS 6
- Node.js 소스 설치
- PHP 5.2 .ini
- httpd-info.conf
- httpd 2.2.32
- httpd-autoindex.conf
- Repository
- Node.js apache 연동
- apache 연동
- httpd-vhosts.conf
- MySQL 5.1.41
- jQuery
- mod_unique_id
- vim color scheme
- MySQL
- httpd-default.conf
- PHP 5.2.17 .ini
Archives
- Today
- Total
곰시기's
[Linux] CentOS 01. 시스템 종료와 재시작 ( poweroff, halt, shutdown, reboot, init ) 본문
Sever/Linux Command
[Linux] CentOS 01. 시스템 종료와 재시작 ( poweroff, halt, shutdown, reboot, init )
곰시기 2020. 10. 29. 17:361. poweroff
1) # poweroff [옵션]
ex) # poweroff -p
= 시스템 즉시 종료
2) 옵션
| 옵션 | 설명 |
| -n | 재부팅 or 종료 전 동기화하지 않음 |
| -f | 강제로 재부팅 or 종료 |
| -p | 즉시 종료 |
| -w | shutdown, reboot 시스템 콜 하지 않고, /var/log/wtmp 파일에 shytdown log만 저장 |
| -v | --verbose : 상세정보 출력 |
2. halt
1) # hlat [옵션]
ex) # halt -p
= 시스템 즉시 종료
2) 옵션
| 옵션 | 설명 |
| -n | 재부팅 or 종료 전 동기화하지 않음 |
| -f | 강제로 재부팅 or 종료 |
| -p | 즉시 종료 |
| -w | shutdown, reboot 시스템 콜 하지 않고, /var/log/wtmp 파일에 shytdown log만 저장 |
| -v | --verbose : 상세정보 출력 |
** 위 두가지의 경우 주로 옵션을 쓰지 않고 사용됨
3. shutdown
1) # shutdown [옵션] [인수] [메시지]
ex) # shutdown -h now bye
= 시스템 즉시 종료, 클라이언트에 bye라는 메시지를 보냄
ex) # shutdown -h +10
= 10분 후 종료 예약
2) 옵션
| 옵션 | 설명 |
| -r | 시스템 재부팅 ex) #shutdown -r +10 |
| -h | shutdown 완료 후 시스템 종료 ex) # shutdown -h now |
| -c | 진행 중인 shutdown 명령을 취소 ex) # shutdown -c |
| -k | 경고 메시지만 출력, 실제 종료는 하지 않음 ex) # shutdown -k +15 |
4. reboot
1) # reboot [옵션] [인수]
ex) # reboot
= 시스템 즉시 종료
2) 옵션 - halt와 옵션 동일
| 옵션 | 설명 |
| -n | 재부팅 전 동기화하지 않음 |
| -f | 강제로 재부팅 |
| -p | 즉시 재부팅 |
| -w | shutdown, reboot 시스템 콜 하지 않고, /var/log/wtmp 파일에 shytdown log만 저장 |
| -v | --verbose : 상세정보 출력 |
5. init
1) # init [옵션]
ex) # init 0
= 시스템 즉시 종료
2) 옵션 ( run-level : 리눅스의 부팅 모드 )
| 옵션 | 설명 |
| 0 | 시스템 종료 |
| 1 | 단독 사용자 모드 ( 시스템 복구 모드 / 텍스트 모드 ) |
| 2 | 다중 사용자 모드 ( 텍스트 모드 / 네트워크 사용 안 함 ) |
| 3 | 다중 사용자 모드 ( 텍스트 모드 ) |
| 4 | 사용 안됨 / 사용자 정의 가능 |
| 5 | 다중 사용자 모드 ( GUI ) |
| 6 | 시스템 재시작 |
'Sever > Linux Command' 카테고리의 다른 글
| [Linux] CentOS 06. 파일의 생성과 삭제 ( touch, rm ) (0) | 2020.10.30 |
|---|---|
| [Linux] CentOS 05. 명령어의 별칭 ( Alias ) (0) | 2020.10.30 |
| [Linux] CentOS 04. 지난 명령어의 확인 ( History ) (0) | 2020.10.30 |
| [Linux] CentOS 03. 디렉토리와 파일의 복사, 이동 ( cp, mv ) (0) | 2020.10.30 |
| [Linux] CentOS 02. 디렉토리 명령어 ( pwd, cd, ls, mkdir, rmdir ) (0) | 2020.10.30 |
Comments