Linux-Windows-端口冲突的解决办法

BUG:Address already in use

Centos8

  • netstat -apn | grep
  • ps -ef | grep 8000
  • kill -9 PID
  • setsockopt

Windows

  • 查看指定端口netstat -aon | findstr “8001”
  • 删除端口taskkill /F /PID 123
  • 查看PID对应的进程 tasklist|findstr 8908
  • 结束进程taskkill /f /t /im redis-server.exe
posted @ 2022-10-16 15:50  starc的miao  阅读(48)  评论(0)    收藏  举报