Linux/명령어(CentOS)

[CentOS] 리눅스 서비스 명령어 systemctl

JoJun's 2022. 2. 22. 15:18
728x90
반응형

리눅스 서버에서 실행 중이거나 특정 서비스의 상태를 확인할 수 있는 명령어 입니다.

서비스 상태 확인

$ systemctl status service_name.service

서비스 시작

$ systemctl start service_name.service

서비스 재시작

$ systemctl restart service_name.service

서비스 중지

$ systemctl stop service_name.service

서버 부팅 시 서비스 자동 시작

$ systemctl enable service_name.service

서버 부팅 시 서비스 자동 시작 해제

$ systemctl disable service_name.service

서비스 실행 중인 목록 보기

$ systemctl list-units --type=service

모든 서비스 목록 보기

$ systemctl list-unit-files --type=service
728x90
반응형