ntop不启动 – 打开/var/lib/ntop/prefsCache.db失败:不能作家

我使用yum在centos 5.9上安装了ntop。 但是这并没有启动。 我得到这个错误:

Wed Mar 20 10:22:44 2013 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer Wed Mar 20 10:22:44 2013 Possible solution: please use '-P <directory>' Wed Mar 20 10:22:44 2013 **FATAL_ERROR** GDBM open failed, ntop shutting down... Wed Mar 20 10:22:44 2013 CLEANUP[t47669729537792]: ntop caught signal 2 [state=2] Wed Mar 20 10:22:44 2013 ntop is now quitting... Wed Mar 20 10:25:01 2013 NOTE: Interface merge enabled by default Wed Mar 20 10:25:01 2013 Initializing gdbm databases Wed Mar 20 10:25:01 2013 **ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer Wed Mar 20 10:25:01 2013 Possible solution: please use '-P <directory>' Wed Mar 20 10:25:01 2013 **FATAL_ERROR** GDBM open failed, ntop shutting down... Wed Mar 20 10:25:01 2013 CLEANUP[t47959862075136]: ntop caught signal 2 [state=2] Wed Mar 20 10:25:01 2013 ntop is now quitting... 

我将权限777设置为/ var / lib / ntop和其中的所有文件。 依然不起作用。

修正它通过杀死ntop服务,改变所有者ntop并再次启动

尝试input

ps -ax | grep ntop

进入terminal查看ntop进程运行,然后键入

sudo kill-9(进程号)

用所示的过程IDreplace(过程#)。

确保当你完成使用ntop你ctrl + C退出,而不是ctrl + z。 使用控制z离开了一个“stream浪”的ntop程序运行。