events.js:72 throw er; // Unhandled 'error' event 에러메세지 대처법
- 둥지
- Development
- 분류
- node.js
- 등록일
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at Server.listen (net.js:1127:5)
at Object.<anonymous> (folderName/app.js:34:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
위와같은 오류메세지가 나온다면 현재 서버의 다른곳에서 동일한 포트(또는 앱)가 사용되고 있다고 한다.
그래서 실행하고 있는 앱이있는 터미널을 종료하고나서 다시 실행한다.
아니면 아래와 같은 순서로 강제로 실행되고 있는 앱을 찾아서 죽여도 된다.
ps aux | grep node
Find the process ID (왼쪽에서 두번째)
kill -9 PRCOCESS_ID
0개의 댓글
등록된 댓글이 없습니다.