Linux hang when password encryption
Posted reclouds-shangri-la
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux hang when password encryption相关的知识,希望对你有一定的参考价值。
When using encryption (cfglib @Secured items, dblib-disk disk encryption), the application uses SecureRandom to get random data (for key generation, etc.). In case of a virtual machine and Linux, the system entropy can be low which may result in extremely poor performance.
To avoid this, we need to enable rngd daemon (and install it first, it’s in rng-tools package).
init.d based systems (RHEL6 and older)¶
First try to start it:
/etc/init.d/rngd start
If it complains about entropy source (Starting rngd: can‘t open entropy source(tpm or intel/amd rng)
), modify /etc/sysconfig/rngd
to contain the following:
EXTRAOPTIONS="-r /dev/urandom"
Then, start and enable rngd:
/etc/init.d/rngd start chkconfig rngd on
systemd based systems (RHEL7)¶
First try to start it:
systemctl start rngd
If it complains about entropy source (can‘t open entropy source(tpm or intel/amd rng)
in output of systemctl status rngd
, do the following:
cp /usr/lib/systemd/system/rngd.service /etc/systemd/system
Then edit /etc/systemd/system/rngd.service ExecStart line to this:
ExecStart=/sbin/rngd -f -r /dev/urandom
Then, start and enable rngd:
systemctl start rngd systemctl enable rngd
以上是关于Linux hang when password encryption的主要内容,如果未能解决你的问题,请参考以下文章
TC Hangs when using quick search extended on win10 (1703)
How to provide username and password when run "git clone git@remote.git"? - Stack Overflow
Discovering versions from the identity service failed when creating the password plugin.
Linux 执行 df -h 卡着不动,HANG 住了,怎么破?