In the centos system, after installing jdk-8u60-linux-i586.tar.gz
, after configuring the java environment variables in .bash_profile
and /etc/profile
, restart the server, enter java, and display an error message for:
Error: dl failure on line 893
Error: failed /usr/local/java/jdk1.8.0_60/jre/lib/i386/client/libjvm.so, because /usr/local/java/jdk1.8.0_60/jre/lib/i386/client/libjvm. so: cannot restore segment prot after reloc: Permission denied
This is caused by the security mechanism of selinux
. To edit the configuration file of the file selinux
, the command is:
vim /etc/selinux/config
change:
SELINUX=enforcing
to:
SELINUX=disabled reboot
After the restarting the server, check again, it will be OK.