libjvm.so: cannot restore segment prot after reloc: Permission denied权限不够问题
libjvm.so:?cannot?restore?segment?prot?after?reloc:?權限不夠?
在Linux下安裝完JDK后發現,使用javac?-version正常,但是一旦使用java?-version就會出問題,說是libjvm.so權限不夠,這問題也困擾了我蠻久的!最后在一次偶然的情況下,發現原來是安全級別和防火墻造成的問題,于是我嘗試著關閉之后一切也就正常了。
首先編輯/etc/sysconfig/selinux,?修改以下兩項:
#?This?file?controls?the?state?of?SELinux?on?the?system.
#?SELINUX=?can?take?one?of?these?three?values:
#???????enforcing?-?SELinux?security?policy?is?enforced.
#???????permissive?-?SELinux?prints?warnings?instead?of?enforcing.
#???????disabled?-?SELinux?is?fully?disablied.
#SELINUX=enforcing?#注釋掉即可
SELINUX=disabled?#關閉
#?SELINUXTYPE=?type?of?policy?in?use.?Possible?values?are:
#???????targeted?-?Only?targeted?network?daemons?are?protected.
#???????strict?-?Full?SELinux?protection.
SELINUXTYPE=targeted?
關閉完成后我們需要重啟下Linux就可以了
這是重啟后測試
本文轉自 leyex 51CTO博客,原文鏈接:http://blog.51cto.com/leyex/1039867
總結
以上是生活随笔為你收集整理的libjvm.so: cannot restore segment prot after reloc: Permission denied权限不够问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 修改注册表后不重启计算机边生效(转)
- 下一篇: yum 的奇怪错误