ul 9, 2012 5:06:14 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the .library.path: /usr/java/jdk1.5.0_22/jre/lib/amd64/server:/usr/java/jdk1.5.0_22/jre/lib/amd64:/usr/java/jdk1.5.0_22/jre/../lib/amd64Jul 9, 2012 5:06:14 PM org.apache.coyote.http11.Http11BaseProtocol initSEVERE: Error initializing endpointjava.BindException: Address already in use:80 at org.apache.tomcat.util.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139) at org.apache.catalina.connector.Connector.initialize(Connector.java:1017) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) 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:592) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)Jul 9, 2012 5:06:14 PM org.apache.catalina.startup.Catalina loadSEVERE: Catalina.startLifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:80 at org.apache.catalina.connector.Connector.initialize(Connector.java:1019) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) 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:592) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)Jul 9, 2012 5:06:14 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 669 ms
解决方法如下:
第一,使用如下命令查看哪个进程正在使用80端口:
netstat -nlutp
[root@zhang-12-07 bin]# netstat -nlutp
Active Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3998/mysqldtcp 0 0 :::80 :::* LISTEN 27285/javatcp 0 0 :::9009 :::* LISTEN 27285/javatcp 0 0 :::22 :::* LISTEN 2112/sshdudp 0 0 0.0.0.0:5353 0.0.0.0:* 2157/avahi-daemon:udp 0 0 0.0.0.0:54133 0.0.0.0:* 2157/avahi-daemon:udp 0 0 :::38051 :::* 2157/avahi-daemon:udp 0 0 :::5353 :::* 2157/avahi-daemon:第二,使用如下命令结束正在使用80端口的进程:
[root@zhang-12-07 bin]# kill -9 27285
再次查看,可以看到已经被kill了!
[root@zhang-12-07 bin]# netstat -nlutpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3998/mysqldtcp 0 0 :::22 :::* LISTEN 2112/sshdudp 0 0 0.0.0.0:5353 0.0.0.0:* 2157/avahi-daemon:udp 0 0 0.0.0.0:54133 0.0.0.0:* 2157/avahi-daemon:udp 0 0 :::38051 :::* 2157/avahi-daemon:udp 0 0 :::5353 :::* 2157/avahi-daemon: