我是靠谱客的博主 花痴哈密瓜,最近开发中收集的这篇文章主要介绍解决elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]],觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
Linux7.4使用elasticsearch2.2.1启动报错:
[2018-09-20 23:24:17,887][INFO ][node ] [Paibo] starting ...
Exception in thread "main" BindTransportException[Failed to bind to [9300-9400]]; nested: ChannelException[Failed to bind to: /192.168.0.1:9400]; nested: BindException[Cannot assign requested address];
Likely root cause: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Refer to the log for complete error details.
原因:
配置文件/.../elasticsearch-2.2.1/config/elasticsearch.yml中
network.host不对
度娘博客有的说用:0.0.0.0,有的说用127.0.0.1,实操发现:没用!不排除环境不一样等未知问题。
解法:
改为当前服务器内网ip即可(实操使用阿里云服务器)
另:改为127.0.0.1,报错解决,但http无法访问。
最后
以上就是花痴哈密瓜为你收集整理的解决elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]]的全部内容,希望文章能够帮你解决解决elasticsearch:Exception BindTransportException[Failed to bind to [9300-9400]]所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复