0

我正在尝试在我的 Raspberry Pi 上安装 ownCloud。要安装它,我使用本教程: http: //forum.owncloud.org/viewtopic.php?f=21 &t=21870 (德语版)

所以我做了所有描述的事情,在 configtest 之后我想重新启动

apache2ctl restart

我懂了:

httpd not running, trying to start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs Action 'restart' failed. The Apache error log may have more information.

我在错误日志中找到了此信息,但我不明白问题出在哪里:

[Mon Nov 03 09:17:46 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations [Mon Nov 03 09:17:59 2014] [notice] caught SIGTERM, shutting down 
[Mon Nov 03 09:18:01 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations 
[Mon Nov 03 09:18:46 2014] [notice] Graceful restart requested, doing restart apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName 
[Mon Nov 03 09:18:50 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations 
[Mon Nov 03 09:24:37 2014] [notice] caught SIGTERM, shutting down [Mon Nov 03 09:24:39 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u14 configured -- resuming normal operations [Mon Nov 03 09:32:51 2014] [notice] Graceful restart requested, doing restart 
[Mon Nov 03 09:32:53 2014] [notice] Apache/2.2.22 (Debian) HP/5.4.4-14+deb7u14 configured -- resuming normal operations
[Mon Nov 03 09:36:33 2014] [notice] Graceful restart requested, doing restart 
[Mon Nov 03 09:36:35 2014] [notice] Apache/2.2.22 (Debian) HP/5.4.4-14+deb7u14 configured -- resuming normal operations [Mon Nov 03 10:21:15 2014] [notice] SIGHUP received.  Attempting to restart (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs`
4

1 回答 1

0

您还有其他使用端口 443 的东西。另外,我认为您提到的教程是不正确的,因为您无法在包罗万象的 IP 上绑定 SSL VHost(*:443 无效)。

更改虚拟主机绑定以读取类似 192.168.1.60:443 的内容,其中这是您的 Raspberry Pi 的静态公共 IP。

此外,您应该检查系统上正在运行的其他服务,并查看是否有任何服务绑定在端口 443 上运行。您可以通过运行命令来做到这一点netstat -lntp

于 2014-11-03T10:58:46.553 回答