failed to create pid file /var/run/rsyncd.pid: File exists报错

Posted dev0ps

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了failed to create pid file /var/run/rsyncd.pid: File exists报错相关的知识,希望对你有一定的参考价值。

[[email protected] ansible_playbooks]# ps aux|grep rsync
root      1799  0.0  0.0 114652   480 ?        Ss   Jun29   0:00 rsync --daemon
root     61754  0.0  0.0 112664   972 pts/2    S+   11:17   0:00 grep --color=auto rsync
[[email protected] ansible_playbooks]# kill -9  1799
You have new mail in /var/spool/mail/root
[[email protected] ansible_playbooks]# rsync --daemon
failed to create pid file /var/run/rsyncd.pid: File exists
[[email protected] ansible_playbooks]# ps aux|grep rsync
root     61790  0.0  0.0 112660   968 pts/2    S+   11:18   0:00 grep --color=auto rsync
[[email protected] ansible_playbooks]# rsync --daemon
failed to create pid file /var/run/rsyncd.pid: File exists

#删除 /var/run/rsyncd.pid即可
[[email protected] ansible_playbooks]# rm -fr /var/run/rsyncd.pid
[[email protected] ansible_playbooks]# rsync --daemon

以上是关于failed to create pid file /var/run/rsyncd.pid: File exists报错的主要内容,如果未能解决你的问题,请参考以下文章

nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument

MapReduce报错:「MKDirs failed to create file」

linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument

linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument

Simulink 运行时报错failed to create files 的解决方法

zookeeperdata/zookeeper_server.pid: No such file or directory FAILED TO WRITE PID 报错