2014-11-03 92 views
0

我试图在我的Raspberry Pi上安装ownCloud。要安装此我使用本教程:http://forum.owncloud.org/viewtopic.php?f=21&t=21870(它在德国)Apache2重启失败

所以我所做的一切都像描述和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` 

回答

0

你还有别的东西在使用443端口。另外,我相信你提到的教程是不正确的,因为你无法绑定一个全球IP上的SSL VHost(*:443无效)。

更改vhost bind以读取类似192.168.1.60:443的内容,其中这是Raspberry Pi的静态公有IP。

此外,您应该检查您在系统上运行的其他服务,并查看它们中是否有任何服务必须在端口443上运行。可以通过运行命令netstat -lntp来执行此操作。