0

我无法理解错误,

Server running at 204.232.212.213 on port 8124

node.js:201
    throw e; // process.nextTick error, or 'error' event on first tick
          ^
Error: listen EADDRNOTAVAIL
at errnoException (net.js:646:11)
at Array.0 (net.js:732:28)
at EventEmitter._tickCallback (node.js:192:41)

the code is as follows:
var http = require('http');
http.createServer(function (req, res){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
 }).listen(8124, "204.232.212.213");
console.log('Server running at 204.232.212.213 on port 8124')

请帮助我以下,新的 javascript 和 node.js

4

1 回答 1

0

通过使用本地地址 0.0.0.0 和端口 8000 解决

于 2013-10-18T18:49:45.197 回答