在red hat 5上装java开发环境时,遇到如下错误:
解决如下:
这是因安全级别和防火墙导致的,使用如下命令:
关闭SELINX,执行:/usr/sbin/setenforce 0
然后注销再次登录即可解决问题。
再次重启时,又会出现上述问题,发现问题没有的到实质的解决,上面发现
首先编辑配置文件:/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= 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=disabled
保存退出,再次重启就不会出错了。