[리눅스] Centos7에서 서비스 관리 > 정보공유

본문 바로가기

정보공유

일반글
Server

[리눅스] Centos7에서 서비스 관리

페이지 정보

게시물QR코드

본문

CentOS 7 부터 서비스 데몬 관리 방법이 달라졌습니다. 기존의 init system 에서 systemd 로 기본 시스템 관리 데몬이 변경되었기 때문입니다.


1. 서비스 재실행(sshd 의 경우)

# systemctl restart sshd.service


2. 서비스 중지(sshd 의 경우)

# systemctl stop sshd.service


3. 서비스 시작(sshd 의 경우)

# systemctl start sshd.service


4. 서비스 상태보기(sshd 의 경우)

# systemctl status sshd.service


5. 부팅시 서비스 시작하기(sshd 의 경우)

# systemctl enable sshd.service


6. 부팅시 서비스 시작하지 않음(sshd 의 경우)

# systemctl disable sshd.service


7. 부팅시 실행되는 서비스인지 검사(sshd의 경우)

# systemctl is-enabled sshd


8. 서비스 목록보기

# systemctl list-unit-files --type=service

댓글목록

등록된 댓글이 없습니다.

  • Addr.부산광역시 동구 중앙대로 319, 9층 L4호(초량동, 부산YMCA빌딩) Email. gnuwiz@naver.com
  • BR. 625-68-00172 TRC. 2019-부산해운대-1186 TEL. 0507-1382-2790
All rights reserved.