Apache2 no puede cerrar las conexiones al reiniciar

Apache2 no puede cerrar las conexiones al reiniciar

Estoy ejecutando un servidor web Debian con Apache2 y el comando de reinicio comenzó a darme un error.

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!

De vez en cuando, se reinicia sin problemas, pero normalmente tengo que matar todo -9 apache2 primero. Alguien en el IRC de Debian me hizo verificar mis conexiones activas de Apache2 y resulta que no se cierran y docenas de ellas permanecen abiertas. ¿Cómo puedo hacer que estos eventualmente expiren?

Respuesta1

Intentar

lsof -i :80

y luego elimine el PID asociado.

información relacionada