处理这个情况的办法是等一段事件再重试: server.on('error',function(e){if(e.code=='EADDRINUSE'){console.log('Addressinuse,retrying