我如何确定为什么我得到我的node.js服务器上的503错误?

我目前正在自学node.js作为一个业余爱好者。 我有一个服务器,我以前能够与简单的'你好世界'输出工作。 不过,我想我可能已经在我的node.js服务器上打了一些东西,而上周做了一些修补,并且不再有效。 不幸的是,我不知道如何解决答案,并希望在这方面的方向。

问题是,当我导航到我的域我只是得到一个503错误。

但是,当我检查我的node.js日志文件时,输出显示服务器正在运行的默认文本。

我正在使用的示例代码是:

// Load the http module to create an http server. var http = require('http'), sys = require('sys'); // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World\n"); }); // Listen on port 8000, IP defaults to 127.0.0.1 server.listen(8000); // Put a friendly message in the log sys.puts("Server running on port 8000"); 

任何人都可以帮我find更多详细的原因,为什么我得到一个503?

我查看了apache的错误日志,看看这个,但是不知道它的含义:

 [Fri May 30 18:12:09.658627 2014] [proxy:error] [pid 25351:tid 3071591036672] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed [Fri May 30 18:12:09.658713 2014] [proxy:error] [pid 25351:tid 3071591036672] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 60s [Fri May 30 18:12:09.658731 2014] [proxy_http:error] [pid 25351:tid 3071591036672] [client 128.32.70.98:19556] AH01114: HTTP: failed to make connection to backend: 127.0.0.1 [Fri May 30 18:12:10.096354 2014] [proxy:error] [pid 25351:tid 3071599429376] AH00940: HTTP: disabled connection for (127.0.0.1) 

看起来像你的node.jsconfiguration为监听端口8000

 server.listen(8000); 

但是Apache正试图连接到端口8080

 HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed ^ 

configuration两个应用程序使用相同的端口(并确保它尚未使用)。