我試圖用節點檢查調試我的代碼,但我在我的終端窗口中一次又一次地得到這個錯誤聽EADDRINUSE錯誤而在帆調試
$ sudo sails debug
info: Running app in debug mode...
info: You probably want to install/run node-inspector to help with debugging!
info: https://github.com/node-inspector/node-inspector
info: (to exit, type <CTRL>+<C>)
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Agent.Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at Agent.Server.listen (net.js:1267:5)
at Object.start (_debugger_agent.js:20:9)
at startup (node.js:86:9)
at node.js:814:3
要解決
錯誤:聽EADDRINUSE
我試過關閉其他終端窗口(其中我的節點檢查器運行荷蘭國際集團)。 我已經提到了answers already here on StackOverflow,但他們沒有工作 我甚至試過給這個命令殺死進程:
$ killall -9 node
No matching processes belonging to you were found
但還是它不工作。 有人請幫我解決這個問題。
謝謝@CodeBling 我在Mac上運行它,我試圖殺死使用該端口,但也沒有工作的單個進程。 –
@PrernaJain我看到你在上面的問題中嘗試過'killall -9'。殺死單個進程時你試過'-9',它仍然存在?在這種情況下,看看[這裏](http://stackoverflow.com/questions/16944886/how-to-kill-zombie-process),它可能是一個殭屍進程(注意'Z'標誌)。 –
是的,它實際上是一個殭屍程序,這是有幫助的,它對我很好。 再次感謝@代碼 –