当前位置:   article > 正文

(HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:3307 -> 0.0.0.0:0:_eror: hitp code 50) sever error-ports are not aval

eror: hitp code 50) sever error-ports are not avalable: exposing port tcp 0.

windows  docker容器启动MySQL时报:

(HTTP code 500) server error - Ports are not available: exposing port TCP 0.0.0.0:3307 -> 0.0.0.0:0: listen tcp 0.0.0.0:3307: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

解决办法:

管理员权限运行cmd

1.停止Windows NAT 驱动程序
net stop winnat
2.开启Windows NAT 驱动程序
net start winnat

执行这两行命令,说白了就是重启一下 winnat

到此解决。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/864159
推荐阅读
相关标签
  

闽ICP备14008679号