TomcatUnrecognized Windows Sockets error: 10106: Socket creation failed

Posted 水舟陆车

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TomcatUnrecognized Windows Sockets error: 10106: Socket creation failed相关的知识,希望对你有一定的参考价值。

tomcat8启动过程中报如下错误

30-Nov-2017 22:45:52.892 严重 [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: 
 java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.ServerSocket.createImpl(ServerSocket.java:307)
at java.net.ServerSocket.getImpl(ServerSocket.java:257)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:441)
at org.apache.catalina.startup.Catalina.await(Catalina.java:758)
at org.apache.catalina.startup.Catalina.start(Catalina.java:704)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

解决方案:1,以管理员身份打开命令提示符
        2,输入 netsh winsock reset  
        3,重启电脑就ok了

winsock是Windows网络编程接口,winsock工作在应用层,它提供与底层传输协议无关的高层数据传输编程接口 netsh winsock reset 是把它恢复到默认状态

 

以上是关于TomcatUnrecognized Windows Sockets error: 10106: Socket creation failed的主要内容,如果未能解决你的问题,请参考以下文章

window.btoa 与 window.atob

WPF window页面跳转

window.parent window.top及window.self 详解

window.parent ,window.top,window.self 详解

jquery 打开页面window.location和window.open的区别

Js中的window.parent ,window.top,window.self 了解