Apache lässt sich nicht mehr starten

Apache lässt sich nicht mehr starten

/usr/local/apache/bin/httpd -k start -DSSL niemand 6906 0,0 0,1 187032 5448 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6907 0,0 0,1 187032 5448 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6908 0,0 0,1 187032 5448 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6909 0,0 0,1 187032 5448 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6910 0,7 0,1 187712 7024 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6911 1,7 0,1 188216 7036 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6912 0,5 0,1 187712 7020 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6913 0,4 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6914 0,8 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6915 0,7 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6916 0,5 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6917 0,2 0,1 188216 7024 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6918 0,5 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6919 0,8 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6920 0,5 0,1 187712 7020 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6921 0,8 0,1 187712 7020 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6922 1,0 0,1 188216 7024 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6923 0,6 0,1 188216 7024 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6924 1,5 0,1 187712 7020 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6925 0,1 0,1 187712 7012 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6926 1,2 0,1 187712 7016 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6927 0,5 0,1 188216 7028 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL niemand 6928 1,2 0,1 187712 7024 ? S 13:20 0:00 /usr/local/apache/bin/httpd -k start -DSSL

Ich habe 258 davon laufen. Ich habe httpd gestoppt und es ging wieder auf 0 zurück. Ich habe es wieder gestartet und es ging schnell wieder auf 258 zurück. Das habe ich noch nie zuvor gesehen. Weiß jemand, was falsch ist?

Ich verwende CentOS5.5 mit Apache2.2 auf cPanel.

Antwort1

Sie haben viele Worker konfiguriert. Ich bin nicht sicher, welches Modul Sie verwenden, aber der relevante Abschnitt ist

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>
<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Sie können nachsehen, wie viele Server Sie haben. Ich gehe davon aus, dass es über 250 sind.

Antwort2

Dies ist zwar nicht die beste Methode, Sie können es aber mit chmod -x /path/to/apachebinary erzwingen.

verwandte Informationen