在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模式

One Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


*