PM2 설치 및 사용


설치(글로벌)
$ npm install pm2 -g




NestJS에서 실행

$pm2 start npm -- start


만약 pm2로 실행하는데 관리자 권한이 필요하면 'authbind'설치 (80포트 기준)


sudo apt-get update sudo apt-get install authbind sudo touch /etc/authbind/byport/80 sudo chown ubuntu /etc/authbind/byport/80 sudo chmod 755 /etc/authbind/byport/80 authbind --deep pm2 update


authbind --deep pm2 start [실행할 js파일]


pm2 start bot.py --interpreter python3



댓글

이 블로그의 인기 게시물

Lesson 12_1 프로퍼티 노드(Property Node)

DAQ로 전압 측정하기-2

Lesson 12_2 참조를 이용한 프로퍼티노드(Property Node)