严重: StandardServer.await: create[localhost:8005]:
java.net.BindException: Cannot assign requested addressat java.net.PlainSocketImpl.socketBind(Native Method)at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)at java.net.ServerSocket.bind(ServerSocket.java:328)at java.net.ServerSocket.(ServerSocket.java:194)at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)at org.apache.catalina.startup.Catalina.await(Catalina.java:766)at org.apache.catalina.startup.Catalina.start(Catalina.java:712)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:322)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
解决办法:
修改/etc/hosts文件中localhost对应的IP地址为本机IP