欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

分析Node.js connect ECONNREFUSED錯誤

 更新時間:2013年04月09日 09:51:17   作者:  
最近在準備Angularjs +node.js demo的時候在我的mac開發(fā)中 遇見此錯誤

最近在準備Angularjs +node.js demo的時候在我的mac開發(fā)中 遇見此錯誤,如下:

events.js:71

throw arguments[1]; // Unhandled 'error' event

               ^

Error: connect ECONNREFUSED

at errnoException (net.js:770:11)

at Object.afterConnect [as oncomplete] (net.js:761:19)

最后在stackoverflow找到解決方案,這主要由于上一次node.js server進程仍然還在運行沒關閉掉,所以我們需要殺掉此進程,在mac上操作為:

ps aux | grep node

twer 7668 4.3 1.0 42060 10708 pts/1 Sl+ 20:36 0:00 node server

twer 7749 0.0 0.0 4384 832 pts/8 S+ 20:37 0:00 grep --color=auto node

從輸出可以看見進程PID7668在使用,所以我們必須殺掉這頑固分子,運行kill -9 7668. Ok,一鍵搞定,可以重新開啟server了。

相關文章

最新評論