[英]eaddrinuse error i don't know what to do
[2018-02-11T14:41:44.981] [DEBUG] default - { Error: listen EADDRINUSE :::8000
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at Server.listen (net.js:1476:7)
at Server.listen.Server.attach (/home/bot/node_modules/socket.io/lib/index.js:237:9)
at Timeout._onTimeout (/home/bot/site.js:770:29)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '::',
port: 8000 }
So i readed about this error and i understood that i need to make config file somewhere with some script in it but that's the problem i don't know where do i make it in this situation 所以我读到了这个错误,我明白我需要在其中放置一些脚本的地方制作配置文件,但这就是我不知道在这种情况下应该在哪里制作的问题
This error means you already have something running on port 8000 (probably another instance of your app). 此错误意味着您已经在端口8000(可能是应用程序的另一个实例)上运行了某些程序。 Close or kill that process and restart. 关闭或终止该过程,然后重新启动。
PS If you are on a UNIX-based system you can run lsof -i 9000
and then kill
process by name. PS如果你是一个基于UNIX的系统上,你可以运行lsof -i 9000
,然后kill
的名字过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.