Post

Win系统使用疑难杂问指南

Windows 疑难杂问指南

Win系统使用疑难杂问指南

文件删除占用

快捷键 win+S,输入 “资源监视器”,打开,点击 CPU 标签,句柄搜索框输入该文件名,结束关联进程

Docker

端口问题

问题信息: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:9880 -> 127.0.0.1:0: listen tcp 0.0.0.0:9880: bind: An attempt was made to access a socket in a way forbidden by its access permissions.Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:9880 -> 127.0.0.1:0: listen tcp 0.0.0.0:9880: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

解决方案: Windows 上的 Docker 使用 winnat (Windows Network Address Translation) 服务进行网络管理,重启该服务有时可以解决端口冲突
执行命令:

1
2
net stop winnat
net start winnat

其它解决方案:

  • 端口是否被占用
    • netstat -ano | findstr "9880"
    • tasklist | findstr "PID"
    • taskkill /F /PID PID
  • 检查win端口保留范围
    • netsh interface ipv4 show excludedportrange protocol=tcp
This post is licensed under CC BY 4.0 by the author.