« (98)Address already in use: make sock: could not bind to address 0.0.0.0:80 » : différence entre les versions

De Semantic MediaWiki - Sandbox

(new)
 
(this was insane for Apache 2.4+)
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<syntaxhighlight lang="bash"
== [http://ubuntuforums.org/showthread.php?t=1636667 Issue] ==
apache2(98)Address already in use: make_sock: could not bind to address [::]:80
<syntaxhighlight lang="bash">
# apachectl start
</syntaxhighlight>
<syntaxhighlight lang="text">
[....] 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
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
no listening sockets available, shutting down
Ligne 7 : Ligne 11 :
The Apache error log may have more information.
The Apache error log may have more information.
  failed!
  failed!
</syntaxhighlight>
== Mitigation ==
; Step 1
<syntaxhighlight lang="bash">
# netstat -ltnp | grep ':80'
</syntaxhighlight>
<syntaxhighlight lang="text">
tcp6      0      0 :::80                  :::*                    LISTEN      25585/apache2
</syntaxhighlight>
; Step 2
<syntaxhighlight lang="bash">
# kill -9 25585
</syntaxhighlight>
; Step 3
<syntaxhighlight lang="bash">
# apachectl start
</syntaxhighlight>
<syntaxhighlight lang="text">
[ ok ] Starting web server: apache2.
</syntaxhighlight>
</syntaxhighlight>

Dernière version du 13 juillet 2016 à 18:51

Issue

# apachectl 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!

Mitigation

Step 1
# netstat -ltnp | grep ':80'
tcp6       0      0 :::80                   :::*                    LISTEN      25585/apache2
Step 2
# kill -9 25585
Step 3
# apachectl start
[ ok ] Starting web server: apache2.
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.