备忘:was 6.1和selinux的问题

 centos5.5上部署was6.1的时候启动脚本总是提示 Failed to find VM 或者报错cannot restore segment prot after reloc,禁用selinux以后安装部署都没有问题,但selinux就废了,经过搜索,在IBM上找到了办法:

 was使用自己的JDK,默认安装的路径在/opt/IBM/WebSphere/AppServer/java

#pwd
/opt/IBM/WebSphere/AppServer/java
#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

如此可以解决Failed to find VM等大部分问题

其他如出现permission denied多半也是因为selinux默认策略阻止了so的载入,按照以上方法解决即可。

你可能感兴趣的:(jdk,centos,脚本,IBM)