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 EventEmitter.listen (/root/webServer/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/root/webServer/express.js:46:5)
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)
之前开了一个8888 的端口,可以访问,后来把 shell 死掉了,8888 依然可以访问。之后在从新运行 8888端口的服务
报了上面的错误
解决办法:pkill node