본문 바로가기
서버/nodejs

forever가 자꾸 stopped 될 때

by Jason95 2021. 2. 10.

forever 대신 pm2를 쓴다

pm2는 crash가 발생하여 stopped 될 때마다 restart 시켜주는 기능이 있다.

pm2 show [id]를 통해 자동으로 진행된 restarts 횟수를 확인할 수 있다.

restarts

참고 : stackoverflow.com/questions/28810719/how-to-run-node-js-using-forever-without-stopping

참고2 : stackoverflow.com/questions/31918929/forever-process-for-node-js-server-is-not-running-all-time

참고3 : www.npmtrends.com/forever-vs-pm2-vs-supervisor

'서버 > nodejs' 카테고리의 다른 글

서버 시작 파일 변경  (0) 2021.02.16
URL query parameter에 '+(plus)' 기호 사라짐  (0) 2021.02.08
node.js에서 req.session이 undefined인 경우  (0) 2021.02.02
Forever로 실행하기  (0) 2021.02.01
서버 통신 구조  (0) 2020.12.22