Error loading: /opt/ibm/java2-i386-50/jre/bin/libj9thr23.so cannot restore segment prot after reloc

来源:互联网 发布:淘宝怎么添加银行卡 编辑:程序博客网 时间:2024/05/12 13:52

在RHEL5.0里面安装WAS6.1.0.0,启动WAS报如下错误的解决办法:

Error loading: /opt/ibm/java2-i386-50/jre/bin/libj9thr23.so cannot restore segment prot after reloc Permission denied

之后到IBM官网查了,找到如下解决方案:

Linux with SELinux permission denied error when loading Java

If your platform uses Security Enhanced Linux (SELinux), you may be unable to start a Java virtual machine (JVM) unless you identify the shared libraries. You will see an error message similar to the following

Error loading: /opt/ibm/java2-i386-50/jre/bin/libj9thr23.so cannot restore segment prot after reloc Permission denied

To correct this problem, identify the shared libraries. The required commands should be similar to the following example from Fedora Core 5

cd javaInstallDir/bin where javaInstallDir is the fully qualified path to the Java installation directory.

chcon -t texrel_shlib_t ../jre/bin/*.so
chcon -t texrel_shlib_t ../bin/*
chcon -t texrel_shlib_t ../lib/*
chcon -t texrel_shlib_t ../jre/bin/j9vm/libjvm.so

注:我的WAS6.1JAVA安装目录是:/opt/IBM/WebSphere/AppServer/java

参考资料:http://publib.boulder.ibm.com/wasce/V2.1.0/en/setup-troubleshooting.html

原创粉丝点击