在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
保存退出,再次重启就不会出错了。
本文介绍了解决在RedHat5系统上安装Java开发环境时遇到的安全级别和防火墙导致的问题。通过调整SELinux配置文件,实现永久禁用SELinux,确保系统重启后不再出现相同错误。

1万+

被折叠的 条评论
为什么被折叠?



