博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
java.net.BindException: Address already in use:80 linux
阅读量:6423 次
发布时间:2019-06-23

本文共 3619 字,大约阅读时间需要 12 分钟。

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/amd64
Jul 9, 2012 5:06:14 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.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 load
SEVERE: Catalina.start
LifecycleException:  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 load
INFO: 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 name
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      3998/mysqld
tcp        0      0 :::80                       :::*                        LISTEN      27285/java
tcp        0      0 :::9009                     :::*                        LISTEN      27285/java
tcp        0      0 :::22                       :::*                        LISTEN      2112/sshd
udp        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 -nlutp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      3998/mysqld
tcp        0      0 :::22                       :::*                        LISTEN      2112/sshd
udp        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:

转载于:https://www.cnblogs.com/moonlignt/p/7299811.html

你可能感兴趣的文章
linux 别名 alias
查看>>
centos 6.8 安装redis
查看>>
subline text3 配置python环境
查看>>
fastclick.js --- 解决移动端点击事件300ms延时
查看>>
每天laravel-20160715|ConfirmableTrait
查看>>
双向链表的应用
查看>>
记录nginx访问站点流量,并发等信息
查看>>
我的友情链接
查看>>
XenServer 6.5实战系列之四:XenServer 6.5 Installation
查看>>
负载均衡
查看>>
正确分析Oracle数据的隐式游标
查看>>
System Volume Information文件夹
查看>>
sed命令
查看>>
Oracle Parallel Execution(并行执行)
查看>>
JAVA面向对象-----封装
查看>>
PhpStorm函数注释的设置
查看>>
Centos 7 安装 mysql
查看>>
侧栏广告 跟随浏览器移动(扩展)
查看>>
第二阶段冲刺阶段站立会议每天任务5
查看>>
Xshell用密钥远程连接Linux
查看>>