티스토리 뷰
$ node app.js 로는 실행 후 포트 리스닝이 문제 없는데
pm2 로 start 시 포트 리스닝이 계속 안되는 문제가 발생!
자세한 pm2 프로세스 상태를 보기 위해
$ pm2 show <id|name>
명령 실행
에러 로그 경로를 확인
error log path | ~/.pm2/logs/callback-error-0.log
less 명령으로 열어서 오류 로그 확인
$ less ~/.pm2/logs/callback-error-0.log
Error: Cannot find module '~/.nvm/....../lib/node_modules/pm2/lib/ProcessContainerFork.js'
저 오류는 pm2 env 가 변경되어 유발된다고 하며
해결은
$ rm -rf ~/.pm2
$ pm2
로고가 뜨며 pm2 설정이 업데이트 됨.
다시 pm2 로 node 프로그램 띄워보면 됨.
$ pm2 start app.js --name "xxx-app"
'웹프로그래밍 > NodeJS' 카테고리의 다른 글
npm install 시 .npm/_cacache/tmp/git-clone permission denied 문제 발생 (0) | 2018.11.25 |
---|---|
NodeJS Experss 4.x 이상에서 Query string 받기 (0) | 2016.07.14 |
ERR! Refusing to install XXX as a dependency of itself 해결법 (0) | 2016.07.14 |
CentOS Socket.io 로드밸런싱 (0) | 2016.05.18 |
Cloud9에서 git push 후 Authentication failed 오류 발생 해결 (0) | 2014.04.28 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- CSS
- IOS
- mssql
- nginx
- PHP
- Prototype
- Linux
- nodejs
- JSON
- ASP
- JQuery
- javascript
- 안드로이드
- API
- Docker
- iphone
- centos
- macos
- Debug
- Mac
- git
- iis
- laravel
- Android
- Wordpress
- sencha touch
- 한글
- classic asp
- IE
- 워드프레스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함