Gentoo sur Frozenkiwi

De FrozenWiki
Révision datée du 3 janvier 2006 à 23:10 par Shelob (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Apache 2 slow (re)start

On my Gentoo virtual server, apache was taking up to 3 minutes to startup. The problem is caused by the system having too little entropy to generate random numbers needed for the PID. You can check the value on your machine using

cat /proc/sys/kernel/random/entropy_avail

A value below 20 is quite low. Emerging rng-tools can increase entropy and allow apache to start up more quickly.

emerge rng-tools /etc/init.d/rngd start /etc/init.d/apache2 start

Apache should now start in seconds.