`

Linux下执行程序时发生错误: cannot restore segment prot after reloc: Permission denied

阅读更多
今天在Linux上安装eclipse,启动报错:
cannot restore segment prot after reloc: Permission denied
****.so(此为某路径下的某文件)


解决办法

编辑/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  ******.so
如: chcon -t texrel_shlib_t  /路径/路径/名字.so   (这个文件视具体执行文件.)

以上两步.已经解决了很多server的问题了.



转自http://blog.csdn.net/wei801004/archive/2009/07/03/4318852.aspx
分享到:
评论

相关推荐

    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...

    SqlServer20082005数据库还原出现3154错误.docx

    在sql server 2008 r2 版本中还原从sql server 2005备份出来的数据库时,提示错误:RESTORE DATABASE 正在异常终止。 (Microsoft SQL Server,错误: 3154)。

    Linux指令一周通 (技术图书大系).azw3

    5.4 bg指令:将程序放在后台执行 5.5 chfn指令:设置finger信息 5.6 chsh指令:改变登录系统时的shell 5.7 clear指令:清除屏幕信息 5.8 date指令:显示或设置系统时间 5.9 echo指令:字符串输出 5.10 exit指令:...

    方正还原卡彻底清除程序CLear.zip

    正常情况下可以通过控制面板中的“添加/删除程序”或者实模式 HOME 界面中的“卸 载”功能卸载保护卡驱动并清除其写在硬盘上的数据。 如果无法正常卸载,则使用 clear 清除工具进行卸载。 BIOS 版软保护卡, 如果...

    Acer 宏基 / Founder 方正 软件保护卡清除工具 CLEAR.EXE

    1、 制作可以DOS启动的光盘:将可执行文件clear.exe 拷贝到制作好的启动盘根目录下 2、 开机后从光盘( U 盘)启动,进入 DOS,运行clear -t: Check restore card installATIon检查本机保护卡驱动的安装状态 -r: ...

    acer 或方正电脑(founder)软件保护卡卸载、清理工具 clear.exe文件

    这个文件你也可以找方正客服要。如果自己有引导光盘或者软盘或者U盘等,直接将该文件拷到...-r: Remove restore card installation // 用来移除本机保护卡驱动程序 -f: Clear all disk data // 用来清除硬盘中所有数据

    plymouth_pakage

    plymouth rpm pakage of myself file , and there is no value

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar...

    利用dump-restore实现备份还原

    利用dump和restore命令实现linux下的增量备份,差异备份及还原

    Linux restore命令用法详解

    Linux restore命令 Linux restore命令用来还原由dump操作所备份下来的文件或整个文件系统(一个分区)。 restore 指令所进行的操作和dump指令相反,dump操作可用来备份文件,而restore操作则是写回这些已备份的文件。 ...

    Synology Restore Media Creator-2.1.1-0576.zip

    群晖restore工具

    群联主控U盘格式化/低格工具Restore v3.15.0.0.rar

    Restore可低级格式化你的U盘并恢复出厂默认状态,使用前要备份U盘中的数据。Format用于格式化你的U盘为FAT/NTFS文件系统,同样操作前要备份数据。群联官方发布的Phison Format Restore修复工具,版本是3.15应该是...

    Linux命令笔记

    4:more 分页显示文件内容(只能往下翻页,不能往上反) 语法:more[文件名] 5:less 分页显示文件内容(上下翻页) 语法:less[文件名] 6:head 显示文件前面几行 语法:head[文件名] 7:tail 显示文件后面几行 语法:tail...

    DB2重定向恢复.doc

    DB2重定向恢复:db2 RESTORE DATABASE dbname from 路径 TAKEN AT 20090701085133

    Tivoli TSM restore commands

    tsm restore命令的详细解释! Therestorecommandobtainscopiesofbackupversionsofyourfiles from aTivoli®StorageManagerserver,orinside abackup set. Torestore files, specifythe directoriesorselectedfiles, ...

    Linux下的rar解压缩工具

    Linux下的rar解压缩工具: RAR 5.60 beta 1 Copyright (c) 1993-2018 Alexander Roshal 21 Mar 2018 Trial version Type 'rar -?' for help Usage: rar <command> -<switch 1> -<switch N> <archive> ...

    Linux命令搜索工具linux-command.zip

    linux-command Linux命令大全搜索工具,内容包含Linux命令手册、详解、学习、搜集。   Linux命令分类 这里存放Linux 命令大全并不全,你可以通过linux-command来搜索,它是把 command ...

    tensorflow model save and restore example

    tensorflow model save and restore example

    MySQL Backup Best Practices and Case Study: .IE Continuous Restore Process

    MySQL Backup Best Practices and Case Study: .IE Continuous Restore Process MySQL备份最佳实践和案例学习.

Global site tag (gtag.js) - Google Analytics