为什么 Apache 在本地主机上返回“服务暂时不可用”?

为什么 Apache 在本地主机上返回“服务暂时不可用”?

好吧,我对这一切还有些陌生。

我试图在我的本地主机上运行 php 和 apache2,但似乎无法让它工作。

当我在我的计算机上将 localhost 输入 chrome 时,我不断收到此消息:

服务暂时不可用

由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后重试。

我已找到并将错误日志粘贴在下面:

[Wed Jul 03 12:11:57 2013] [notice] caught SIGTERM, shutting down
[Wed Jul 03 12:12:02 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Orion.local for ServerName
[Wed Jul 03 12:12:02 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 03 12:12:02 2013] [notice] Digest: done
[Wed Jul 03 12:12:02 2013] [notice] Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Wed Jul 03 12:32:28 2013] [notice] caught SIGTERM, shutting down
[Wed Jul 03 12:32:28 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Orion.local for ServerName
[Wed Jul 03 12:32:28 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 03 12:32:28 2013] [notice] Digest: done
[Wed Jul 03 12:32:28 2013] [notice] Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Wed Jul 03 13:04:19 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:04:19 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:04:19 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:04:24 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:04:24 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:04:37 2013] [notice] caught SIGTERM, shutting down
[Wed Jul 03 13:04:38 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Orion.local for ServerName
[Wed Jul 03 13:04:38 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 03 13:04:38 2013] [notice] Digest: done
[Wed Jul 03 13:04:38 2013] [notice] Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Wed Jul 03 13:04:41 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:04:41 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:04:41 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:04:43 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:04:43 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:06:31 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:06:31 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:06:32 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:09:08 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:09:08 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:09:08 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:10:08 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:10:08 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:10:08 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:21:17 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:21:17 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:21:18 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:35:20 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:35:20 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:35:21 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:35:21 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:36:32 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:36:32 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:36:32 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:37:01 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:37:02 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:40:19 2013] [notice] caught SIGTERM, shutting down
[Wed Jul 03 13:40:20 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Orion.local for ServerName
[Wed Jul 03 13:40:20 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 03 13:40:20 2013] [notice] Digest: done
[Wed Jul 03 13:40:20 2013] [notice] Apache/2.2.22 (Unix) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8x configured -- resuming normal operations
[Wed Jul 03 13:40:24 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:40:24 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:40:25 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:40:25 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:44:45 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:44:45 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:44:46 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:50:15 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 13:50:15 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 13:50:16 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:50:22 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 13:50:23 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:08:34 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:08:34 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:08:35 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:08:35 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:26:37 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:26:37 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:26:40 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:26:40 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:29:51 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:29:51 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:29:52 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:31:19 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:31:19 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:31:19 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:32:50 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:32:50 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:32:50 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:33:06 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:33:06 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:33:38 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:33:39 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:34:49 2013] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:20559 (localhost) failed
[Wed Jul 03 14:34:49 2013] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Wed Jul 03 14:34:50 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:34:52 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:34:54 2013] [error] proxy: HTTP: disabled connection for (localhost)
[Wed Jul 03 14:34:55 2013] [error] proxy: HTTP: disabled connection for (localhost)

不太清楚该如何处理,但我真的很想立即开始运行。

提前感谢你的帮助。

答案1

Apache 正在尝试连接到fe80::1端口 20559 上的上游代理,但该地址/端口上没有运行任何服务。由于没有运行任何服务,Apache 收到Connection refused并返回 503 错误。

要解决此问题,请启动服务或使用正确的 IP 地址/端口号(如果适用)。(这不太可能fe80::1是正确的地址。)

相关内容