RedHat Linux下安装JDK1.7报错Permission denied
来源:互联网 发布:daxulu域名更换 编辑:程序博客网 时间:2024/05/01 21:56
在RedHat Linux5 中安装JDK1.7时,当我解压jdk,并且配置好了环境变量,测试的时候,报以下错误。
[root@jingfeng01 ~]# java -versionError: dl failure on line 863Error: failed /usr/java/jdk1.7.0_60/jre/lib/i386/client/libjvm.so, because /usr/java/jdk1.7.0_60/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied
在网上找了找错误,最后发现原来是SELinux的缘故,关闭SELinux即可解决
解决方案:
[root@jingfeng01 ~]# vi /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=disabled# SELINUXTYPE= type of policy in use. Possible values are:# targeted - Only targeted network daemons are protected.# strict - Full SELinux protection.SELINUXTYPE=targeted
将SELINUX=enforcing 改为SELINUX=disabled 关闭,然后重启机器,让其生效
0 0
- RedHat Linux下安装JDK1.7报错Permission denied
- 32位centos下安装jdk1.7报Permission denied处理方式
- Linux下安装jdk报Permission denied以及chmod详解
- Linux下安装jdk报Permission denied以及chmod详解
- linux 安装bin文件 报permission denied
- Linux下permission denied
- Linux下报-bash: ./server.sh: Permission denied解决方案
- linux下执行sh脚本报Permission denied
- RedHat Linux 下安装 jdk-7u75-linux-x64.gz,jdk1.7.0_75,jdk1.7步骤
- Linux下配置JDK以及报cannot restore segment prot after reloc: Permission denied错解决方案
- Linux下配置JDK以及报cannot restore segment prot after reloc: Permission denied错解决方案
- linux下执行sh文件报错:oswatcher_restart.sh: line 13: ./startOSW.sh: Permission denied
- Linux下配置JDK以及报cannot restore segment prot after reloc: Permission denied错解决方案
- linux安装eclipse报错:cannot restore segment prot after reloc: Permission denied
- php报错Permission denied
- Xcode报错:Permission denied
- FC4下tcpdump -w写文件报错:permission denied
- mac终端下运行报错:Permission denied。
- 读mybatis源码之十四:mybatis事务处理
- dojo小例子(17)iframe上传文件到rest后台,以及乱码问题解决
- struts关于多个时间需要转换
- 程序员技术练级攻略
- C语言几点说明
- RedHat Linux下安装JDK1.7报错Permission denied
- 决策树算法原理及JAVA实现(ID3)
- OnlineJudge框架编写日志
- 快速排序1 升序
- inline函数和一般的函数有什么不同
- sublime_text 2 package ftp ftps sftp
- UML基础与应用总结
- 再看数据库——(2)视图
- hadoop2.0 知识汇总