Linux RPC删除注册

在CentOS-5.4上运行的程序(守护进程)运行良好,自己将RPC注册为程序191299版本10。

在计划外程序停止后,RPC注册仍然存在,所以程序无法重新启动,因为注销尝试导致错误:

# rpcinfo -d 191299 10 rpcinfo: Could not delete registration for prog 191299 version 10 

尽pipe重新启动成功, service portmap restart也没有帮助。

你可以请指教 – 如何强制RPC注册删除?

非常感谢!

不要使用服务端口映射重新启动 。 它在停止之前存储portmap的当前状态并在启动之后恢复它。 最好停下来 开始 。 要么

 # service portmap stop # rm -f /var/run/portmap.state # service portmap start