Not enough random bytes available,Please do some other work to give the OS a chance to collect more entropy
这个问题的原因是因为系统/dev/random没有足够的可用空间,解决方法我找到一篇老外的文章这么写的:
How to increase entropy pool on a 2.6 kernel RHEL/Fedora system without keyboard/mouse.
A good source of entropy is needed for random number generation. This affects services that go via SSL amongst other things. In 2.6 kernels the entropy sources of a system are keyboard, mouse and some IRQ interrupts.
There are two random number sources on linux - /dev/random and /dev/urandom. /dev/random will block if there is nothing left in the entropy bit bucket. If your system does not have keyboard and mouse, you can use 'rngd' daemon to perform the task.
You can see the entropy valu using following command.
#cat /proc/sys/kernel/random/entropy_avail
Now, start the 'rngd' daemon using following command and monitor the entropy on the system.
#rngd -r /dev/urandom -o /dev/random -f -t 1
#watch -n 1 cat /proc/sys/kernel/random/entropy_avail
The 'rngd' daemon is installed by 'kernel-utils' package in RHEL 4 and 'rng-utils' package on RHEL 5.
其实就是在redhat安装iso文件中找到rng-utils包装上去,然后按照上面的方法运行rngd即可。