问题与解决
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
netstat -aon | findstr “8001”
taskkill /F /PID 123
tasklist|findstr 8908
taskkill /f /t /im redis-server.exe