在nagios-server上配置http服务启动时出现:
Starting httpd: httpd: apr_sockaddr_info_get() failed for nagios-server 主要是hosts解析问题 解决 echo "`hostname -I` nagios-server" >> /etc/hosts即可
httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName httpd.conf里缺少ServerName配置 解决:echo "ServerName 127.0.0.1:80" >> /etc/httpd/conf/httpd.conf 即可