在網上查了一下
找到jdk1.x.x_xx/jre/lib/security/Java.security文件,在文件中找到securerandom.source這個設置項,將其改為:
securerandom.source=file:/dev/./urandom
於是先find / -name jre ----------找到文件位置
然后找到Java.security文件 對其進行編輯 由於文件中內容較多所以使用搜索:/securerandom.source
找到該設置項之后發現securerandom.source=file:/dev/urandom 中間少了/./ 改為securerandom.source=file:/dev/./urandom
再重新啟動tomcat 正常!