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

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

现象

[root@source run]# rsync --daemon
[root@source run]# failed to create pid file /var/run/rsyncd.pid: File exists

解决方法

分析:当你用kill -9 删除进程号时,pid文件并没有被删除
通过rm -rf 删除pid文件,再启动。或者用kill 删除进程号

[root@source run]# cat rsyncd.pid 
12777
[root@source run]# kill -9 12777
[root@source run]# netstat -ntap |grep rsync
[root@source run]# rsync --daemon
[root@source run]# failed to create pid file /var/run/rsyncd.pid: File exists
[root@source run]# rm -rf rsyncd.pid 
[root@source run]# rsync --daemon

猜你喜欢

转载自blog.csdn.net/m0_47219942/article/details/108517767