编辑文件
vim /etc/profile
后面加入一句:
export JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
设置立即生效(空格不能省略):
[root@VM_16_4_centos /]# . /etc/profile
编辑文件
vim /etc/profile
后面加入一句:
export JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
设置立即生效(空格不能省略):
[root@VM_16_4_centos /]# . /etc/profile
原文:https://www.cnblogs.com/007sx/p/8366758.html