/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf

[root@localhost nagios]# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file `/etc/httpd/conf.d/nagios.conf': No such file or directory
make: *** [install-webconf] Error 1
这一步的主要目的是把安装文件nagios下的sample-config下的httpd.conf文件变成apache/conf/nagios.conf文件所以
解决方法
/usr/bin/install -c -m 644 sample-config/httpd.conf /usr/local/apache/conf/nagios.conf
(用cp sample-config/httpd.conf /usr/local/apache/conf/nagios.conf也可以)
这样之后在/usr/local/apache/conf/httpd.conf 文件添加 Include conf/nagios.conf 注意include第一个字母大写
意不能写include nagios.conf 会无法识别

posted on 2013-07-03 17:17  语辰  阅读(2573)  评论(0编辑  收藏  举报