情况:使用SpringCloud SpringBoot创建的服务提供者实例,在退出idea的时候没有关闭服务器,重新打开以后发现服务注册中心已有一个注册的实例8763,但是idea服务器没有启动这个Springboot
解决办法:使用 sudo lsof -i :8763
或者ps -ef | grep nginx
然后根据PID杀进程:sudo kill-9 859
记住要使用sudo权限
情况:使用SpringCloud SpringBoot创建的服务提供者实例,在退出idea的时候没有关闭服务器,重新打开以后发现服务注册中心已有一个注册的实例8763,但是idea服务器没有启动这个Springboot
解决办法:使用 sudo lsof -i :8763
或者ps -ef | grep nginx
然后根据PID杀进程:sudo kill-9 859
记住要使用sudo权限