2016-05-10 11 views
1

Wenn ich anfangen apche Server i wie Störung erhalteWarum ich erhalte: (13) Zugriff verweigert: make_sock: nicht [::] Adresse binden konnte: 2244 Fehler

[[email protected] conf]# service httpd start 
Starting httpd: httpd: apr_sockaddr_info_get() failed for ram 
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 
(13)Permission denied: make_sock: could not bind to address [::]:2244 
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:2244 
no listening sockets available, shutting down 
Unable to open logs 

bei mir läuft es als Root-Benutzer. Wie kann ich das beheben?

+0

ist dieses CentOS? –

+0

Es stimmt etwas nicht mit der Adresse, wenn ich mich nicht irre: '0.0.0.0' ist reserviert. .. Das und, überprüfen Sie, ob die Steckdose nicht verwendet wird? – argon

+2

[Diese Antwort schlägt SELinux vor] (http://serverfault.com/a/580281/50264) als der Täter. –

Antwort

0

Wenn /etc/httpd/conf/httpd.conf konfiguriert ist, so httpd auf einem anderen Port als TCP-Ports lauscht 80, 443, 488, 8008, 8009 oder 8443, die semanage port Befehl muss die neue Portnummer zu SELinux Richtlinienkonfiguration hinzuzufügen verwendet werden.

semanage port -a -t http_port_t -p tcp 12345 

Run service httpd start wieder httpd zu starten und haben es auf den neuen Hafen zu hören.

Von The Apache HTTP Server and SELinux