[root@tomcat ~]# cp /usr/lib/systemd/system/rngd.service /etc/systemd/system
[root@tomcat ~]# vim /etc/systemd/system/rngd.service
[Service]
ExecStart=/sbin/rngd -f -r /dev/urandom
[root@tomcat ~]# systemctl daemon-reload
[root@tomcat ~]# systemctl restart rngd
[root@tomcat ~]# cat /proc/sys/kernel/random/entropy_avail
2979
网友评论