Skip to Content
Suffering builds character
아카이브24.Linux실습서비스 관리6.실행 중인 서비스 확인

6.실행 중인 서비스 확인

1. 시나리오

서버에 어떤 서비스들이 실행 중인지 확인하고 싶은 경우,

실행 중인 Spring Boot, Nginx, DB 등의 서비스 상태를 확인하기 위해서는 systemctl을 활용

2. 실습 명령어

terminal
# systemd로 실행 중인 모든 서비스 확인 systemctl list-units --type=service --state=running # 특정 서비스 상태 확인 systemctl status myapp systemctl status nginx # 모든 프로세스 확인 ps aux | less ps aux | grep java

3. 명령어 설명

  • systemctl list-units : 활성화된 서비스 확인
  • systemctl status : 특정 서비스 상태 확인
  • ps aux : 프로세스 전체 확인, 메모리/CPU 사용량 확인
Last updated on