VPS侦探论坛
标题:
lnmp1.4安装工具denyhosts,出现以下错误,无法解决,请军哥帮忙。
[打印本页]
作者:
fkzw
时间:
2017-7-2 18:31
标题:
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'
不管是杀掉进程重新启动,或者是 rm -rf /var/run/denyhosts.pid 都不能解决问题。
请求军哥帮忙,lnmp1.3 没有出现过这种问题。
谢谢。
系统是centos 6.8
作者:
licess
时间:
2017-7-3 09:33
sed -i 's#/run/denyhosts.pid#/var/run/denyhosts.pid#g' /etc/init.d/denyhosts
应该就好了
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4