标签:nbsp 关闭 http java toc cep imp assign trap
tomcat启动报错
org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) 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:662) at org.apache.catalina.startup.Catalina.start(Catalina.java:614) 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:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) org.apache.coyote.http11.Http11Protocol pause
1.出现这个问题的原因可能是端口占用
tomcat没有 完全关闭进程还存在,杀死进程
其他软件占用相应端口 netstat -ano查看端口结束到,或者更改server.xml的默认端口
2.Cannot assign requested address的原因也有可能是localhost被路由到了别的机器。
ping localhost看一下解析地址出不来 或者指向别的ip,打开/etc/hosts发现没有指定127.0.0.1的解析地址
在/etc/hosts中添加指向到127.0.0.1的解析地址
127.0.0.1 localhost
重启tomcat
标签:nbsp 关闭 http java toc cep imp assign trap
原文地址:http://www.cnblogs.com/dashuai01/p/7823521.html