lku avatar

nodejs 앱이 사용하는 컴퓨터 자원 모니터링

lku

Published: 27 Dec 2017 › Updated: 27 Dec 2017nodejs 앱이 사용하는 컴퓨터 자원 모니터링

nodejs 앱이 사용하는 컴퓨터 자원 모니터링

오늘은 nodejs에서 앱들이 사용하는 컴퓨터 자원을 모니터링하는 모듈을 살펴보고자 한다.

  • 설치
    npm install -g pm2

  • 시작
    pm2 start app.js --name "앱이름"

    위 그림과 같이 이름부분에 원하는 앱이름을 설정할 수 있다.

  • 리스트 확인
    pm2 list

  • 앱 중단
    pm2 stop "앱이름"

  • 앱 재시작
    pm2 restart "앱이름"

  • 앱 pm2 에서 삭제
    pm2 delete "앱이름"

위와 같이 콘솔에서 확인 할 수 있지만 웹으로도 앱의 상태를 확인 할 수 있다.

Leave nodejs 앱이 사용하는 컴퓨터 자원 모니터링 to:

Written by

Read more #node posts


Best Posts From lku

We have not curated any of lku's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From lku