1. 程式人生 > >tomcat啟動一直卡在Root WebApplicationContext: initialization completed

tomcat啟動一直卡在Root WebApplicationContext: initialization completed

yum install -y rng-tools
systemctl start rngd
cp /usr/lib/systemd/system/rngd.service /etc/systemd/system
vi /etc/systemd/system/rngd.service


找到ExecStart 在最後加上-r /dev/urandom

ExecStart=/sbin/rngd -f -r /dev/urandom


重新載入服務

systemctl daemon-reload


重啟服務
 

systemctl restart rngd