Learn | Windows && Linux
2023年7月16日小于 1 分钟
Learn | Windows && Linux
Windows
netstat -ano | findstr :<port>
taskkill /F /PID <PID>
net stop winnat
net start winnat
Linux
- kill target port
lsof -i:8702
➜ soda_media_tools_server git:(main) ✗ lsof -i:8702
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
soda_medi 46300 root 138u IPv4 361534 0t0 TCP localhost:8702 (LISTEN)
kill 46300