【Tomcat】Unrecognized 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 是把它恢復到默認狀態
相關文章
相關標籤/搜索