Alexs-MacBook-Pro:build alexnordhausen$ gulp server:start
[21:11:22] Using gulpfile ~/Documents/Kanvasroom_Support/kanvasroom/build/gulpfile.js
[21:11:22] Starting 'env:dev'...
Application loaded using the "development" environment configuration
[21:11:22] Finished 'env:dev' after 6.25 ms
[21:11:22] Starting 'server:start'...
[21:11:22] Finished 'server:start' after 1.95 ms
[21:11:22] [nodemon] 1.11.0
[21:11:22] [nodemon] to restart at any time, enter `rs`
[21:11:22] [nodemon] watching: *.*
[21:11:22] [nodemon] starting `node --debug=5858 --trace-warnings server.js`
Server started, be sure the user content server is also running with gulp user-content
Live-build the client with gulp web:dist
Debugger listening on 127.0.0.1:5858
[Busy] Launching SocketCluster
Error: listen EADDRINUSE 127.0.0.1:5858
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Agent.Server._listen2 (net.js:1262:14)
at listen (net.js:1298:10)
at doListening (net.js:1397:7)
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)没有任何幽灵进程在运行..。这是很好的工作,直到我做了一个新的npm安装整个项目。有什么想法?
发布于 2017-01-31 04:23:16
根据日志,您使用的是群集。您可能试图在同一个端口上侦听每个子进程,这将在启动第二个子进程后抛出错误。
发布于 2017-01-31 05:21:46
我可以从你的日志中看到:
您的主服务器启动于127.0.0.1:5858。
然后SocketCluster尝试从127.0.0.1:5858开始
因此,如果一个服务器已经是5858端口,那么其他服务器如何使用5858?
所以请换个端口来解决这个问题。
发布于 2017-01-31 05:11:06
当两个以上的应用程序使用一个portno时,就会出现此错误。
Use this command
1) `netstat -tulpn` (Commans for show all the process on server)
2) then kill the process with the process number. like kill 2043https://stackoverflow.com/questions/41949536
复制相似问题