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

  启动tomcat的时候出现异常

  

严重: 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号。关闭这个占用端口即可

上一篇:CentOS下安装Python-pip


下一篇:[MySQL 5.6] MySQL 5.6 group commit 性能测试及内部实现流程