首页 > 代码库 > <<< tomcat启动是报错StandardServer.await: create[8005]

<<< tomcat启动是报错StandardServer.await: create[8005]

  启动tomcat的时候出现异常

  

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:630)
at org.apache.catalina.startup.Catalina.start(Catalina.java:590)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)  

提示这个错误的原因大概是运行的tomcat.exe没有关闭,关闭tomcat图标并结束掉tomcat进程。

开cmd命令提示符,输入 netstat -ano  找到8080端口占用的pid号 输入taskkill /pid xxxx  xxxx为PID号。关闭这个占用端口即可