libjvm.so: cannot restore segment prot after reloc: Permission denied权限不够问题
libjvm.so:?cannot?restore?segment?prot?after?reloc:?權(quán)限不夠?
在Linux下安裝完JDK后發(fā)現(xiàn),使用javac?-version正常,但是一旦使用java?-version就會(huì)出問(wèn)題,說(shuō)是libjvm.so權(quán)限不夠,這問(wèn)題也困擾了我蠻久的!最后在一次偶然的情況下,發(fā)現(xiàn)原來(lái)是安全級(jí)別和防火墻造成的問(wèn)題,于是我嘗試著關(guān)閉之后一切也就正常了。
首先編輯/etc/sysconfig/selinux,?修改以下兩項(xiàng):
#?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?#關(guān)閉
#?SELINUXTYPE=?type?of?policy?in?use.?Possible?values?are:
#???????targeted?-?Only?targeted?network?daemons?are?protected.
#???????strict?-?Full?SELinux?protection.
SELINUXTYPE=targeted?
關(guān)閉完成后我們需要重啟下Linux就可以了
這是重啟后測(cè)試
本文轉(zhuǎn)自 leyex 51CTO博客,原文鏈接:http://blog.51cto.com/leyex/1039867
總結(jié)
以上是生活随笔為你收集整理的libjvm.so: cannot restore segment prot after reloc: Permission denied权限不够问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 修改注册表后不重启计算机边生效(转)
- 下一篇: yum 的奇怪错误