본문 바로가기

Dev. OS

CentOS7 서비스 데몬 관리 방법

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