반응형
서비스 상태 확인
systemctl status service_name.service
서비스 시작
systemctl start service_name.service
서비스 중지
systemctl stop service_name.service
서비스 재시작
systemctl restart service_name.service
부팅시 자동 시작
systemctl enable service_name.service
부팅시 자동 시작 해제
systemctl disable service_name.service
서비스 목록 보기
systemctl list-units --type=service
*** systemctl *** 을 이용하는 시스템에서 /etc/rc.d/init.d 를 이용하여 서비스를 이용하는 경우
서비스 시작시 먹통이 되는 경우가 있다. 이때는 해당 서비스 파일 상단에
SYSTEMCTL_SKIP_REDIRECT=1 을 추가해 주면 된다.
반응형