Apache httpd 无法启动

Apache httpd 无法启动

我无法在 El Capitan 上启动 apache。apachectl restart 的输出为:

[Mon Apr 18 19:47:32 2016] [warn] NameVirtualHost *:8443 has no VirtualHosts
[Mon Apr 18 19:47:32 2016] [warn] NameVirtualHost *:8080 has no VirtualHosts
httpd not running, trying to start
(48)Address already in use: make_sock: could not bind to address [::]:8443

我的 apache error_log 的输出:

    [Mon Apr 18 19:47:33 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Apr 18 19:47:33 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Apr 18 19:47:33 2016] [warn] RSA server certificate wildcard CommonName (CN) `*.dev' does NOT match server name!?
[Mon Apr 18 19:47:33 2016] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Apr 18 19:47:33 2016] [warn] RSA server certificate wildcard CommonName (CN) `*.dev' does NOT match server name!?
[Mon Apr 18 19:47:33 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)

我已尝试从 /etc/apache2/original 中的原始版本恢复我的 httpd.conf 文件,但仍然出现同样的错误。

答案1

48)地址已在使用中:make_sock:无法绑定到地址 [::]:8443

意味着在 localhost 接口上有东西正在监听该端口。Apache 可能没有停止,因此也无法启动。尝试停止它,如果这不起作用或您无法让它停止,请尝试重新启动您的 mac osx 主机。

相关内容