端口被占用的解决办法
背景 今天启动项目,报端口被占用。 Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:20880 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:92) at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:63) ... 48 more Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) 不用想,肯定是某个进程没有被正常关闭,导致端口被占用了。(此时大概率是java 进程,因为本人启动的是java项目)