NutzCN Logo
问答 zookeeper注册时可以自定义外网IP吗?
发布于 710天前 作者 kelvin@live 804 次浏览 复制 上一个帖子 下一个帖子
标签:

sys模块启动时连接的zookeeper是内网IP,这个可以设置成外网IP吗?内网ip其他模块请求不到的 192.168.6.142

com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://192.168.6.142:14073/cn.wizzer.app.sys.modules.services.SysDictService?anyhost=true&application=wcg-service-customer&check=false&codec=dubbo&dubbo=2.0.2&generic=false&heartbeat=60000&interface=cn.wizzer.app.sys.modules.services.SysDictService&methods=insertRelation,listMap,insertOrUpdate,getSubMapByCode,getMaxId,getSubPath,getField,vDelete,getSubMapById,execute,fetchx,fetchLinks,updateRelation,deleteAndChild,save,insertLinks,getParentPath,listPageLinks,getEntity,updateWith,getSubListByCode,fetch,exists,listPageMap,listPage,updateWithVersion,data,insertWith,clearCache,dao,getNameByCode,query,count,listEntity,list,getMap,updateAndIncrIfMatch,updateLinks,getEntityClass,fastInsert,getSubListByPath,update,insert,delete,updateIgnoreNull,getSubMapByPath,getSubListById,clear,getNameById,getNutMap&pid=17786&qos.enable=false&register.ip=192.168.0.109&remote.timestamp=1652684809844&revision=1.0.1-wcg&side=consumer&timestamp=1652688795171) failed to connect to server /192.168.6.142:14073 client-side timeout 3000ms (elapsed: 3001ms) from netty client 192.168.0.109 using dubbo version 1.0.1-wcg
3 回复

sys模块在一个局域网内,只开放了对外的几个端口,在注册dubbo的时候我指定了端口和ip就会提示绑定失败
Failed to bind NettyServer on ******:9000
我的9000端口确定不冲突

#随机端口
dubbo.protocol.port=9000
dubbo.protocol.host=***.***.***.***

如果我不指定,我可以注册成功,其他模块却不能访问到该模块。他们请求不到

大婶们,来啊,用技术虐我啊

不懂帮顶... 目测dubbo能配置

添加回复
请先登陆
回到顶部