我正在使用Apache2运行Debian服务器,重新启动命令开始给出一个错误。
root@srv:~# service apache2 stop
Stopping web server: apache2.
root@srv:~# service apache2 start
Starting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!偶尔,它实际上会重新启动,没有问题,但通常我必须首先KILLALL-9 apache2。Debian上的某个人让我检查我的活动apache2连接,结果发现他们没有退出,他们中的几十个都是开放的。我怎样才能让这些东西最终超时?
发布于 2012-02-26 17:20:46
试一试
lsof -i :80然后杀死相关的PID。
https://serverfault.com/questions/332554
复制相似问题