首页 > 代码库 > Error: Cannot open main configuration file '//start' for reading! 解决办法

Error: Cannot open main configuration file '//start' for reading! 解决办法

当执行service nagios start启动nagios时,报错:Error: Cannot open main configuration file ‘//start‘ for reading! 

此问题是修改了nagios安装源文件导致的报错。如报此问题,请执行如下命令,便可解决:

/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

/etc/rc.d/init.d/nagios 为新编译生成的nagios程序。

Error: Cannot open main configuration file '//start' for reading! 解决办法