티스토리 뷰
배포판 버전 확인
# grep . /etc/*-release
# rpm -qa *-release서비스 관리
CentOS 7 부터 서비스 데몬 관리 방법이 달라졌다. 기존의 init system에서 systemd로 기본 시스템 관리 데몬이 변경되었기 때문이다.
서비스 예시 : elasticsearch / .service 확장자 생략 가능
서비스 등록
# systemctl mask elasticsearch.service서비스 삭제
# systemctl unmask elasticsearch.service서비스 상태 확인
# systemctl status elasticsearch.service서비스 구동
# systemctl start elasticsearch.service서비스 중지
# systemctl stop elasticsearch.service서비스 재실행
# systemctl restart elasticsearch.service부팅시 서비스 자동 시작
# systemctl enable elasticsearch.service부팅시 서비스 자동 시작 비활성화
# systemctl disable elasticsearch.service서비스 목록
설치된 모든 unit파일
# systemctl list-unit-files
또는
# systemctl list-units조건에 맞는 서비스
구동에 실패한 서비스
# systemctl list-units --state=failed모든 active 서비스 목록
# systemctl list-units --state=active서비스중에 상대가 running인 목록
# systemctl list-units --type=service --state=running 특정서비스 상태조회
active 상태 조회
# systemctl is-active elasticsearchenable 상태 조회(부팅시 실행되는 서비스인지)
# systemctl is-enabled elasticsearch'ICT Eng > Linux' 카테고리의 다른 글
| [Linux] CentOS 7 Time Zone 변경 (0) | 2018.04.10 |
|---|
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ORM
- 시간복잡도
- 인프런
- Vue.js
- 젠킨스
- vuejs
- IT융합인력양성사업단
- 무선통신소프트웨어연구실
- 레드블랙트리
- 라즈베리파이
- vuex
- Java
- Wisoft
- JPA
- RBT
- 한밭대학교
- 순환
- springboot
- AWS
- 정렬
- Spring
- github
- Spring Boot
- Recursion
- 스프링부트
- 자바
- 한밭이글스
- Raspberry Pi
- Algorithm
- 알고리즘
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
글 보관함