linux启动nagios无法通过web访问解决


linux启动nagios无法通过web访问解决
 
在linux中配置好nagios并启动后,通过web输入http://ipaddress/nagios,页面不能打开,网上查询说是防火墙的原因,于是通过 
 
service iptables stop 
关闭防火墙,再试还真打开了页面,但是进入后点击hosts或者services竟然报apache内部错误,请联系管理员,这个只能继续查了,最好网上查到说是启动了SELinux的原因,那就关闭它,通过 
 
getenforce 
setenforce 0 
 
继续测试,果然成功,你也可以通过修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。 
 
如果不想重启系统,那就使用上面的命令setenforce 0 
注: 
setenforce 1 设置SELinux 成为enforcing模式 
setenforce 0 设置SELinux 成为permissive模式

相关内容

    暂无相关文章