2014-12-20 58 views
0

我已经使用YUM在我的Centos 5.11服务器(有Webmin/Virtualmin)上安装了monit,并且所有内容似乎都没有问题。我发现它并没有在开始启动以来试图让这个当我尝试发生并启动服务的monit我现在得到:monit:无法识别的服务

# service monit start 
monit: unrecognized service 

我尝试拆卸和重新安装...

# yum remove monit 
Remove  1 Package(s) 
Reinstall  0 Package(s) 
Downgrade  0 Package(s) 

Is this ok [y/N]: y 
Downloading Packages: 
Running rpm_check_debug 
Running Transaction Test 
Finished Transaction Test 
Transaction Test Succeeded 
Running Transaction 
service monit does not support chkconfig 
Error in PREUN scriptlet in rpm package m 

Removed: 
    monit.x86_64 0:4.10.1-9.el5 
Complete! 

# yum install monit 
Finished 
Setting up Install Process 
Package monit-4.10.1-9.el5.x86_64 already installed and latest version 
Nothing to do 

所以不重新安装它,似乎“删除”并没有删除它,然后安装不然后安装它,所以我仍然得到:

# service monit start 
monit: unrecognized service 

任何人都可以建议我需要做什么来解决这个问题吗?

+0

给它[it](http://cbron.github.io/blog/2013/01/12/install-monit-on-centos-6-from-source/)一试。 – Skynet

回答

0

我之前遇到过这个问题,并在下面添加到我的monit.conf文件中,这有助于本地启动其Web服务。请确保通过执行“monit quit”或杀死monit进程来反弹monit守护进程,然后“monit -t”然后“monit”。

 
# Allow localhost to start and connect to monit httpd server locally 
set httpd port 2812 
use address localhost 
allow localhost 
check system localhost 
相关问题