解决Nagios:HTTP:connect to address 127.0.0.1 and port 80: Connection refused错误
解决Nagios:HTTP:connect to address 127.0.0.1 and port 80: Connection refused错误
解决方法一:
添加默认主页(内容自己随便写点就行了)
[root@localhost ~]# vi /var/www/html/index.html
正常情况这种方式就可以解决,如果你启用了虚拟主机功能则使用以下方法二
解决方法二:
切换工作目录到nagios安装目录下的etc/objects/
[root@localhost ~]# cd /usr/local/nagios/etc/objects/
修改localhost.cfg配置文件
将IP地址的127.0.0.1修改为本机真实的地址即可
[root@localhost objects]# vi localhost.cfg
重载Nagios服务后问题解决
原创文章,作者:admin,如若转载,请注明出处:《解决Nagios:HTTP:connect to address 127.0.0.1 and port 80: Connection refused错误》https://www.linux-me.com/system/139.html
最新评论