Crazy knowledge base

nagios install-webconf Error 1

——————————————————————————–
/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

——————————————————————————–
 

后来查看Makefile后发现是脚本里面的一个
$(INSTALL) -m 644 sample-config/httpd.conf $(DESTDIR)$(HTTPD_CONF)/nagio
s.conf中$(DESTDIR)$(HTTPD_CONF)变量错误。
所以我就没管这一步骤,直接手动执行了一遍命令。
代码:

——————————————————————————–
/usr/bin/install -c -m 644 sample-config/httpd.conf /usr/local/apache2/conf/nagios.conf
——————————————————————————–
 
然后修改apache的httpd.conf文件。在最后面添加一条:

代码:

——————————————————————————–
Include conf/nagios.conf

nagios install-webconf Error 1
滚动到顶部