在系统是centos 6.8,lnmp1.4下安装使用denyhosts过程中,出现如下错误:
service denyhosts status Denyhosts is not running service denyhosts start starting DenyHosts: /usr/bin/env python /usr/sbin/denyhosts --daemon --config=/etc/denyhosts.conf DenyHosts could not obtain lock (pid: 9120) [Errno 17] File exists: '/var/run/denyhosts.pid'
在论坛中问了军哥,给出的解决方法如下:
sed -i 's#/run/denyhosts.pid#/var/run/denyhosts.pid#g' /etc/init.d/denyhosts
试了下,果真OK,感谢军哥。
3 comments