先执行如下命令:
lsof -i:端口号
会有类似下面的结果:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
WebProces 42624 davidzhang 5u IPv4 0x907152bbf7b2a875 0t0 TCP localhost:64438->localhost:radan-http (ESTABLISHED)
WebProces 42624 davidzhang 10u IPv4 0x907152bbf7b64a05 0t0 TCP localhost:64439->localhost:radan-http (ESTABLISHED)
然后执行: kill -9 42624
结束进程就搞定了
作者:册屁股额男小歪
链接:https://www.jianshu.com/p/d00941aa3121
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
网友评论