cannot restore segment prot after reloc: Permission denied,segmentreloc

來源:互聯網
上載者:User

cannot restore segment prot after reloc: Permission denied,segmentreloc

編輯/etc/selinux/config,找到這段:
# 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 disabled.
SELINUX=enforcing

把 SELINUX=enforcing 注釋掉:#SELINUX=enforcing ,然後新加一行為:
SELINUX=disabled
儲存,關閉。

 

如果你碰到其他類似提示:
cannot restore segment prot after reloc: Permission denied
哪應該是SELinux的問題,可以考慮把它關閉。
-------------------------------------------------------------------------------------
如果把SELinux關閉後還是不行.那麼在你保證SElinux 被disable後.還執行下
chcon -t texrel_shlib_t
如: chcon -t texrel_shlib_t  /路徑/路徑/名字.so   (這個檔案視具體執行檔案.)


在linux上建立檔案夾出現 Permission denied 的情況,網上說可以用編輯/etc/selinux/config的方法;

Permission denied in linux
在linux上安裝有些東西時會出現 Permission denied 的情況:以下就是解決它的辦法之一
編輯/etc/selinux/config,找到這段:
# 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 disabled.
SELINUX=enforcing

把 SELINUX=enforcing 注釋掉:#SELINUX=enforcing ,然後新加一行為:
SELINUX=disabled
儲存,關閉。
......

編輯/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 disabled.
SELINUX=enforcing

如果SELINUX已經是 SELINUX=disabled,那麼就不用改了,否則就把SELINUX=enforcing 注釋掉,新加一行:
SELINUX=disabled
儲存,退出。

如果你碰到其他類似提示:
cannot restore segment prot after reloc: Permission denied
哪應該是SELinux的問題,可以考慮把它關閉。
-------------------------------------------------------------------------------------
鬱悶的是.我把SELinux關閉後還是不行.於是到google上search.發現這個很有用.
在你保證SElinux 被disable後.還執行下
chcon -t texrel_shlib_t
如: chcon -t texrel_shlib_t /路徑/路徑/名字.so (這個檔案視具體執行檔案.)

以上兩步.已經解決了很多server的問題了.
 
RHLE linux5在安裝JDK17時,提示報錯資訊,彈出selinux診斷資訊視窗提示需要更改上下文?

上下文是SELinux的type,是一種linux安全機制,改了沒事的,按錯誤提示操作,或者使用setenforce 0 把selinux轉換到permissive
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.