解决dubbo启动报Failed to bind NettyServer on ip:port的问题
来源:互联网 发布:女王的教室知乎 编辑:程序博客网 时间:2024/06/01 10:01
启动dubbo项目的时候,报如下错误:
Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.11.103:30101, cause: Failed to bind to: /0.0.0.0:30101 at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:72) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.transport.netty.NettyServer.<init>(NettyServer.java:63) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java) ~[na:2.5.3] at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:287) ~[dubbo-2.5.3.jar!/:2.5.3] ... 37 common frames omittedCaused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:30101 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) ~[netty-3.2.5.Final.jar!/:na] at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94) ~[dubbo-2.5.3.jar!/:2.5.3] at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:67) ~[dubbo-2.5.3.jar!/:2.5.3] ... 44 common frames omittedCaused by: java.net.BindException: 地址已在使用
原因:dubbo的服务提供者所要是用的端口已被占用(如:本项目使用30101端口,如果30101端口已被占用则会报错)
解决方式:更换端口,换成没被占用的端口即可
<dubbo:protocol name="dubbo" port="30102" />
阅读全文
0 0
- 解决dubbo启动报Failed to bind NettyServer on ip:port的问题
- Dubbo服务启动时Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /19
- com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer
- Failed to bind NettyServer on /192.168.**.*:20880, cause: Failed to bind to: /0.0.0.0:20880
- Failed to bind NettyServer on /192.168.49.1:20880, cause: Failed to bind to: /0.0.0.0:20880
- dubbo单机部署多个应用提示Failed to bind NettyServer
- MySQL启动报错“Bind on TCP/IP port: Address already in use”
- redhat6.4上Cassandra 3.9节点无法加入服务器(unable to bind IP:port)问题的解决
- mysql启动错误[Bind on TCP/IP port:...]
- 记录一下解决webdriver启动浏览器报“Unable to find a free port”问题的方法
- 解决nginx无法启动, bind() to 0.0.0.0:8080 failed的错误
- spark解决报错WARN util.Utils: Service 'sparkWorker' could not bind on port 0. Attempting port 1.
- ossec启动报ossec-remoted(1206): ERROR: Unable to Bind port错误解决方法
- spark-streaming连接flume时报错org.jboss.netty.channel.ChannelException: Failed to bind to: /IP:PORT
- spark-streaming连接flume时报错org.jboss.netty.channel.ChannelException: Failed to bind to: /IP:PORT
- myeclipse 启动服务时 socket bind failed 问题的解决(windows环境)
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)问题的解决
- 解决git clone时,出现Failed to connect to 127.0.0.1 port 46759: 拒绝连接的问题
- hdu 3853 LOOPS
- python中的编码
- 更改了一下用户名,plsql连接成功,但是同样的用户名密码,eclipse始终报错ORA-01017: invalid username/password; logon denied
- 调用CachedRowSetImpl类时,为什么会出现这种错误 Access restriction: The type CachedRowSetImpl is not accessible due
- 并发和并行,异步与多线程区别
- 解决dubbo启动报Failed to bind NettyServer on ip:port的问题
- 单点登录原理与简单实现
- soapui接口性能测试(一)---- 创建并运行一个性能测试
- 百练_2753:菲波那契数列
- EndNote在Windows站点许可证副本自定义安装
- 数据库表设计时一对一关系存在的必要性
- 提供给别人的文档,String.format() 做字符串连接
- 多方法圆形头像布局实现
- poj2828