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
반응형
'Linux > 명령어(CentOS)' 카테고리의 다른 글
가장 많이 검색하는 리눅스 명령어와 사용 방법 (간략) (0) | 2023.12.07 |
---|---|
[CentOS] useradd 사용자 생성의 모든 것 !!!! (0) | 2022.03.08 |
[CentOS] sudo 명령어 권한 부여 (0) | 2022.02.25 |
[CentOS] 리눅스 파일출력 cat 명령어 (0) | 2022.02.23 |