`
willvvv
  • 浏览: 331581 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

有关cannot restore segment prot after reloc:...

阅读更多
在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的问题了.
分享到:
评论

相关推荐

    jre-7u5-linux-i586.tar.gz

    error :/usr/lib/libjvm.so: cannot restore segment prot after reloc: Permission denied . use the command: chcon -t textrel_shlib_t /usr/lib/libjvm.so 这是官方的提示 简单的做法是 setenforce 0 ok,java...

    Linux 5.5 +oracle 11gR2 sqlplus error

    具体错误信息为:“sqlplus:error while loading shared libraries:/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1:cannot restore segment prot after reloc: Permission denied”。本篇文章将...

    sqlplus libclntsh.so.11.1 Permission denied 解决方法

    在尝试运行 SQL Plus 工具时,可能会遇到一个错误提示:“cannot restore segment prot after reloc: Permission denied”,这通常发生在尝试加载 Oracle 的客户端库 `libclntsh.so.11.1` 时。此错误表明系统拒绝了...

    fedora校园上网指导

    4. 如果出现“./xrgsu: error while loading shared libraries: /usr/lib/libpcap.so.0.6.2: cannot restore segment prot after reloc: Permission denied”的问题,需要编辑/etc/sysconfig/selinux文件,将...

    Oracle11g客户端安装与配置(在Linux系统上).pdf

    - 如果出现“sqlplus: error while loading shared libraries: /usr/local/oracle/libnnz11.so: cannot restore segment prot after reloc: Permission denied”的错误,可以尝试将SELinux设置为Permissive模式: ...

    linux错误乱码的具体解决方法

    最后,文章提到了安装 Zend Server CE for Linux 时遇到的问题,即`cannot restore segment prot after reloc: permission denied`错误。这通常与SELinux策略有关。有两种解决方法:一是临时关闭SELinux(风险较高)...

    Hadoop学习文档

    - **问题描述**: 安装完成后,可能会遇到权限相关的问题,例如`cannot restore segment prot after reloc: Permission denied`。 - **解决方案**: 1. 编辑`/etc/selinux/config`文件,将`SELINUX=enforcing`修改为`...

    webstorm linux5上安装失败

    - 如果出现权限错误,例如 “cannot restore segment prot after reloc: Permission denied”,则需要进一步调整 SELinux 设置。 ##### 步骤 3: 配置 SELinux 1. **编辑 SELinux 配置文件**: - 使用文本编辑器...

    linux安装myeclipse教程

    如文档中提到的“cannot restore segment prot after reloc: Permission denied”错误,就是由于Linux的安全策略SELinux阻止了JVM加载必要的库文件。通过使用`chcon`命令改变文件的安全上下文,可以解决这类权限问题...

    freeradius mysql搭建

    - 如果启动失败并提示权限问题,如`error while loading shared libraries: cannot restore segment prot after reloc: Permission denied`,则需要修改SELinux配置。具体操作为将`/etc/selinux/config`文件中的`...

Global site tag (gtag.js) - Google Analytics