小明博客 > 技术文案 >
Linux 修改IP后,Tomcat无法启动
文章来源:之卉 时间:2025-03-28
Sep23,20144:11:44PMorg.apache.catalina.core.AprLifecycleListenerinitINFO:TheAPRbasedApacheTomcatNativelibrarywhichallowsoptimalperformanceinproductionenvironmentswasnotfoundonthejava.library.path:/usr/jdk1.6/jre/lib/amd64/server:/usr/jdk1.6/jre/lib/amd64:/usr/jdk1.6/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/libSep23,20144:11:44PMorg.apache.tomcat.util.net.NioSelectorPoolgetSharedSelectorINFO:Usingasharedselectorforservletwrite/readSep23,20144:11:44PMorg.apache.coyote.http11.Http11NioProtocolinitINFO:InitializingCoyoteHTTP/1.1onhttp-0.0.0.0-8011Sep23,20144:11:44PMorg.apache.catalina.startup.CatalinaloadINFO:Initializationprocessedin559msSep23,20144:11:45PMorg.apache.catalina.core.StandardServicestartINFO:StartingserviceCatalinaSep23,20144:11:45PMorg.apache.catalina.core.StandardEnginestartINFO:StartingServletEngine:ApacheTomcat/6.0.39Sep23,20144:11:45PMorg.apache.catalina.ha.tcp.SimpleTcpClusterstartINFO:ClusterisabouttostartSep23,20144:11:47PMorg.apache.catalina.tribes.transport.ReceiverBasebindINFO:Unabletobindserversocketto:/117.135.132.42:4099throwingerror.Sep23,20144:11:47PMorg.apache.catalina.tribes.transport.nio.NioReceiverstartSEVERE:Unabletostartclusterreceiverjava.net.BindException:Cannotassignrequestedaddressatsun.nio.ch.Net.bind(NativeMethod)atsun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)atorg.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:191)atorg.apache.catalina.tribes.transport.nio.NioReceiver.bind(NioReceiver.java:131)atorg.apache.catalina.tribes.transport.nio.NioReceiver.start(NioReceiver.java:101)atorg.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:140)atorg.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:95)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407)atorg.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:666)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Sep23,20144:11:47PMorg.apache.catalina.ha.tcp.SimpleTcpClusterstartSEVERE:Unabletostartcluster.org.apache.catalina.tribes.ChannelException:java.net.BindException:Cannotassignrequestedaddress;Nofaultymembersidentified.atorg.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:167)atorg.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:95)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147)atorg.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)atorg.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407)atorg.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:666)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Causedby:java.net.BindException:Cannotassignrequestedaddressatsun.nio.ch.Net.bind(NativeMethod)atsun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)atsun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)atorg.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:191)atorg.apache.catalina.tribes.transport.nio.NioReceiver.bind(NioReceiver.java:131)atorg.apache.catalina.tribes.transport.nio.NioReceiver.start(NioReceiver.java:101)atorg.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:140)...18moreSep23,20144:11:47PMorg.apache.catalina.startup.CatalinastartSEVERE:Catalina.start:LifecycleException:org.apache.catalina.tribes.ChannelException:java.net.BindException:Cannotassignrequestedaddress;Nofaultymembersidentified.atorg.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:673)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)atorg.apache.catalina.core.StandardService.start(StandardService.java:525)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:754)atorg.apache.catalina.startup.Catalina.start(Catalina.java:595)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Sep23,20144:11:47PMorg.apache.catalina.startup.CatalinastartINFO:Serverstartupin2577ms
开动报错内乱容如上,重要是由于改换IP后,hosts文献不随着革新
vi/etc/hosts正在那个设置文献内中,把主机实对于应的IP写成以后的IP便可
推举您浏览更多相关于“ Tomcat没法开动linux ”的作品